24 if (
MI.getOpcode() == TargetOpcode::INLINEASM_BR)
50 bool EHPadSuccessor = SuccMBB->
isEHPad();
52 return MBB->getFirstTerminator();
58 if (RI.getParent() ==
MBB)
65 for (
auto I =
MBB->rbegin(), E =
MBB->rend();
I != E; ++
I) {
70 if ((EHPadSuccessor &&
I->isCall()) ||
71 I->getOpcode() == TargetOpcode::INLINEASM_BR) {
unsigned const MachineRegisterInfo * MRI
static bool hasInlineAsmBrToSuccessor(MachineBasicBlock *MBB, MachineBasicBlock *SuccMBB)
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.
auto reverse(ContainerTy &&C)
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...