summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit84a1100dabc523341df5b856060e1db27b06d4b4 (patch)
tree328b8161a257bab24e579ec48f1b69d1d321e12f /llvm
parent63dc7f569acaeb48cb5554deeeaf12f1eec266af (diff)
downloadbcm5719-llvm-84a1100dabc523341df5b856060e1db27b06d4b4.tar.gz
bcm5719-llvm-84a1100dabc523341df5b856060e1db27b06d4b4.zip
Add a hook
llvm-svn: 23096
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Target/TargetLowering.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/include/llvm/Target/TargetLowering.h b/llvm/include/llvm/Target/TargetLowering.h
index 14984790413..58be8a257a7 100644
--- a/llvm/include/llvm/Target/TargetLowering.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud