diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-08-26 20:31:24 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-08-26 20:31:24 +0000 |
| commit | fada82fbb5673a7f3e8116878303c4639f89acab (patch) | |
| tree | a6c8a915af4a034ed11bea5f321402ca6bd57345 /llvm | |
| parent | 0081dfa91e8bcb4165bb0e39bd7e9f1734e4d2fe (diff) | |
| download | bcm5719-llvm-fada82fbb5673a7f3e8116878303c4639f89acab.tar.gz bcm5719-llvm-fada82fbb5673a7f3e8116878303c4639f89acab.zip | |
Add a new instruction flag
llvm-svn: 23093
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Target/TargetInstrInfo.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/include/llvm/Target/TargetInstrInfo.h b/llvm/include/llvm/Target/TargetInstrInfo.h index 503e9c65408..03004e41c3e 100644 --- a/llvm/include/llvm/Target/TargetInstrInfo.h +++ b/llvm/include/llvm/Target/TargetInstrInfo.h @@ -73,6 +73,11 @@ const unsigned M_COMMUTABLE = 1 << 11; // before control flow occurs. const unsigned M_TERMINATOR_FLAG = 1 << 12; +// M_USES_CUSTOM_DAG_SCHED_INSERTION - Set if this instruction requires custom +// insertion support when the DAG scheduler is inserting it into a machine basic +// block. +const unsigned M_USES_CUSTOM_DAG_SCHED_INSERTION = 1 << 13; + /// TargetOperandInfo - This holds information about one operand of a machine /// instruction, indicating the register class for register operands, etc. /// @@ -264,6 +269,13 @@ public: return get(Opcode).Flags & M_DELAY_SLOT_FLAG; } + /// usesCustomDAGSchedInsertionHook - Return true if this instruction requires + /// custom insertion support when the DAG scheduler is inserting it into a + /// machine basic block. + bool usesCustomDAGSchedInsertionHook(unsigned Opcode) const { + return get(Opcode).Flags & M_USES_CUSTOM_DAG_SCHED_INSERTION; + } + virtual bool hasResultInterlock(MachineOpCode Opcode) const { return true; } |

