34 bool EHPadSuccessor = SuccMBB->
isEHPad();
36 return MBB->getFirstTerminator();
42 if (RI.getParent() ==
MBB)
49 for (
auto I =
MBB->rbegin(), E =
MBB->rend();
I != E; ++
I) {
51 InsertPoint = std::next(
I.getReverse());
54 if ((EHPadSuccessor &&
I->isCall()) ||
55 I->getOpcode() == TargetOpcode::INLINEASM_BR) {
56 InsertPoint =
I.getReverse();
63 return MBB->SkipPHIsAndLabels(InsertPoint);
unsigned const MachineRegisterInfo * MRI
This file defines the SmallPtrSet class.
bool isInlineAsmBrIndirectTarget() const
Returns true if this is the indirect dest of an INLINEASM_BR.
bool isEHPad() const
Returns true if the block is a landing pad.
MachineInstrBundleIterator< MachineInstr > iterator
Representation of each machine instruction.
MachineRegisterInfo - Keep track of information for virtual and physical registers,...
Wrapper class representing virtual and physical registers.
std::pair< iterator, bool > insert(PtrType Ptr)
Inserts Ptr if and only if there is no element in the container equal to Ptr.
bool contains(ConstPtrType Ptr) const
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements.
This is an optimization pass for GlobalISel generic memory operations.
MachineBasicBlock::iterator findPHICopyInsertPoint(MachineBasicBlock *MBB, MachineBasicBlock *SuccMBB, Register SrcReg)
findPHICopyInsertPoint - Find a safe place in MBB to insert a copy from SrcReg when following the CFG...