diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-06-06 10:13:55 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-06-06 10:13:55 +0000 |
commit | f94ab6a6620d4a629f46fd764742db0331e6470f (patch) | |
tree | d1bedc4d5f07814d34176e42cea2687bdc4899bc /include/llvm/Target | |
parent | 9fac0b5ff24e733072bdde68c7f34590c1892922 (diff) | |
download | external_llvm-f94ab6a6620d4a629f46fd764742db0331e6470f.zip external_llvm-f94ab6a6620d4a629f46fd764742db0331e6470f.tar.gz external_llvm-f94ab6a6620d4a629f46fd764742db0331e6470f.tar.bz2 |
Add a machine instruction flag indicating the instruction can clobber condition code / register(s) used to predicate instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 5fe9130..f03fbb5 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -82,6 +82,9 @@ const unsigned M_PREDICABLE = 1 << 12; // at any time, e.g. constant generation, load from constant pool. const unsigned M_REMATERIALIZIBLE = 1 << 13; +// M_CLOBBERS_PRED - Set if this instruction may clobbers the condition code +// register and / or registers that are used to predicate instructions. +const unsigned M_CLOBBERS_PRED = 1 << 14; // Machine operand flags // M_LOOK_UP_PTR_REG_CLASS - Set if this operand is a pointer value and it @@ -211,6 +214,9 @@ public: bool isPredicable(MachineOpCode Opcode) const { return get(Opcode).Flags & M_PREDICABLE; } + bool clobbersPredicate(MachineOpCode Opcode) const { + return get(Opcode).Flags & M_CLOBBERS_PRED; + } bool isReMaterializable(MachineOpCode Opcode) const { return get(Opcode).Flags & M_REMATERIALIZIBLE; } |