aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-26 20:31:24 +0000
committerChris Lattner <sabre@nondot.org>2005-08-26 20:31:24 +0000
commit09321dcf5a3d8acb89dfcad2191c630a54938458 (patch)
treec1818e492fa6dd4624621c8d24caf2d236fa54b6
parent0efa0f9ee9a69f6903e6762dd723e88025abcaac (diff)
Add a new instruction flag
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23093 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetInstrInfo.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index 503e9c6540..03004e41c3 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/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;
}