LLVM API Documentation
#include <MachineBasicBlock.h>
Definition at line 56 of file MachineBasicBlock.h.
| typedef Instructions::iterator llvm::MachineBasicBlock::iterator |
Definition at line 101 of file MachineBasicBlock.h.
| typedef Instructions::const_iterator llvm::MachineBasicBlock::const_iterator |
Definition at line 102 of file MachineBasicBlock.h.
| typedef std::reverse_iterator<const_iterator> llvm::MachineBasicBlock::const_reverse_iterator |
Definition at line 103 of file MachineBasicBlock.h.
| typedef std::reverse_iterator<iterator> llvm::MachineBasicBlock::reverse_iterator |
Definition at line 104 of file MachineBasicBlock.h.
| typedef std::vector<MachineBasicBlock *>::iterator llvm::MachineBasicBlock::pred_iterator |
Definition at line 124 of file MachineBasicBlock.h.
| typedef std::vector<MachineBasicBlock *>::const_iterator llvm::MachineBasicBlock::const_pred_iterator |
Definition at line 125 of file MachineBasicBlock.h.
| typedef std::vector<MachineBasicBlock *>::iterator llvm::MachineBasicBlock::succ_iterator |
Definition at line 126 of file MachineBasicBlock.h.
| typedef std::vector<MachineBasicBlock *>::const_iterator llvm::MachineBasicBlock::const_succ_iterator |
Definition at line 127 of file MachineBasicBlock.h.
| typedef std::vector<MachineBasicBlock *>::reverse_iterator llvm::MachineBasicBlock::pred_reverse_iterator |
Definition at line 129 of file MachineBasicBlock.h.
| typedef std::vector<MachineBasicBlock *>::const_reverse_iterator llvm::MachineBasicBlock::const_pred_reverse_iterator |
Definition at line 131 of file MachineBasicBlock.h.
| typedef std::vector<MachineBasicBlock *>::reverse_iterator llvm::MachineBasicBlock::succ_reverse_iterator |
Definition at line 133 of file MachineBasicBlock.h.
| typedef std::vector<MachineBasicBlock *>::const_reverse_iterator llvm::MachineBasicBlock::const_succ_reverse_iterator |
Definition at line 135 of file MachineBasicBlock.h.
| typedef std::vector<unsigned>::iterator llvm::MachineBasicBlock::livein_iterator |
Definition at line 186 of file MachineBasicBlock.h.
| typedef std::vector<unsigned>::const_iterator llvm::MachineBasicBlock::const_livein_iterator |
Definition at line 187 of file MachineBasicBlock.h.
| const BasicBlock* llvm::MachineBasicBlock::getBasicBlock | ( | ) | const [inline] |
getBasicBlock - Return the LLVM basic block that this instance corresponded to originally.
Definition at line 94 of file MachineBasicBlock.h.
References BB.
Referenced by llvm::PPCTargetLowering::EmitAtomicBinary(), llvm::SelectionDAGLowering::EmitBranchForMergedCondition(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::SystemZTargetLowering::EmitInstrWithCustomInserter(), llvm::SparcTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::PIC16TargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::AlphaTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), llvm::SelectionDAGLowering::FindMergedConditions(), llvm::DOTGraphTraits< const MachineFunction * >::getNodeLabel(), print(), llvm::AsmPrinter::printBasicBlockLabel(), llvm::SplitCriticalMachineEdge(), and llvm::ScheduleDAG::viewGraph().
| const MachineFunction* llvm::MachineBasicBlock::getParent | ( | ) | const [inline] |
getParent - Return the MachineFunction containing this basic block.
Definition at line 98 of file MachineBasicBlock.h.
Referenced by llvm::addFrameReference(), llvm::MachineInstrBuilder::addMemOperand(), BBHasFallthrough(), llvm::BuildMI(), canFallThroughTo(), llvm::MachineOperand::ChangeToRegister(), llvm::X86InstrInfo::commuteInstruction(), llvm::TargetInstrInfoImpl::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), CorrectExtraCFGEdges(), createSlotTracker(), llvm::MachineFunction::DeleteMachineBasicBlock(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::SPURegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::AlphaRegisterInfo::eliminateFrameIndex(), llvm::PPCTargetLowering::EmitAtomicBinary(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::SystemZTargetLowering::EmitInstrWithCustomInserter(), llvm::SparcTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::PIC16TargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::AlphaTargetLowering::EmitInstrWithCustomInserter(), llvm::Thumb2RegisterInfo::emitLoadConstPool(), llvm::Thumb1RegisterInfo::emitLoadConstPool(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), llvm::RegScavenger::enterBasicBlock(), eraseFromParent(), llvm::SelectionDAGLowering::FindMergedConditions(), FixTail(), llvm::PPCInstrInfo::GetInstSizeInBytes(), llvm::ARMBaseInstrInfo::GetInstSizeInBytes(), GetInstSizeWithDesc(), getModuleFromVal(), getNextBlock(), llvm::MachineFrameInfo::getPristineRegs(), getSymTab(), HandleVRSaveUpdate(), llvm::RegScavenger::initRegState(), llvm::ARMBaseInstrInfo::InsertBranch(), interferes(), llvm::XCoreInstrInfo::isInvariantLoad(), llvm::X86InstrInfo::isInvariantLoad(), llvm::SystemZInstrInfo::isInvariantLoad(), llvm::Loop::isLCSSAForm(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), llvm::X86InstrInfo::loadRegFromStackSlot(), llvm::PPCInstrInfo::loadRegFromStackSlot(), llvm::PIC16InstrInfo::loadRegFromStackSlot(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), MakeM0Inst(), moveAfter(), moveBefore(), llvm::MachineInstr::print(), llvm::MachineOperand::print(), print(), llvm::AsmPrinter::PrintSpecial(), llvm::X86InstrInfo::reMaterialize(), llvm::TargetInstrInfoImpl::reMaterialize(), llvm::ARMInstrInfo::reMaterialize(), removeFromParent(), RemoveVRSaveCode(), llvm::X86InstrInfo::restoreCalleeSavedRegisters(), llvm::Thumb1InstrInfo::restoreCalleeSavedRegisters(), llvm::SystemZInstrInfo::restoreCalleeSavedRegisters(), llvm::MachineOperand::setReg(), llvm::XCoreInstrInfo::spillCalleeSavedRegisters(), llvm::X86InstrInfo::spillCalleeSavedRegisters(), llvm::SystemZInstrInfo::spillCalleeSavedRegisters(), llvm::MSP430InstrInfo::spillCalleeSavedRegisters(), llvm::SplitCriticalMachineEdge(), llvm::X86InstrInfo::storeRegToStackSlot(), llvm::PPCInstrInfo::storeRegToStackSlot(), and llvm::PIC16InstrInfo::storeRegToStackSlot().
| MachineFunction* llvm::MachineBasicBlock::getParent | ( | ) | [inline] |
Definition at line 99 of file MachineBasicBlock.h.
| unsigned llvm::MachineBasicBlock::size | ( | ) | const [inline] |
Definition at line 106 of file MachineBasicBlock.h.
Referenced by llvm::ScheduleDAGInstrs::BuildSchedGraph(), and llvm::SPURegisterInfo::emitPrologue().
| bool llvm::MachineBasicBlock::empty | ( | ) | const [inline] |
Definition at line 107 of file MachineBasicBlock.h.
Referenced by llvm::XCoreInstrInfo::BlockHasNoFallThrough(), llvm::X86InstrInfo::BlockHasNoFallThrough(), llvm::Thumb2InstrInfo::BlockHasNoFallThrough(), llvm::Thumb1InstrInfo::BlockHasNoFallThrough(), llvm::SystemZInstrInfo::BlockHasNoFallThrough(), llvm::SPUInstrInfo::BlockHasNoFallThrough(), llvm::PPCInstrInfo::BlockHasNoFallThrough(), llvm::MipsInstrInfo::BlockHasNoFallThrough(), llvm::ARMInstrInfo::BlockHasNoFallThrough(), llvm::AlphaInstrInfo::BlockHasNoFallThrough(), IsBetterFallthrough(), isOnlyReachableByFallthrough(), and llvm::LiveVariables::runOnMachineFunction().
| MachineInstr& llvm::MachineBasicBlock::front | ( | ) | [inline] |
Definition at line 109 of file MachineBasicBlock.h.
Referenced by llvm::Thumb1RegisterInfo::emitEpilogue().
| MachineInstr& llvm::MachineBasicBlock::back | ( | ) | [inline] |
Definition at line 110 of file MachineBasicBlock.h.
Referenced by AddBlockAndPredsToSet(), llvm::XCoreInstrInfo::BlockHasNoFallThrough(), llvm::ARMInstrInfo::BlockHasNoFallThrough(), llvm::PPCInstrInfo::BlockHasNoFallThrough(), llvm::X86InstrInfo::BlockHasNoFallThrough(), llvm::Thumb1InstrInfo::BlockHasNoFallThrough(), llvm::SPUInstrInfo::BlockHasNoFallThrough(), llvm::Thumb2InstrInfo::BlockHasNoFallThrough(), llvm::AlphaInstrInfo::BlockHasNoFallThrough(), llvm::MipsInstrInfo::BlockHasNoFallThrough(), llvm::SystemZInstrInfo::BlockHasNoFallThrough(), llvm::DFSPass(), isOnlyReachableByFallthrough(), and llvm::LiveVariables::runOnMachineFunction().
| const MachineInstr& llvm::MachineBasicBlock::front | ( | ) | const [inline] |
Definition at line 111 of file MachineBasicBlock.h.
| const MachineInstr& llvm::MachineBasicBlock::back | ( | ) | const [inline] |
Definition at line 112 of file MachineBasicBlock.h.
| iterator llvm::MachineBasicBlock::begin | ( | ) | [inline] |
Definition at line 114 of file MachineBasicBlock.h.
Referenced by llvm::SystemZInstrInfo::AnalyzeBranch(), llvm::PPCInstrInfo::AnalyzeBranch(), llvm::XCoreInstrInfo::AnalyzeBranch(), llvm::SPUInstrInfo::AnalyzeBranch(), llvm::MipsInstrInfo::AnalyzeBranch(), llvm::AlphaInstrInfo::AnalyzeBranch(), llvm::ARMBaseInstrInfo::AnalyzeBranch(), llvm::X86InstrInfo::AnalyzeBranch(), llvm::CloneFunctionInto(), llvm::CloneTrace(), llvm::CloneTraceInto(), ComputeCommonTailLength(), llvm::LiveIntervals::computeNumbering(), llvm::LPPassManager::deleteSimpleAnalysisValue(), llvm::MachineDominatorTree::dominates(), llvm::MSP430RegisterInfo::emitEpilogue(), llvm::ARMBaseRegisterInfo::emitEpilogue(), llvm::Thumb1RegisterInfo::emitEpilogue(), llvm::X86RegisterInfo::emitEpilogue(), llvm::SystemZRegisterInfo::emitEpilogue(), EmitLiveInCopies(), EmitLiveInCopy(), llvm::SparcRegisterInfo::emitPrologue(), llvm::BlackfinRegisterInfo::emitPrologue(), llvm::MSP430RegisterInfo::emitPrologue(), llvm::ARMBaseRegisterInfo::emitPrologue(), llvm::XCoreRegisterInfo::emitPrologue(), llvm::MipsRegisterInfo::emitPrologue(), llvm::Thumb1RegisterInfo::emitPrologue(), llvm::SystemZRegisterInfo::emitPrologue(), llvm::PPCRegisterInfo::emitPrologue(), llvm::SPURegisterInfo::emitPrologue(), llvm::X86RegisterInfo::emitPrologue(), llvm::AlphaRegisterInfo::emitPrologue(), FindFreeRegister(), firstNonBranchInst(), llvm::RegScavenger::forward(), getFirstTerminator(), llvm::TargetInstrInfoImpl::GetFunctionSizeInBytes(), llvm::MipsInstrInfo::getGlobalBaseReg(), llvm::X86InstrInfo::getGlobalBaseReg(), llvm::AlphaInstrInfo::getGlobalBaseReg(), llvm::AlphaInstrInfo::getGlobalRetAddr(), HandleInlinedInvoke(), HashEndOfMBB(), llvm::ValueEnumerator::incorporateFunction(), llvm::InlineFunction(), llvm::BasicInlinerImpl::inlineFunctions(), interferes(), isLiveInButUnusedBefore(), LinkFunctionBody(), mergeSPUpdates(), mergeSPUpdatesUp(), precedes(), print(), llvm::LiveIntervals::processImplicitDefs(), llvm::PPCInstrInfo::RemoveBranch(), llvm::ARMBaseInstrInfo::RemoveBranch(), llvm::MipsInstrInfo::RemoveBranch(), llvm::XCoreInstrInfo::RemoveBranch(), llvm::AlphaInstrInfo::RemoveBranch(), llvm::X86InstrInfo::RemoveBranch(), llvm::SPUInstrInfo::RemoveBranch(), llvm::SystemZInstrInfo::RemoveBranch(), RemoveVRSaveCode(), ReplaceUsesOfBlockWith(), llvm::XCoreInstrInfo::restoreCalleeSavedRegisters(), llvm::LiveVariables::runOnMachineFunction(), llvm::DebugLabelFolder::runOnMachineFunction(), llvm::SimpleRegisterCoalescing::runOnMachineFunction(), llvm::Inliner::runOnSCC(), llvm::SplitCriticalMachineEdge(), llvm::UnrollLoop(), llvm::ValueEnumerator::ValueEnumerator(), and WriteFunction().
| const_iterator llvm::MachineBasicBlock::begin | ( | ) | const [inline] |
Definition at line 115 of file MachineBasicBlock.h.
| iterator llvm::MachineBasicBlock::end | ( | ) | [inline] |
Definition at line 116 of file MachineBasicBlock.h.
Referenced by llvm::XCoreInstrInfo::AnalyzeBranch(), llvm::X86InstrInfo::AnalyzeBranch(), llvm::SystemZInstrInfo::AnalyzeBranch(), llvm::SPUInstrInfo::AnalyzeBranch(), llvm::PPCInstrInfo::AnalyzeBranch(), llvm::MipsInstrInfo::AnalyzeBranch(), llvm::ARMBaseInstrInfo::AnalyzeBranch(), llvm::AlphaInstrInfo::AnalyzeBranch(), llvm::BuildMI(), llvm::CloneFunctionInto(), llvm::CloneTraceInto(), ComputeCommonTailLength(), llvm::LiveIntervals::computeNumbering(), llvm::XCoreInstrInfo::copyRegToReg(), llvm::X86InstrInfo::copyRegToReg(), llvm::Thumb2InstrInfo::copyRegToReg(), llvm::Thumb1InstrInfo::copyRegToReg(), llvm::SystemZInstrInfo::copyRegToReg(), llvm::SPUInstrInfo::copyRegToReg(), llvm::SparcInstrInfo::copyRegToReg(), llvm::PPCInstrInfo::copyRegToReg(), llvm::PIC16InstrInfo::copyRegToReg(), llvm::MSP430InstrInfo::copyRegToReg(), llvm::MipsInstrInfo::copyRegToReg(), llvm::ARMBaseInstrInfo::copyRegToReg(), llvm::AlphaInstrInfo::copyRegToReg(), CorrectExtraCFGEdges(), llvm::LPPassManager::deleteSimpleAnalysisValue(), llvm::XCoreRegisterInfo::emitEpilogue(), llvm::X86RegisterInfo::emitEpilogue(), llvm::Thumb1RegisterInfo::emitEpilogue(), llvm::SystemZRegisterInfo::emitEpilogue(), llvm::SPURegisterInfo::emitEpilogue(), llvm::SparcRegisterInfo::emitEpilogue(), llvm::PPCRegisterInfo::emitEpilogue(), llvm::MSP430RegisterInfo::emitEpilogue(), llvm::MipsRegisterInfo::emitEpilogue(), llvm::BlackfinRegisterInfo::emitEpilogue(), llvm::ARMBaseRegisterInfo::emitEpilogue(), llvm::AlphaRegisterInfo::emitEpilogue(), llvm::ScheduleDAGSDNodes::EmitNode(), llvm::XCoreRegisterInfo::emitPrologue(), llvm::X86RegisterInfo::emitPrologue(), llvm::Thumb1RegisterInfo::emitPrologue(), llvm::SystemZRegisterInfo::emitPrologue(), llvm::SPURegisterInfo::emitPrologue(), llvm::SparcRegisterInfo::emitPrologue(), llvm::PPCRegisterInfo::emitPrologue(), llvm::MSP430RegisterInfo::emitPrologue(), llvm::MipsRegisterInfo::emitPrologue(), llvm::BlackfinRegisterInfo::emitPrologue(), llvm::ARMBaseRegisterInfo::emitPrologue(), llvm::AlphaRegisterInfo::emitPrologue(), emitSPUpdate(), llvm::FastISel::FastEmitInst_extractsubreg(), llvm::FastISel::FastEmitInst_i(), llvm::FastISel::FastEmitInst_r(), llvm::FastISel::FastEmitInst_rf(), llvm::FastISel::FastEmitInst_ri(), llvm::FastISel::FastEmitInst_rr(), llvm::FastISel::FastEmitInst_rri(), firstNonBranchInst(), llvm::RegScavenger::forward(), getFirstTerminator(), llvm::TargetInstrInfoImpl::GetFunctionSizeInBytes(), llvm::X86InstrInfo::getGlobalBaseReg(), HandleInlinedInvoke(), HashEndOfMBB(), llvm::ValueEnumerator::incorporateFunction(), llvm::InlineFunction(), llvm::BasicInlinerImpl::inlineFunctions(), llvm::PPCInstrInfo::insertNoop(), llvm::MipsInstrInfo::insertNoop(), llvm::AlphaInstrInfo::insertNoop(), interferes(), IsBetterFallthrough(), isSafeToClobberEFLAGS(), LinkFunctionBody(), llvm::XCoreInstrInfo::loadRegFromStackSlot(), llvm::X86InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::SystemZInstrInfo::loadRegFromStackSlot(), llvm::SPUInstrInfo::loadRegFromStackSlot(), llvm::SparcInstrInfo::loadRegFromStackSlot(), llvm::PPCInstrInfo::loadRegFromStackSlot(), llvm::PIC16InstrInfo::loadRegFromStackSlot(), llvm::MSP430InstrInfo::loadRegFromStackSlot(), llvm::MipsInstrInfo::loadRegFromStackSlot(), llvm::BlackfinInstrInfo::loadRegFromStackSlot(), llvm::ARMBaseInstrInfo::loadRegFromStackSlot(), llvm::AlphaInstrInfo::loadRegFromStackSlot(), mergeSPUpdates(), mergeSPUpdatesDown(), movePastCSLoadStoreOps(), print(), llvm::LiveIntervals::processImplicitDefs(), llvm::X86InstrInfo::reMaterialize(), llvm::XCoreInstrInfo::RemoveBranch(), llvm::X86InstrInfo::RemoveBranch(), llvm::SystemZInstrInfo::RemoveBranch(), llvm::SPUInstrInfo::RemoveBranch(), llvm::PPCInstrInfo::RemoveBranch(), llvm::MipsInstrInfo::RemoveBranch(), llvm::ARMBaseInstrInfo::RemoveBranch(), llvm::AlphaInstrInfo::RemoveBranch(), RemoveVRSaveCode(), ReplaceUsesOfBlockWith(), llvm::X86InstrInfo::restoreCalleeSavedRegisters(), llvm::SystemZInstrInfo::restoreCalleeSavedRegisters(), llvm::MSP430InstrInfo::restoreCalleeSavedRegisters(), llvm::SimpleRegisterCoalescing::runOnMachineFunction(), llvm::DebugLabelFolder::runOnMachineFunction(), llvm::LiveVariables::runOnMachineFunction(), llvm::Inliner::runOnSCC(), llvm::XCoreInstrInfo::spillCalleeSavedRegisters(), llvm::X86InstrInfo::spillCalleeSavedRegisters(), llvm::Thumb1InstrInfo::spillCalleeSavedRegisters(), llvm::SystemZInstrInfo::spillCalleeSavedRegisters(), llvm::MSP430InstrInfo::spillCalleeSavedRegisters(), llvm::SplitCriticalMachineEdge(), llvm::XCoreInstrInfo::storeRegToStackSlot(), llvm::X86InstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::SystemZInstrInfo::storeRegToStackSlot(), llvm::SPUInstrInfo::storeRegToStackSlot(), llvm::SparcInstrInfo::storeRegToStackSlot(), llvm::PIC16InstrInfo::storeRegToStackSlot(), llvm::MSP430InstrInfo::storeRegToStackSlot(), llvm::MipsInstrInfo::storeRegToStackSlot(), llvm::BlackfinInstrInfo::storeRegToStackSlot(), llvm::ARMBaseInstrInfo::storeRegToStackSlot(), llvm::AlphaInstrInfo::storeRegToStackSlot(), transferSuccessors(), llvm::FastISel::UpdateValueMap(), llvm::ValueEnumerator::ValueEnumerator(), and WriteFunction().
| const_iterator llvm::MachineBasicBlock::end | ( | ) | const [inline] |
Definition at line 117 of file MachineBasicBlock.h.
| reverse_iterator llvm::MachineBasicBlock::rbegin | ( | ) | [inline] |
Definition at line 118 of file MachineBasicBlock.h.
| const_reverse_iterator llvm::MachineBasicBlock::rbegin | ( | ) | const [inline] |
Definition at line 119 of file MachineBasicBlock.h.
| reverse_iterator llvm::MachineBasicBlock::rend | ( | ) | [inline] |
Definition at line 120 of file MachineBasicBlock.h.
| const_reverse_iterator llvm::MachineBasicBlock::rend | ( | ) | const [inline] |
Definition at line 121 of file MachineBasicBlock.h.
| pred_iterator llvm::MachineBasicBlock::pred_begin | ( | ) | [inline] |
| const_pred_iterator llvm::MachineBasicBlock::pred_begin | ( | ) | const [inline] |
Definition at line 138 of file MachineBasicBlock.h.
| pred_iterator llvm::MachineBasicBlock::pred_end | ( | ) | [inline] |
| const_pred_iterator llvm::MachineBasicBlock::pred_end | ( | ) | const [inline] |
Definition at line 140 of file MachineBasicBlock.h.
| pred_reverse_iterator llvm::MachineBasicBlock::pred_rbegin | ( | ) | [inline] |
Definition at line 141 of file MachineBasicBlock.h.
Referenced by llvm::LiveVariables::MarkVirtRegAliveInBlock().
| const_pred_reverse_iterator llvm::MachineBasicBlock::pred_rbegin | ( | ) | const [inline] |
Definition at line 143 of file MachineBasicBlock.h.
| pred_reverse_iterator llvm::MachineBasicBlock::pred_rend | ( | ) | [inline] |
Definition at line 145 of file MachineBasicBlock.h.
Referenced by llvm::LiveVariables::MarkVirtRegAliveInBlock().
| const_pred_reverse_iterator llvm::MachineBasicBlock::pred_rend | ( | ) | const [inline] |
Definition at line 147 of file MachineBasicBlock.h.
| unsigned llvm::MachineBasicBlock::pred_size | ( | ) | const [inline] |
| bool llvm::MachineBasicBlock::pred_empty | ( | ) | const [inline] |
Definition at line 152 of file MachineBasicBlock.h.
Referenced by isOnlyReachableByFallthrough(), and print().
| succ_iterator llvm::MachineBasicBlock::succ_begin | ( | ) | [inline] |
Definition at line 153 of file MachineBasicBlock.h.
Referenced by BBHasFallthrough(), llvm::GraphTraits< const MachineBasicBlock * >::child_begin(), llvm::GraphTraits< MachineBasicBlock * >::child_begin(), CorrectExtraCFGEdges(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), findFalseBlock(), llvm::LiveIntervals::findReachableMBBs(), findSinglePredSuccessor(), isLiveOut(), print(), and transferSuccessors().
| const_succ_iterator llvm::MachineBasicBlock::succ_begin | ( | ) | const [inline] |
Definition at line 154 of file MachineBasicBlock.h.
| succ_iterator llvm::MachineBasicBlock::succ_end | ( | ) | [inline] |
Definition at line 155 of file MachineBasicBlock.h.
Referenced by BBHasFallthrough(), llvm::GraphTraits< const MachineBasicBlock * >::child_end(), llvm::GraphTraits< MachineBasicBlock * >::child_end(), CorrectExtraCFGEdges(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), findFalseBlock(), llvm::LiveIntervals::findReachableMBBs(), findSinglePredSuccessor(), isLiveOut(), print(), and transferSuccessors().
| const_succ_iterator llvm::MachineBasicBlock::succ_end | ( | ) | const [inline] |
Definition at line 156 of file MachineBasicBlock.h.
| succ_reverse_iterator llvm::MachineBasicBlock::succ_rbegin | ( | ) | [inline] |
Definition at line 157 of file MachineBasicBlock.h.
| const_succ_reverse_iterator llvm::MachineBasicBlock::succ_rbegin | ( | ) | const [inline] |
Definition at line 159 of file MachineBasicBlock.h.
| succ_reverse_iterator llvm::MachineBasicBlock::succ_rend | ( | ) | [inline] |
Definition at line 161 of file MachineBasicBlock.h.
| const_succ_reverse_iterator llvm::MachineBasicBlock::succ_rend | ( | ) | const [inline] |
Definition at line 163 of file MachineBasicBlock.h.
| unsigned llvm::MachineBasicBlock::succ_size | ( | ) | const [inline] |
Definition at line 165 of file MachineBasicBlock.h.
| bool llvm::MachineBasicBlock::succ_empty | ( | ) | const [inline] |
Definition at line 168 of file MachineBasicBlock.h.
Referenced by llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), print(), and transferSuccessors().
| void llvm::MachineBasicBlock::addLiveIn | ( | unsigned | Reg | ) | [inline] |
addLiveIn - Add the specified register as a live in. Note that it is an error to add the same register to the same set more than once.
Definition at line 174 of file MachineBasicBlock.h.
Referenced by llvm::XCoreRegisterInfo::emitPrologue(), llvm::SystemZInstrInfo::spillCalleeSavedRegisters(), llvm::MSP430InstrInfo::spillCalleeSavedRegisters(), llvm::X86InstrInfo::spillCalleeSavedRegisters(), llvm::XCoreInstrInfo::spillCalleeSavedRegisters(), and llvm::Thumb1InstrInfo::spillCalleeSavedRegisters().
| void MachineBasicBlock::removeLiveIn | ( | unsigned | Reg | ) |
removeLiveIn - Remove the specified register from the live in set.
Definition at line 229 of file MachineBasicBlock.cpp.
References livein_begin(), and livein_end().
isLiveIn - Return true if the specified register is in the live in set.
Definition at line 235 of file MachineBasicBlock.cpp.
References livein_begin(), and livein_end().
| livein_iterator llvm::MachineBasicBlock::livein_begin | ( | ) | [inline] |
Definition at line 188 of file MachineBasicBlock.h.
Referenced by llvm::RegScavenger::initRegState(), isLiveIn(), isLiveInButUnusedBefore(), print(), removeLiveIn(), llvm::LiveVariables::runOnMachineFunction(), llvm::ScheduleDAGInstrs::StartBlock(), and llvm::LoopDependencies::VisitLoop().
| const_livein_iterator llvm::MachineBasicBlock::livein_begin | ( | ) | const [inline] |
Definition at line 189 of file MachineBasicBlock.h.
| livein_iterator llvm::MachineBasicBlock::livein_end | ( | ) | [inline] |
Definition at line 190 of file MachineBasicBlock.h.
Referenced by llvm::RegScavenger::initRegState(), isLiveIn(), isLiveInButUnusedBefore(), print(), removeLiveIn(), llvm::LiveVariables::runOnMachineFunction(), llvm::ScheduleDAGInstrs::StartBlock(), and llvm::LoopDependencies::VisitLoop().
| const_livein_iterator llvm::MachineBasicBlock::livein_end | ( | ) | const [inline] |
Definition at line 191 of file MachineBasicBlock.h.
| bool llvm::MachineBasicBlock::livein_empty | ( | ) | const [inline] |
| unsigned llvm::MachineBasicBlock::getAlignment | ( | ) | const [inline] |
getAlignment - Return alignment of the basic block.
Definition at line 196 of file MachineBasicBlock.h.
References Alignment.
Referenced by llvm::AsmPrinter::printBasicBlockLabel().
| void llvm::MachineBasicBlock::setAlignment | ( | unsigned | Align | ) | [inline] |
setAlignment - Set alignment of the basic block.
Definition at line 200 of file MachineBasicBlock.h.
References Alignment.
| bool llvm::MachineBasicBlock::isLandingPad | ( | ) | const [inline] |
isLandingPad - Returns true if the block is a landing pad. That is this basic block is entered via an exception handler.
Definition at line 204 of file MachineBasicBlock.h.
Referenced by isOnlyReachableByFallthrough(), and print().
| void llvm::MachineBasicBlock::setIsLandingPad | ( | ) | [inline] |
setIsLandingPad - Indicates the block is a landing pad. That is this basic block is entered via an exception handler.
Definition at line 208 of file MachineBasicBlock.h.
| void MachineBasicBlock::moveBefore | ( | MachineBasicBlock * | NewAfter | ) |
moveBefore/moveAfter - move 'this' block before or after the specified block. This only moves the block, it does not modify the CFG or adjust potential fall-throughs at the end of the block.
Definition at line 240 of file MachineBasicBlock.cpp.
References getParent(), and llvm::MachineFunction::splice().
| void MachineBasicBlock::moveAfter | ( | MachineBasicBlock * | NewBefore | ) |
Definition at line 244 of file MachineBasicBlock.cpp.
References BBI, getParent(), and llvm::MachineFunction::splice().
| void MachineBasicBlock::addSuccessor | ( | MachineBasicBlock * | succ | ) |
addSuccessor - Add succ as a successor of this MachineBasicBlock. The Predecessors list of succ is automatically updated.
Definition at line 250 of file MachineBasicBlock.cpp.
References addPredecessor().
Referenced by llvm::PPCTargetLowering::EmitAtomicBinary(), llvm::PIC16TargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::SystemZTargetLowering::EmitInstrWithCustomInserter(), llvm::AlphaTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::SparcTargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), llvm::FastISel::FastEmitBranch(), ReplaceUsesOfBlockWith(), llvm::SplitCriticalMachineEdge(), transferSuccessors(), llvm::SelectionDAGLowering::visitBitTestCase(), llvm::SelectionDAGLowering::visitBitTestHeader(), and llvm::SelectionDAGLowering::visitSwitchCase().
| void MachineBasicBlock::removeSuccessor | ( | MachineBasicBlock * | succ | ) |
removeSuccessor - Remove successor from the successors list of this MachineBasicBlock. The Predecessors list of succ is automatically updated.
Definition at line 255 of file MachineBasicBlock.cpp.
References removePredecessor().
Referenced by CorrectExtraCFGEdges(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), ReplaceUsesOfBlockWith(), llvm::SplitCriticalMachineEdge(), transferSuccessors(), and llvm::SelectionDAGLowering::visitSwitchCase().
| MachineBasicBlock::succ_iterator MachineBasicBlock::removeSuccessor | ( | succ_iterator | I | ) |
removeSuccessor - Remove specified successor from the successors list of this MachineBasicBlock. The Predecessors list of succ is automatically updated. Return the iterator to the element after the one removed.
Definition at line 263 of file MachineBasicBlock.cpp.
| void MachineBasicBlock::transferSuccessors | ( | MachineBasicBlock * | fromMBB | ) |
transferSuccessors - Transfers all the successors from MBB to this machine basic block (i.e., copies all the successors fromMBB and remove all the successors fromBB).
Definition at line 280 of file MachineBasicBlock.cpp.
References addSuccessor(), end(), removeSuccessor(), succ_begin(), succ_empty(), and succ_end().
Referenced by llvm::PPCTargetLowering::EmitAtomicBinary(), llvm::PIC16TargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::SystemZTargetLowering::EmitInstrWithCustomInserter(), llvm::AlphaTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::SparcTargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), and llvm::PPCTargetLowering::EmitPartwordAtomicBinary().
| bool MachineBasicBlock::isSuccessor | ( | const MachineBasicBlock * | MBB | ) | const |
isSuccessor - Return true if the specified MBB is a successor of this block.
Definition at line 293 of file MachineBasicBlock.cpp.
Referenced by IsBetterFallthrough(), and isSameOrFallThroughBB().
| bool MachineBasicBlock::isLayoutSuccessor | ( | const MachineBasicBlock * | MBB | ) | const |
isLayoutSuccessor - Return true if the specified MBB will be emitted immediately after this block, such that if this block exits by falling through, control will transfer to the specified MBB. Note that MBB need not be a successor at all, for example if this block ends with an unconditional branch to some other block.
Definition at line 299 of file MachineBasicBlock.cpp.
References llvm::next().
Referenced by llvm::X86InstrInfo::AnalyzeBranch(), llvm::SystemZInstrInfo::AnalyzeBranch(), llvm::FastISel::FastEmitBranch(), and isOnlyReachableByFallthrough().
| MachineBasicBlock::iterator MachineBasicBlock::getFirstTerminator | ( | ) |
getFirstTerminator - returns an iterator to the first terminator instruction of this basic block. If a terminator does not exist, it returns end()
Definition at line 123 of file MachineBasicBlock.cpp.
References begin(), and end().
Referenced by llvm::LiveIntervals::computeNumbering().
| bool MachineBasicBlock::isOnlyReachableByFallthrough | ( | ) | const |
isOnlyReachableViaFallthough - Return true if this basic block has exactly one predecessor and the control transfer mechanism between the predecessor and this block is a fall-through.
isOnlyReachableViaFallthough - Return true if this basic block has exactly one predecessor and the control transfer mechanism between the predecessor and this block is a fall-through.
Definition at line 134 of file MachineBasicBlock.cpp.
References back(), empty(), llvm::MachineInstr::getDesc(), llvm::TargetInstrDesc::isBarrier(), isLandingPad(), isLayoutSuccessor(), PI, Pred, pred_begin(), pred_empty(), and pred_end().
| void llvm::MachineBasicBlock::pop_front | ( | ) | [inline] |
Definition at line 262 of file MachineBasicBlock.h.
| void llvm::MachineBasicBlock::pop_back | ( | ) | [inline] |
| void llvm::MachineBasicBlock::push_back | ( | MachineInstr * | MI | ) | [inline] |
Definition at line 264 of file MachineBasicBlock.h.
| void llvm::MachineBasicBlock::insert | ( | iterator | I, | |
| IT | S, | |||
| IT | E | |||
| ) | [inline] |
Definition at line 266 of file MachineBasicBlock.h.
Referenced by llvm::BuildMI(), llvm::XCoreRegisterInfo::eliminateCallFramePseudoInstr(), llvm::X86RegisterInfo::eliminateCallFramePseudoInstr(), llvm::MSP430RegisterInfo::eliminateCallFramePseudoInstr(), llvm::AlphaRegisterInfo::eliminateCallFramePseudoInstr(), llvm::AlphaRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::emitEpilogue(), llvm::ScheduleDAGSDNodes::EmitNode(), llvm::X86RegisterInfo::emitPrologue(), llvm::ScheduleDAGInstrs::EmitSchedule(), llvm::PPCInstrInfo::loadRegFromStackSlot(), llvm::X86InstrInfo::reMaterialize(), llvm::TargetInstrInfoImpl::reMaterialize(), llvm::ARMInstrInfo::reMaterialize(), llvm::Thumb1InstrInfo::restoreCalleeSavedRegisters(), and llvm::PPCInstrInfo::storeRegToStackSlot().
| iterator llvm::MachineBasicBlock::insert | ( | iterator | I, | |
| MachineInstr * | M | |||
| ) | [inline] |
Definition at line 267 of file MachineBasicBlock.h.
Definition at line 272 of file MachineBasicBlock.h.
Referenced by llvm::XCoreRegisterInfo::eliminateCallFramePseudoInstr(), llvm::X86RegisterInfo::eliminateCallFramePseudoInstr(), llvm::Thumb1RegisterInfo::eliminateCallFramePseudoInstr(), llvm::SystemZRegisterInfo::eliminateCallFramePseudoInstr(), llvm::SPURegisterInfo::eliminateCallFramePseudoInstr(), llvm::SparcRegisterInfo::eliminateCallFramePseudoInstr(), llvm::PPCRegisterInfo::eliminateCallFramePseudoInstr(), llvm::PIC16RegisterInfo::eliminateCallFramePseudoInstr(), llvm::MSP430RegisterInfo::eliminateCallFramePseudoInstr(), llvm::MipsRegisterInfo::eliminateCallFramePseudoInstr(), llvm::BlackfinRegisterInfo::eliminateCallFramePseudoInstr(), llvm::ARMBaseRegisterInfo::eliminateCallFramePseudoInstr(), llvm::AlphaRegisterInfo::eliminateCallFramePseudoInstr(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::emitEpilogue(), llvm::X86RegisterInfo::emitEpilogue(), llvm::Thumb1RegisterInfo::emitEpilogue(), EmitLiveInCopy(), llvm::MachineInstr::eraseFromParent(), llvm::InlineFunction(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), mergeSPUpdates(), mergeSPUpdatesDown(), mergeSPUpdatesUp(), llvm::Thumb1InstrInfo::restoreCalleeSavedRegisters(), and llvm::DebugLabelFolder::runOnMachineFunction().
Definition at line 273 of file MachineBasicBlock.h.
| MachineInstr* llvm::MachineBasicBlock::remove | ( | MachineInstr * | I | ) | [inline] |
Definition at line 274 of file MachineBasicBlock.h.
Referenced by llvm::ScheduleDAGInstrs::EmitSchedule(), and llvm::MachineInstr::removeFromParent().
| void llvm::MachineBasicBlock::clear | ( | ) | [inline] |
Definition at line 275 of file MachineBasicBlock.h.
| void llvm::MachineBasicBlock::splice | ( | iterator | where, | |
| MachineBasicBlock * | Other, | |||
| iterator | From | |||
| ) | [inline] |
splice - Take an instruction from MBB 'Other' at the position From, and insert it into this MBB right before 'where'.
Definition at line 279 of file MachineBasicBlock.h.
References Insts.
| void llvm::MachineBasicBlock::splice | ( | iterator | where, | |
| MachineBasicBlock * | Other, | |||
| iterator | From, | |||
| iterator | To | |||
| ) | [inline] |
splice - Take a block of instructions from MBB 'Other' in the range [From, To), and insert them into this MBB right before 'where'.
Definition at line 285 of file MachineBasicBlock.h.
References Insts.
| MachineBasicBlock * MachineBasicBlock::removeFromParent | ( | ) |
removeFromParent - This method unlinks 'this' from the containing function, and returns it, but does not delete it.
removeFromParent - This method unlinks 'this' from the containing function, and returns it, but does not delete it.
Definition at line 306 of file MachineBasicBlock.cpp.
References getParent(), and llvm::MachineFunction::remove().
| void MachineBasicBlock::eraseFromParent | ( | ) |
eraseFromParent - This method unlinks 'this' from the containing function and deletes it.
eraseFromParent - This method unlinks 'this' from the containing function, and deletes it.
Definition at line 315 of file MachineBasicBlock.cpp.
References llvm::MachineFunction::erase(), and getParent().
Referenced by llvm::X86InstrInfo::AnalyzeBranch(), and llvm::SystemZInstrInfo::AnalyzeBranch().
| void MachineBasicBlock::ReplaceUsesOfBlockWith | ( | MachineBasicBlock * | Old, | |
| MachineBasicBlock * | New | |||
| ) |
ReplaceUsesOfBlockWith - Given a machine basic block that branched to 'Old', change the code and CFG so that it branches to 'New' instead.
ReplaceUsesOfBlockWith - Given a machine basic block that branched to 'Old', change the code and CFG so that it branches to 'New' instead.
Definition at line 323 of file MachineBasicBlock.cpp.
References addSuccessor(), begin(), end(), and removeSuccessor().
| bool MachineBasicBlock::CorrectExtraCFGEdges | ( | MachineBasicBlock * | DestA, | |
| MachineBasicBlock * | DestB, | |||
| bool | isCond | |||
| ) |
CorrectExtraCFGEdges - Various pieces of code can cause excess edges in the CFG to be inserted. If we have proven that MBB can only branch to DestA and DestB, remove any other MBB successors from the CFG. DestA and DestB can be null. Besides DestA and DestB, retain other edges leading to LandingPads (currently there can be only one; we don't check or require that here). Note it is possible that DestA and/or DestB are LandingPads.
CorrectExtraCFGEdges - Various pieces of code can cause excess edges in the CFG to be inserted. If we have proven that MBB can only branch to DestA and DestB, remove any other MBB successors from the CFG. DestA and DestB can be null. Besides DestA and DestB, retain other edges leading to LandingPads (currently there can be only one; we don't check or require that here). Note it is possible that DestA and/or DestB are LandingPads.
Definition at line 352 of file MachineBasicBlock.cpp.
References end(), getParent(), MadeChange, llvm::next(), removeSuccessor(), succ_begin(), and succ_end().
| void MachineBasicBlock::dump | ( | ) | const |
| void MachineBasicBlock::print | ( | std::ostream & | OS, | |
| const PrefixPrinter & | prefix = PrefixPrinter() | |||
| ) | const |
Definition at line 176 of file MachineBasicBlock.cpp.
Referenced by dump(), llvm::DOTGraphTraits< const MachineFunction * >::getNodeLabel(), llvm::operator<<(), llvm::MachineFunction::print(), and print().
| void llvm::MachineBasicBlock::print | ( | std::ostream * | OS, | |
| const PrefixPrinter & | prefix = PrefixPrinter() | |||
| ) | const [inline] |
| void MachineBasicBlock::print | ( | raw_ostream & | OS, | |
| const PrefixPrinter & | prefix = PrefixPrinter() | |||
| ) | const |
Definition at line 182 of file MachineBasicBlock.cpp.
References Alignment, begin(), E, end(), getBasicBlock(), llvm::Value::getName(), getNumber(), getParent(), llvm::TargetMachine::getRegisterInfo(), llvm::MachineFunction::getTarget(), isLandingPad(), livein_begin(), livein_empty(), livein_end(), OutputReg(), PI, pred_begin(), pred_empty(), pred_end(), succ_begin(), succ_empty(), succ_end(), and TRI.
| void llvm::MachineBasicBlock::print | ( | raw_ostream * | OS, | |
| const PrefixPrinter & | prefix = PrefixPrinter() | |||
| ) | const [inline] |
| int llvm::MachineBasicBlock::getNumber | ( | ) | const [inline] |
getNumber - MachineBasicBlocks are uniquely numbered at the function level, unless they're not in a MachineFunction yet, in which case this will return -1.
Definition at line 331 of file MachineBasicBlock.h.
Referenced by CompareMBBNumbers(), llvm::LiveIntervals::computeNumbering(), llvm::AsmPrinter::EmitComments(), llvm::ObjectCodeEmitter::getMachineBasicBlockAddress(), llvm::LiveIntervals::getMBBEndIdx(), llvm::LiveIntervals::getMBBStartIdx(), llvm::DOTGraphTraits< const MachineFunction * >::getNodeLabel(), llvm::LiveVariables::HandleVirtRegUse(), HashMachineInstr(), llvm::LiveVariables::MarkVirtRegAliveInBlock(), print(), llvm::AsmPrinter::printBasicBlockLabel(), PrintChildLoopComment(), llvm::X86ATTAsmPrinter::printMachineInstruction(), llvm::X86ATTAsmPrinter::printPICJumpTableEntry(), llvm::AsmPrinter::printPICJumpTableEntry(), llvm::X86IntelAsmPrinter::printPICJumpTableSetLabel(), llvm::X86ATTAsmPrinter::printPICJumpTableSetLabel(), llvm::AsmPrinter::printPICJumpTableSetLabel(), llvm::LiveVariables::runOnMachineFunction(), llvm::LiveIntervals::scaleNumbering(), and llvm::ObjectCodeEmitter::StartMachineBasicBlock().
| void llvm::MachineBasicBlock::setNumber | ( | int | N | ) | [inline] |
Definition at line 332 of file MachineBasicBlock.h.
friend class MachineFunction [friend] |
Definition at line 88 of file MachineBasicBlock.h.
friend struct ilist_traits< MachineBasicBlock > [friend] |
Definition at line 335 of file MachineBasicBlock.h.