diff options
author | Andrew Trick <atrick@apple.com> | 2011-09-20 18:22:31 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-09-20 18:22:31 +0000 |
commit | 83a8031336a1155e6b0c3e9a84164324e08d1c8b (patch) | |
tree | cfefdf37afe51d34e6b53f9581dbe129f5f74606 /include | |
parent | f83f0f8246457bf7951bc95dd74ec67cf524b845 (diff) | |
download | llvm-83a8031336a1155e6b0c3e9a84164324e08d1c8b.tar.gz llvm-83a8031336a1155e6b0c3e9a84164324e08d1c8b.tar.bz2 llvm-83a8031336a1155e6b0c3e9a84164324e08d1c8b.tar.xz |
Restore hasPostISelHook tblgen flag.
No functionality change. The hook makes it explicit which patterns
require "special" handling. i.e. it self-documents tblgen
deficiencies. I plan to add verification in ExpandISelPseudos and
Thumb2SizeReduce to catch any missing hasPostISelHooks. Otherwise it's
too fragile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140160 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCInstrDesc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/MC/MCInstrDesc.h b/include/llvm/MC/MCInstrDesc.h index 0a4ca648e6..7061fcb012 100644 --- a/include/llvm/MC/MCInstrDesc.h +++ b/include/llvm/MC/MCInstrDesc.h @@ -477,6 +477,14 @@ public: return Flags & (1 << MCID::UsesCustomInserter); } + /// hasPostISelHook - Return true if this instruction requires *adjustment* + /// after instruction selection by calling a target hook. For example, this + /// can be used to fill in ARM 's' optional operand depending on whether + /// the conditional flag register is used. + bool hasPostISelHook() const { + return Flags & (1 << MCID::HasPostISelHook); + } + /// isRematerializable - Returns true if this instruction is a candidate for /// remat. This flag is deprecated, please don't use it anymore. If this /// flag is set, the isReallyTriviallyReMaterializable() method is called to |