/external/llvm/lib/CodeGen/ |
PHIEliminationUtils.cpp | 17 // findCopyInsertPoint - Find a safe place in MBB to insert a copy from SrcReg 22 llvm::findPHICopyInsertPoint(MachineBasicBlock* MBB, MachineBasicBlock* SuccMBB, 25 if (MBB->empty()) 26 return MBB->begin(); 32 return MBB->getFirstTerminator(); 36 MachineRegisterInfo& MRI = MBB->getParent()->getRegInfo(); 40 if (DefUseMI->getParent() == MBB) 47 InsertPoint = MBB->begin(); 54 InsertPoint = MBB->end(); 60 return MBB->SkipPHIsAndLabels(InsertPoint) [all...] |
ShrinkWrapping.cpp | 126 bool PEI::isReturnBlock(MachineBasicBlock* MBB) { 127 return (MBB && !MBB->empty() && MBB->back().getDesc().isReturn()); 197 /// for the given MBB by looking forward in the MCFG at MBB's 200 bool PEI::calcAnticInOut(MachineBasicBlock* MBB) { 203 // AnticOut[MBB] = INTERSECT(AnticIn[S] for S in SUCCESSORS(MBB)) 205 for (MachineBasicBlock::succ_iterator SI = MBB->succ_begin() [all...] |
PHIEliminationUtils.h | 16 /// findPHICopyInsertPoint - Find a safe place in MBB to insert a copy from 21 findPHICopyInsertPoint(MachineBasicBlock* MBB, MachineBasicBlock* SuccMBB,
|
BranchFolding.cpp | 11 // directly to the target block. This pass often results in dead MBB's, which 102 void BranchFolder::RemoveDeadBlock(MachineBasicBlock *MBB) { 103 assert(MBB->pred_empty() && "MBB must be dead!"); 104 DEBUG(dbgs() << "\nRemoving MBB: " << *MBB); 106 MachineFunction *MF = MBB->getParent(); 108 while (!MBB->succ_empty()) 109 MBB->removeSuccessor(MBB->succ_end()-1) [all...] |
PrologEpilogInserter.h | 115 bool calcAnticInOut(MachineBasicBlock* MBB); 116 bool calcAvailInOut(MachineBasicBlock* MBB); 118 bool addUsesForMEMERegion(MachineBasicBlock* MBB, 121 bool calcSpillPlacements(MachineBasicBlock* MBB, 124 bool calcRestorePlacements(MachineBasicBlock* MBB, 149 // Propgate CSRs used in MBB to all MBBs of loop LP. 150 void propagateUsesAroundLoop(MachineBasicBlock* MBB, MachineLoop* LP); 153 bool isReturnBlock(MachineBasicBlock* MBB); 164 std::string getBasicBlockName(const MachineBasicBlock* MBB); 167 void dumpUsed(MachineBasicBlock* MBB); [all...] |
ObjectCodeEmitter.cpp | 103 void ObjectCodeEmitter::StartMachineBasicBlock(MachineBasicBlock *MBB) { 104 if (MBBLocations.size() <= (unsigned)MBB->getNumber()) 105 MBBLocations.resize((MBB->getNumber()+1)*2); 106 MBBLocations[MBB->getNumber()] = getCurrentPCOffset(); 110 /// MachineBasicBlock, only usable after the label for the MBB has been 113 ObjectCodeEmitter::getMachineBasicBlockAddress(MachineBasicBlock *MBB) const { 114 assert(MBBLocations.size() > (unsigned)MBB->getNumber() && 115 MBBLocations[MBB->getNumber()] && "MBB not emitted!"); 116 return MBBLocations[MBB->getNumber()] [all...] |
ExpandISelPseudos.cpp | 59 MachineBasicBlock *MBB = I; 60 for (MachineBasicBlock::iterator MBBI = MBB->begin(), MBBE = MBB->end(); 69 TLI->EmitInstrWithCustomInserter(MI, MBB); 71 if (NewMBB != MBB) { 72 MBB = NewMBB;
|
/external/llvm/lib/Target/PTX/ |
PTXFrameLowering.cpp | 23 MachineBasicBlock &MBB) const {
|
/external/llvm/lib/Target/Sparc/ |
SparcFrameLowering.cpp | 30 MachineBasicBlock &MBB = MF.front(); 34 MachineBasicBlock::iterator MBBI = MBB.begin(); 35 DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); 55 BuildMI(MBB, MBBI, dl, TII.get(SP::SAVEri), SP::O6) 61 BuildMI(MBB, MBBI, dl, TII.get(SP::SETHIi), SP::G1).addImm(OffHi); 63 BuildMI(MBB, MBBI, dl, TII.get(SP::ORri), SP::G1) 65 BuildMI(MBB, MBBI, dl, TII.get(SP::SAVErr), SP::O6) 71 MachineBasicBlock &MBB) const { 72 MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr(); 78 BuildMI(MBB, MBBI, dl, TII.get(SP::RESTORErr), SP::G0).addReg(SP::G0 [all...] |
SparcInstrInfo.h | 66 virtual bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 71 virtual unsigned RemoveBranch(MachineBasicBlock &MBB) const; 73 virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, 78 virtual void copyPhysReg(MachineBasicBlock &MBB, 83 virtual void storeRegToStackSlot(MachineBasicBlock &MBB, 89 virtual void loadRegFromStackSlot(MachineBasicBlock &MBB,
|
/external/llvm/lib/Target/MSP430/ |
MSP430BranchSelector.cpp | 61 // Measure each MBB and compute a size for the entire function. 65 MachineBasicBlock *MBB = MFI; 68 for (MachineBasicBlock::iterator MBBI = MBB->begin(), EE = MBB->end(); 72 BlockSizes[MBB->getNumber()] = BlockSize; 88 // bCC MBB 91 // b MBB 101 MachineBasicBlock &MBB = *MFI; 103 for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end() [all...] |
MSP430FrameLowering.h | 36 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const; 38 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, 42 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
|
MSP430FrameLowering.cpp | 42 MachineBasicBlock &MBB = MF.front(); // Prolog goes in entry BB 48 MachineBasicBlock::iterator MBBI = MBB.begin(); 49 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); 66 BuildMI(MBB, MBBI, DL, TII.get(MSP430::PUSH16r)) 70 BuildMI(MBB, MBBI, DL, TII.get(MSP430::MOV16rr), MSP430::FPW) 82 while (MBBI != MBB.end() && (MBBI->getOpcode() == MSP430::PUSH16r)) 85 if (MBBI != MBB.end()) 91 //NumBytes -= mergeSPUpdates(MBB, MBBI, true); 94 // mergeSPUpdatesDown(MBB, MBBI, &NumBytes); 98 BuildMI(MBB, MBBI, DL, TII.get(MSP430::SUB16ri), MSP430::SPW [all...] |
MSP430InstrInfo.h | 55 void copyPhysReg(MachineBasicBlock &MBB, 60 virtual void storeRegToStackSlot(MachineBasicBlock &MBB, 66 virtual void loadRegFromStackSlot(MachineBasicBlock &MBB, 77 bool AnalyzeBranch(MachineBasicBlock &MBB, 82 unsigned RemoveBranch(MachineBasicBlock &MBB) const; 83 unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
|
/external/llvm/lib/Target/PowerPC/ |
PPCBranchSelector.cpp | 62 // Measure each MBB and compute a size for the entire function. 66 MachineBasicBlock *MBB = MFI; 69 for (MachineBasicBlock::iterator MBBI = MBB->begin(), EE = MBB->end(); 73 BlockSizes[MBB->getNumber()] = BlockSize; 89 // bCC MBB 92 // b MBB 102 MachineBasicBlock &MBB = *MFI; 104 for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end() [all...] |
/external/llvm/lib/Target/Alpha/ |
AlphaInstrInfo.h | 41 virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, 45 virtual void copyPhysReg(MachineBasicBlock &MBB, 49 virtual void storeRegToStackSlot(MachineBasicBlock &MBB, 55 virtual void loadRegFromStackSlot(MachineBasicBlock &MBB, 61 bool AnalyzeBranch(MachineBasicBlock &MBB,MachineBasicBlock *&TBB, 65 unsigned RemoveBranch(MachineBasicBlock &MBB) const; 66 void insertNoop(MachineBasicBlock &MBB,
|
/external/llvm/lib/Target/ARM/ |
Thumb1FrameLowering.h | 36 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const; 38 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, 42 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
|
Thumb1InstrInfo.h | 40 void copyPhysReg(MachineBasicBlock &MBB, 44 void storeRegToStackSlot(MachineBasicBlock &MBB, 50 void loadRegFromStackSlot(MachineBasicBlock &MBB,
|
Thumb2InstrInfo.h | 38 bool isLegalToSplitMBBAt(MachineBasicBlock &MBB, 41 void copyPhysReg(MachineBasicBlock &MBB, 46 void storeRegToStackSlot(MachineBasicBlock &MBB, 52 void loadRegFromStackSlot(MachineBasicBlock &MBB,
|
Thumb2RegisterInfo.cpp | 35 Thumb2RegisterInfo::emitLoadConstPool(MachineBasicBlock &MBB, 42 MachineFunction &MF = *MBB.getParent(); 45 Type::getInt32Ty(MBB.getParent()->getFunction()->getContext()), Val); 48 BuildMI(MBB, MBBI, dl, TII.get(ARM::t2LDRpci))
|
/external/llvm/lib/Target/Mips/ |
MipsExpandPseudo.cpp | 41 bool runOnMachineBasicBlock(MachineBasicBlock &MBB); 60 bool MipsExpandPseudo::runOnMachineBasicBlock(MachineBasicBlock& MBB) { 63 for (MachineBasicBlock::iterator I = MBB.begin(); I != MBB.end();) { 71 ExpandBuildPairF64(MBB, I); 74 ExpandExtractElementF64(MBB, I); 79 MBB.erase(I++); 86 void MipsExpandPseudo::ExpandBuildPairF64(MachineBasicBlock& MBB, 97 BuildMI(MBB, I, dl, Mtc1Tdd, *SubReg).addReg(LoReg); 98 BuildMI(MBB, I, dl, Mtc1Tdd, *(SubReg + 1)).addReg(HiReg) [all...] |
MipsInstrInfo.h | 143 virtual bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 147 virtual unsigned RemoveBranch(MachineBasicBlock &MBB) const; 150 void BuildCondBr(MachineBasicBlock &MBB, MachineBasicBlock *TBB, DebugLoc DL, 154 virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, 158 virtual void copyPhysReg(MachineBasicBlock &MBB, 162 virtual void storeRegToStackSlot(MachineBasicBlock &MBB, 168 virtual void loadRegFromStackSlot(MachineBasicBlock &MBB, 183 virtual void insertNoop(MachineBasicBlock &MBB,
|
/external/llvm/lib/Target/XCore/ |
XCoreFrameLowering.h | 32 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const; 34 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, 38 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
|
/external/llvm/lib/Target/CellSPU/ |
SPUInstrInfo.cpp | 124 void SPUInstrInfo::copyPhysReg(MachineBasicBlock &MBB, 134 BuildMI(MBB, I, DL, get(SPU::LRr128), DestReg) 139 SPUInstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB, 168 if (MI != MBB.end()) DL = MI->getDebugLoc(); 169 addFrameReference(BuildMI(MBB, MI, DL, get(opc)) 174 SPUInstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB, 203 if (MI != MBB.end()) DL = MI->getDebugLoc(); 204 addFrameReference(BuildMI(MBB, MI, DL, get(opc), DestReg), FrameIdx); 213 SPUInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 218 MachineBasicBlock::iterator I = MBB.end() [all...] |
SPUInstrInfo.h | 47 virtual void copyPhysReg(MachineBasicBlock &MBB, 53 virtual void storeRegToStackSlot(MachineBasicBlock &MBB, 60 virtual void loadRegFromStackSlot(MachineBasicBlock &MBB, 70 virtual bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 75 virtual unsigned RemoveBranch(MachineBasicBlock &MBB) const; 77 virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
|