38 if (RI.getParent() == MBB)
43 if (DefUsesInMBB.
empty()) {
45 InsertPoint = MBB->
begin();
46 }
else if (DefUsesInMBB.
size() == 1) {
48 InsertPoint = *DefUsesInMBB.
begin();
52 InsertPoint = MBB->
end();
53 while (!DefUsesInMBB.
count(&*--InsertPoint)) {}
const MachineFunction * getParent() const
getParent - Return the MachineFunction containing this basic block.
bool LLVM_ATTRIBUTE_UNUSED_RESULT empty() const
iterator getFirstTerminator()
getFirstTerminator - returns an iterator to the first terminator instruction of this basic block...
size_type count(PtrType Ptr) const
count - Return 1 if the specified pointer is in the set, 0 otherwise.
MachineBasicBlock::iterator findPHICopyInsertPoint(MachineBasicBlock *MBB, MachineBasicBlock *SuccMBB, unsigned SrcReg)
findPHICopyInsertPoint - Find a safe place in MBB to insert a copy from SrcReg when following the CFG...
bundle_iterator< MachineInstr, instr_iterator > iterator
iterator SkipPHIsAndLabels(iterator I)
SkipPHIsAndLabels - Return the first instruction in MBB after I that is not a PHI or a label...
iterator_range< reg_instr_iterator > reg_instructions(unsigned Reg) const
bundle_iterator - MachineBasicBlock iterator that automatically skips over MIs that are inside bundle...
std::pair< iterator, bool > insert(PtrType Ptr)
Inserts Ptr if and only if there is no element in the container equal to Ptr.
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements...
MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc.
Representation of each machine instruction.
bool isLandingPad() const
isLandingPad - Returns true if the block is a landing pad.
MachineRegisterInfo & getRegInfo()
getRegInfo - Return information about the registers currently in use.