1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Add a hook

llvm-svn: 23096
This commit is contained in:
Chris Lattner 2005-08-26 20:53:09 +00:00
parent 6c4ea26961
commit 98bd9339ce

View File

@ -333,6 +333,17 @@ public:
/// implement this. The default implementation of this aborts. /// implement this. The default implementation of this aborts.
virtual SDOperand LowerOperation(SDOperand Op, SelectionDAG &DAG); 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: private:
TargetMachine &TM; TargetMachine &TM;