aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-readobj/llvm-readobj.cpp
diff options
context:
space:
mode:
authorIngo Müller <ingomueller@google.com>2022-12-14 15:16:06 +0000
committerIngo Müller <ingomueller@google.com>2022-12-14 15:18:37 +0000
commit3a43e68ed1cbd96bc70359f0d9dced517195ae9c (patch)
tree71becf173ba5c418ea9a91f08b4f8272fec81878 /llvm/tools/llvm-readobj/llvm-readobj.cpp
parent15a6e3c636977dc962a415c067182e6d57242116 (diff)
downloadllvm-3a43e68ed1cbd96bc70359f0d9dced517195ae9c.zip
llvm-3a43e68ed1cbd96bc70359f0d9dced517195ae9c.tar.gz
llvm-3a43e68ed1cbd96bc70359f0d9dced517195ae9c.tar.bz2
Allow inline of all pure ops from the LLVM dialect.
This allows to inline regions containing pure LLVM ops into their call sites. (Note that this is not related to inlining of llvm.func but to any the inlining of any Callable.) For now, we only allow the inlining of Pure ops to be conservative but other ops may be considered inlinable in the future. Testing for purity of ops requires the C++ equivalent of the Pure trait from SideEffectInterfaces.td, which this patch also provide. Its implementation calls the C++ equivalents of the two traits that the Pure trait is based on and, thus, has to be kept with the tablegen trait. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D139187
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions