/external/llvm/lib/CodeGen/ |
H A D | PHIEliminationUtils.cpp | 17 // findCopyInsertPoint - Find a safe place in MBB to insert a copy from SrcReg 22 llvm::findPHICopyInsertPoint(MachineBasicBlock* MBB, MachineBasicBlock* SuccMBB, argument 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 [all...] |
H A D | ShrinkWrapping.cpp | 127 bool PEI::isReturnBlock(MachineBasicBlock* MBB) { argument 128 return (MBB && !MBB->empty() && MBB->back().isReturn()); 198 /// for the given MBB by looking forward in the MCFG at MBB's 201 bool PEI::calcAnticInOut(MachineBasicBlock* MBB) { argument 204 // AnticOut[MBB] = INTERSECT(AnticIn[S] for S in SUCCESSORS(MBB)) 206 for (MachineBasicBlock::succ_iterator SI = MBB 239 calcAvailInOut(MachineBasicBlock* MBB) argument 289 MachineBasicBlock* MBB = MBBI; local 328 propagateUsesAroundLoop(MachineBasicBlock* MBB, MachineLoop* LP) argument 410 MachineBasicBlock* MBB = MBBI; local 496 MachineBasicBlock* MBB = MBBI; local 557 addUsesForMEMERegion(MachineBasicBlock* MBB, SmallVector<MachineBasicBlock*, 4>& blks) argument 639 MachineBasicBlock* MBB = I->first; local 677 calcSpillPlacements(MachineBasicBlock* MBB, SmallVector<MachineBasicBlock*, 4> &blks, CSRegBlockMap &prevSpills) argument 739 calcRestorePlacements(MachineBasicBlock* MBB, SmallVector<MachineBasicBlock*, 4> &blks, CSRegBlockMap &prevRestores) argument 822 MachineBasicBlock* MBB = MBBI; local 837 MachineBasicBlock* MBB = cvBlocks.pop_back_val(); local 942 MachineBasicBlock* MBB = MBBI; local 948 MachineBasicBlock* MBB = BI->first; local 1001 MachineBasicBlock* MBB = BI->first; local 1044 getBasicBlockName(const MachineBasicBlock* MBB) argument 1085 dumpUsed(MachineBasicBlock* MBB) argument 1096 MachineBasicBlock* MBB = MBBI; local 1101 dumpSets(MachineBasicBlock* MBB) argument 1113 dumpSets1(MachineBasicBlock* MBB) argument 1130 MachineBasicBlock* MBB = MBBI; local [all...] |
H A D | PHIEliminationUtils.h | 16 /// findPHICopyInsertPoint - Find a safe place in MBB to insert a copy from 21 findPHICopyInsertPoint(MachineBasicBlock* MBB, MachineBasicBlock* SuccMBB,
|
H A D | MachineBranchProbabilityInfo.cpp | 32 getSumForBlock(const MachineBasicBlock *MBB, uint32_t &Scale) const { argument 36 assert(MBB->succ_size() < UINT32_MAX); 39 for (MachineBasicBlock::const_succ_iterator I = MBB->succ_begin(), 40 E = MBB->succ_end(); I != E; ++I) { 41 uint32_t Weight = getEdgeWeight(MBB, *I); 54 for (MachineBasicBlock::const_succ_iterator I = MBB->succ_begin(), 55 E = MBB->succ_end(); I != E; ++I) { 56 uint32_t Weight = getEdgeWeight(MBB, *I); 80 MachineBranchProbabilityInfo::getHotSucc(MachineBasicBlock *MBB) const { 83 for (MachineBasicBlock::const_succ_iterator I = MBB [all...] |
H A D | PrologEpilogInserter.h | 111 bool calcAnticInOut(MachineBasicBlock* MBB); 112 bool calcAvailInOut(MachineBasicBlock* MBB); 114 bool addUsesForMEMERegion(MachineBasicBlock* MBB, 117 bool calcSpillPlacements(MachineBasicBlock* MBB, 120 bool calcRestorePlacements(MachineBasicBlock* MBB, 145 // Propgate CSRs used in MBB to all MBBs of loop LP. 146 void propagateUsesAroundLoop(MachineBasicBlock* MBB, MachineLoop* LP); 149 bool isReturnBlock(MachineBasicBlock* MBB); 160 std::string getBasicBlockName(const MachineBasicBlock* MBB); 163 void dumpUsed(MachineBasicBlock* MBB); [all...] |
H A D | ExpandISelPseudos.cpp | 52 MachineBasicBlock *MBB = I; local 53 for (MachineBasicBlock::iterator MBBI = MBB->begin(), MBBE = MBB->end(); 61 TLI->EmitInstrWithCustomInserter(MI, MBB); 63 if (NewMBB != MBB) { 64 MBB = NewMBB;
|
H A D | MachineVerifier.cpp | 97 // Is this MBB reachable from the MF entry point? 104 // Regs killed in MBB. They may be defined again, and will then be in both 108 // Regs defined in MBB and live out. Note that vregs passing through may 112 // Vregs that pass through MBB untouched. This set is disjoint from 116 // Vregs that must pass through MBB because they are needed by a successor 175 // Extra register info per MBB. 193 void visitMachineBasicBlockBefore(const MachineBasicBlock *MBB); 197 void visitMachineBasicBlockAfter(const MachineBasicBlock *MBB); 201 void report(const char *msg, const MachineBasicBlock *MBB); 206 void markReachable(const MachineBasicBlock *MBB); 340 report(const char *msg, const MachineBasicBlock *MBB) argument 370 markReachable(const MachineBasicBlock *MBB) argument 410 visitMachineBasicBlockBefore(const MachineBasicBlock *MBB) argument 891 visitMachineBasicBlockAfter(const MachineBasicBlock *MBB) argument 930 const MachineBasicBlock *MBB = *todo.begin(); local 965 const MachineBasicBlock *MBB = *todo.begin(); local 981 checkPHIOps(const MachineBasicBlock *MBB) argument 1110 const MachineBasicBlock *MBB = LiveInts->getMBBFromIndex(VNI->def); local 1191 const MachineBasicBlock *MBB = LiveInts->getMBBFromIndex(I->start); local [all...] |
/external/llvm/lib/Target/PTX/ |
H A D | PTXFrameLowering.cpp | 23 MachineBasicBlock &MBB) const {
|
/external/llvm/lib/Target/Sparc/ |
H A D | SparcFrameLowering.cpp | 30 MachineBasicBlock &MBB = MF.front(); local 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, MBB [all...] |
H A D | SparcInstrInfo.h | 73 virtual bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 78 virtual unsigned RemoveBranch(MachineBasicBlock &MBB) const; 80 virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, 85 virtual void copyPhysReg(MachineBasicBlock &MBB, 90 virtual void storeRegToStackSlot(MachineBasicBlock &MBB, 96 virtual void loadRegFromStackSlot(MachineBasicBlock &MBB,
|
/external/llvm/lib/Target/MSP430/ |
H A D | MSP430BranchSelector.cpp | 61 // Measure each MBB and compute a size for the entire function. 65 MachineBasicBlock *MBB = MFI; local 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; local 103 for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB [all...] |
H A D | MSP430FrameLowering.cpp | 42 MachineBasicBlock &MBB = MF.front(); // Prolog goes in entry BB local 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, MBB 180 spillCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector<CalleeSavedInfo> &CSI, const TargetRegisterInfo *TRI) const argument 206 restoreCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector<CalleeSavedInfo> &CSI, const TargetRegisterInfo *TRI) const argument [all...] |
H A D | 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/Mips/ |
H A D | MipsExpandPseudo.cpp | 41 bool runOnMachineBasicBlock(MachineBasicBlock &MBB); 60 bool MipsExpandPseudo::runOnMachineBasicBlock(MachineBasicBlock& MBB) { argument 63 for (MachineBasicBlock::iterator I = MBB.begin(); I != MBB.end();) { 72 BuildMI(MBB, I, I->getDebugLoc(), TII->get(Mips::ADDu), 77 ExpandBuildPairF64(MBB, I); 80 ExpandExtractElementF64(MBB, I); 85 MBB.erase(I++); 92 void MipsExpandPseudo::ExpandBuildPairF64(MachineBasicBlock& MBB, argument 103 BuildMI(MBB, 107 ExpandExtractElementF64(MachineBasicBlock& MBB, MachineBasicBlock::iterator I) argument [all...] |
H A D | MipsInstrInfo.h | 64 virtual bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 68 virtual unsigned RemoveBranch(MachineBasicBlock &MBB) const; 71 void BuildCondBr(MachineBasicBlock &MBB, MachineBasicBlock *TBB, DebugLoc DL, 75 virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, 79 virtual void copyPhysReg(MachineBasicBlock &MBB, 83 virtual void storeRegToStackSlot(MachineBasicBlock &MBB, 89 virtual void loadRegFromStackSlot(MachineBasicBlock &MBB, 104 virtual void insertNoop(MachineBasicBlock &MBB,
|
/external/llvm/lib/Target/PowerPC/ |
H A D | PPCBranchSelector.cpp | 62 // Measure each MBB and compute a size for the entire function. 66 MachineBasicBlock *MBB = MFI; local 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; local 104 for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB [all...] |
/external/llvm/lib/Target/ARM/ |
H A D | Thumb1FrameLowering.h | 36 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const; 38 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, 42 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
|
H A D | Thumb2RegisterInfo.cpp | 35 Thumb2RegisterInfo::emitLoadConstPool(MachineBasicBlock &MBB, argument 42 MachineFunction &MF = *MBB.getParent(); 45 Type::getInt32Ty(MBB.getParent()->getFunction()->getContext()), Val); 48 BuildMI(MBB, MBBI, dl, TII.get(ARM::t2LDRpci))
|
H A D | Thumb1InstrInfo.cpp | 41 void Thumb1InstrInfo::copyPhysReg(MachineBasicBlock &MBB, argument 45 AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::tMOVr), DestReg) 52 storeRegToStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, argument 64 if (I != MBB.end()) DL = I->getDebugLoc(); 66 MachineFunction &MF = *MBB.getParent(); 73 AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::tSTRspi)) 80 loadRegFromStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, argument 92 if (I != MBB.end()) DL = I->getDebugLoc(); 94 MachineFunction &MF = *MBB.getParent(); 101 AddDefaultPred(BuildMI(MBB, [all...] |
/external/llvm/lib/Target/Hexagon/ |
H A D | HexagonFrameLowering.h | 32 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const; 34 spillCalleeSavedRegisters(MachineBasicBlock &MBB, 39 restoreCalleeSavedRegisters(MachineBasicBlock &MBB, 45 bool hasTailCall(MachineBasicBlock &MBB) const;
|
H A D | HexagonExpandPredSpillCode.cpp | 71 MachineBasicBlock* MBB = MBBb; local 73 for (MachineBasicBlock::iterator MII = MBB->begin(); MII != MBB->end(); 89 BuildMI(*MBB, MII, MI->getDebugLoc(), 92 BuildMI(*MBB, MII, MI->getDebugLoc(), TII->get(Hexagon::ADD_rr), 95 BuildMI(*MBB, MII, MI->getDebugLoc(), TII->get(Hexagon::TFR_RsPd), 97 BuildMI(*MBB, MII, MI->getDebugLoc(), 102 BuildMI(*MBB, MII, MI->getDebugLoc(), TII->get(Hexagon::ADD_ri), 104 BuildMI(*MBB, MII, MI->getDebugLoc(), TII->get(Hexagon::TFR_RsPd), 106 BuildMI(*MBB, MI [all...] |
/external/llvm/lib/Target/CellSPU/ |
H A D | SPUInstrInfo.cpp | 124 void SPUInstrInfo::copyPhysReg(MachineBasicBlock &MBB, argument 134 BuildMI(MBB, I, DL, get(SPU::LRr128), DestReg) 139 SPUInstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB, argument 168 if (MI != MBB.end()) DL = MI->getDebugLoc(); 169 addFrameReference(BuildMI(MBB, MI, DL, get(opc)) 174 SPUInstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB, argument 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, argument 218 MachineBasicBlock::iterator I = MBB 288 removeHBR( MachineBasicBlock &MBB) argument 340 findHBRPosition(MachineBasicBlock &MBB) argument 351 InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, const SmallVectorImpl<MachineOperand> &Cond, DebugLoc DL) const argument [all...] |
H A D | 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,
|
H A D | SPUNopFiller.cpp | 47 void runOnMachineBasicBlock(MachineBasicBlock &MBB); 73 runOnMachineBasicBlock(MachineBasicBlock &MBB) argument 76 for (MachineBasicBlock::iterator I = MBB.begin(); I != MBB.end(); ++I) 84 while (J!=MBB.end()){ 96 BuildMI(MBB, I, I->getDebugLoc(), TII->get(SPU::ENOP)); 105 BuildMI(MBB, I, I->getDebugLoc(), TII->get(SPU::LNOP)); 117 MachineBasicBlock::iterator J = MBB.end(); 121 BuildMI(MBB, J, J->getDebugLoc(), TII->get(SPU::ENOP)); 126 BuildMI(MBB, [all...] |
/external/llvm/lib/Target/XCore/ |
H A D | XCoreInstrInfo.h | 52 virtual bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 57 virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, 62 virtual unsigned RemoveBranch(MachineBasicBlock &MBB) const; 64 virtual void copyPhysReg(MachineBasicBlock &MBB, 69 virtual void storeRegToStackSlot(MachineBasicBlock &MBB, 75 virtual void loadRegFromStackSlot(MachineBasicBlock &MBB,
|