[llvm-commits] CVS: llvm/include/llvm/Target/TargetLowering.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Aug 26 13:53:20 PDT 2005
Changes in directory llvm/include/llvm/Target:
TargetLowering.h updated: 1.19 -> 1.20
---
Log message:
Add a hook
---
Diffs of the changes: (+11 -0)
TargetLowering.h | 11 +++++++++++
1 files changed, 11 insertions(+)
Index: llvm/include/llvm/Target/TargetLowering.h
diff -u llvm/include/llvm/Target/TargetLowering.h:1.19 llvm/include/llvm/Target/TargetLowering.h:1.20
--- llvm/include/llvm/Target/TargetLowering.h:1.19 Wed Aug 24 11:34:59 2005
+++ llvm/include/llvm/Target/TargetLowering.h Fri Aug 26 15:53:09 2005
@@ -333,6 +333,17 @@
/// 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;
More information about the llvm-commits
mailing list