Displaying 1 result from an estimated 1 matches for "usescustominsertionhook".
2010 Nov 12
1
[LLVMdev] ScheduleDAG Question
...el
ScheduleDAGSDNodes::EmitSchedule does this:
for (unsigned i = 0, e = Sequence.size(); i != e; i++) {
[...]
Emitter.EmitNode(SU->getNode(), SU->OrigNode != SU, SU->isCloned,
VRBaseMap);
[...]
}
TheInstrEmitter::EmitMachineNode does this:
if (II.usesCustomInsertionHook()) {
// Insert this instruction into the basic block using a target
// specific inserter which may returns a new basic block.
bool AtEnd = InsertPos == MBB->end();
MachineBasicBlock *NewMBB = TLI->EmitInstrWithCustomInserter(MI, MBB);
if (NewMBB != MBB) {
if (AtEnd)...