aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-26 20:53:09 +0000
committerChris Lattner <sabre@nondot.org>2005-08-26 20:53:09 +0000
commita8fbee6f09f06ae224d855e07093c5e70b3fb694 (patch)
tree2eaa50a58b9601a0fcb60893a66ffef61c2f8329
parent5f89bf0f9df54687f4474fe13f5d1a8635d85d5a (diff)
Add a hook
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23096 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetLowering.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 1498479041..58be8a257a 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -333,6 +333,17 @@ public:
/// implement this. The default implementation of this aborts.
virtual SDOperand LowerOperation(SDOperand Op, SelectionDAG &DAG);
+ //===--------------------------------------------------------------------===//
+ // Scheduler hooks
+ //
+
+ // InsertAtEndOfBasicBlock - This method should be implemented by targets that
+ // mark instructions with the 'usesCustomDAGSChedInserter' flag. These
+ // instructions are special in various ways, which require special support to
+ // insert. The specified MachineInstr is created but not inserted into any
+ // basic blocks, and the scheduler passes ownership of it to this method.
+ virtual MachineBasicBlock *InsertAtEndOfBasicBlock(MachineInstr *MI,
+ MachineBasicBlock *MBB);
private:
TargetMachine &TM;