diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-01-30 18:18:23 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-01-30 18:18:23 +0000 |
commit | 29cfb67e281166c0e47dcc294da211482bfba3ce (patch) | |
tree | 68f896f87a4cb00770becc91c15c94085995ea45 /llvm/lib/CodeGen | |
parent | 57412cacb6726b209d5ac151192e5940192143bf (diff) | |
download | bcm5719-llvm-29cfb67e281166c0e47dcc294da211482bfba3ce.tar.gz bcm5719-llvm-29cfb67e281166c0e47dcc294da211482bfba3ce.zip |
Even though InsertAtEndOfBasicBlock is an ugly hack it still deserves a proper name. Rename it to EmitInstrWithCustomInserter since it does not necessarily insert
instruction at the end.
llvm-svn: 46562
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index 293d0233811..543a9fb9dce 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -715,7 +715,7 @@ void ScheduleDAG::EmitNode(SDNode *Node, unsigned InstanceNo, } else { // Insert this instruction into the end of the basic block, potentially // taking some custom action. - BB = DAG.getTargetLoweringInfo().InsertAtEndOfBasicBlock(MI, BB); + BB = DAG.getTargetLoweringInfo().EmitInstrWithCustomInserter(MI, BB); } // Additional results must be an physical register def. diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 406011ac916..87b27401af0 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -3855,16 +3855,16 @@ void SelectionDAGLowering::visitFree(FreeInst &I) { DAG.setRoot(Result.second); } -// InsertAtEndOfBasicBlock - This method should be implemented by targets that -// mark instructions with the 'usesCustomDAGSchedInserter' flag. These +// EmitInstrWithCustomInserter - 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. -MachineBasicBlock *TargetLowering::InsertAtEndOfBasicBlock(MachineInstr *MI, +MachineBasicBlock *TargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI, MachineBasicBlock *MBB) { cerr << "If a target marks an instruction with " << "'usesCustomDAGSchedInserter', it must implement " - << "TargetLowering::InsertAtEndOfBasicBlock!\n"; + << "TargetLowering::EmitInstrWithCustomInserter!\n"; abort(); return 0; } |