/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(); 38 if (RI.getParent() == MBB) 45 InsertPoint = MBB->begin(); 52 InsertPoint = MBB->end(); 58 return MBB [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); 89 MachineBranchProbabilityInfo::getHotSucc(MachineBasicBlock *MBB) const { 92 for (MachineBasicBlock::const_succ_iterator I = MBB [all...] |
H A D | MachineVerifier.cpp | 100 // Is this MBB reachable from the MF entry point? 107 // Regs killed in MBB. They may be defined again, and will then be in both 111 // Regs defined in MBB and live out. Note that vregs passing through may 115 // Vregs that pass through MBB untouched. This set is disjoint from 119 // Vregs that must pass through MBB because they are needed by a successor 181 // Extra register info per MBB. 199 void visitMachineBasicBlockBefore(const MachineBasicBlock *MBB); 205 void visitMachineBasicBlockAfter(const MachineBasicBlock *MBB); 209 void report(const char *msg, const MachineBasicBlock *MBB); 214 void report(const char *msg, const MachineBasicBlock *MBB, 390 report(const char *msg, const MachineBasicBlock *MBB) argument 426 report(const char *msg, const MachineBasicBlock *MBB, const LiveInterval &LI) argument 432 report(const char *msg, const MachineBasicBlock *MBB, const LiveRange &LR) argument 444 markReachable(const MachineBasicBlock *MBB) argument 502 visitMachineBasicBlockBefore(const MachineBasicBlock *MBB) argument 1138 visitMachineBasicBlockAfter(const MachineBasicBlock *MBB) argument 1175 const MachineBasicBlock *MBB = *todo.begin(); local 1208 const MachineBasicBlock *MBB = *todo.begin(); local 1224 checkPHIOps(const MachineBasicBlock *MBB) argument 1372 const MachineBasicBlock *MBB = LiveInts->getMBBFromIndex(VNI->def); local 1453 const MachineBasicBlock *MBB = LiveInts->getMBBFromIndex(S.start); local 1656 const MachineBasicBlock *MBB = *DFI; local [all...] |
/external/llvm/lib/Target/X86/ |
H A D | X86PadShortFunction.cpp | 63 void findReturns(MachineBasicBlock *MBB, 66 bool cyclesUntilReturn(MachineBasicBlock *MBB, 69 void addPadding(MachineBasicBlock *MBB, 117 MachineBasicBlock *MBB; local 123 MBB = I->first; 129 assert(MBB->size() > 0 && 131 MachineBasicBlock::iterator ReturnLoc = --MBB->end(); 138 addPadding(MBB, ReturnLoc, Threshold - Cycles); 147 /// findReturn - Starting at MBB, follow control flow and add all 149 void PadShortFunc::findReturns(MachineBasicBlock *MBB, unsigne argument 173 cyclesUntilReturn(MachineBasicBlock *MBB, unsigned int &Cycles) argument 208 addPadding(MachineBasicBlock *MBB, MachineBasicBlock::iterator &MBBI, unsigned int NOOPsToAdd) argument [all...] |
H A D | X86VZeroUpper.cpp | 45 void processBasicBlock(MachineBasicBlock &MBB); 47 MachineBasicBlock &MBB); 48 void addDirtySuccessor(MachineBasicBlock &MBB); 158 MachineBasicBlock &MBB) { 160 BuildMI(MBB, I, dl, TII->get(X86::VZEROUPPER)); 165 // Add MBB to the DirtySuccessors list if it hasn't already been added. 166 void VZeroUpperInserter::addDirtySuccessor(MachineBasicBlock &MBB) { argument 167 if (!BlockStates[MBB.getNumber()].AddedToDirtySuccessors) { 168 DirtySuccessors.push_back(&MBB); 169 BlockStates[MBB 157 insertVZeroUpper(MachineBasicBlock::iterator I, MachineBasicBlock &MBB) argument 175 processBasicBlock(MachineBasicBlock &MBB) argument 292 MachineBasicBlock &MBB = *DirtySuccessors.back(); local [all...] |
/external/llvm/lib/Target/Mips/ |
H A D | MipsSEInstrInfo.h | 47 void copyPhysReg(MachineBasicBlock &MBB, 52 void storeRegToStack(MachineBasicBlock &MBB, 59 void loadRegFromStack(MachineBasicBlock &MBB, 71 void adjustStackPtr(unsigned SP, int64_t Amount, MachineBasicBlock &MBB, 77 unsigned loadImmediate(int64_t Imm, MachineBasicBlock &MBB, 84 void expandRetRA(MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const; 89 void expandPseudoMFHiLo(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, 92 void expandPseudoMTLoHi(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, 106 void expandCvtFPInt(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, 109 void expandExtractElementF64(MachineBasicBlock &MBB, [all...] |
H A D | MipsInstrInfo.h | 54 bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 59 unsigned RemoveBranch(MachineBasicBlock &MBB) const override; 61 unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, 69 BranchType AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 76 void insertNoop(MachineBasicBlock &MBB, 90 void storeRegToStackSlot(MachineBasicBlock &MBB, 95 storeRegToStack(MBB, MBBI, SrcReg, isKill, FrameIndex, RC, TRI, 0); 98 void loadRegFromStackSlot(MachineBasicBlock &MBB, 103 loadRegFromStack(MBB, MBBI, DestReg, FrameIndex, RC, TRI, 0); 106 virtual void storeRegToStack(MachineBasicBlock &MBB, [all...] |
H A D | Mips16FrameLowering.h | 27 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 30 MachineBasicBlock &MBB, 33 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, 38 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
|
/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXFrameLowering.cpp | 37 MachineBasicBlock &MBB = MF.front(); local 39 MachineBasicBlock::iterator MBBI = MBB.begin(); 51 BuildMI(MBB, MBBI, dl, 54 BuildMI(MBB, MI, dl, 60 BuildMI(MBB, MBBI, dl, 63 BuildMI(MBB, MI, dl, 71 MachineBasicBlock &MBB) const {} 76 MachineFunction &MF, MachineBasicBlock &MBB, 80 MBB.erase(I); 75 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument
|
/external/llvm/lib/Target/Hexagon/ |
H A D | HexagonFrameLowering.h | 28 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 29 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, 36 MachineBasicBlock &MBB, 40 restoreCalleeSavedRegisters(MachineBasicBlock &MBB, 46 bool hasTailCall(MachineBasicBlock &MBB) const;
|
H A D | HexagonSplitConst32AndConst64.cpp | 81 MachineBasicBlock* MBB = MBBb; local 83 MachineBasicBlock::iterator MII = MBB->begin(); 84 MachineBasicBlock::iterator MIE = MBB->end (); 92 BuildMI (*MBB, MII, MI->getDebugLoc(), 94 BuildMI (*MBB, MII, MI->getDebugLoc(), 96 // MBB->erase returns the iterator to the next instruction, which is the 98 MII = MBB->erase (MI); 105 BuildMI (*MBB, MII, MI->getDebugLoc(), 107 BuildMI (*MBB, MII, MI->getDebugLoc(), 109 // MBB [all...] |
H A D | HexagonFrameLowering.cpp | 77 MachineBasicBlock &MBB = MF.front(); local 79 MachineBasicBlock::iterator MBBI = MBB.begin(); 82 DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); 90 MachineBasicBlock::iterator InsertPt = MBB.begin(); 122 BuildMI(MBB, InsertPt, dl, TII.get(Hexagon::ALLOCFRAME)).addImm(0); 125 BuildMI(MBB, InsertPt, dl, TII.get(Hexagon::CONST32_Int_Real), 127 BuildMI(MBB, InsertPt, dl, TII.get(Hexagon::SUB_rr), 132 BuildMI(MBB, InsertPt, dl, TII.get(Hexagon::ALLOCFRAME)).addImm(NumBytes); 136 // Returns true if MBB has a machine instructions that indicates a tail call 138 bool HexagonFrameLowering::hasTailCall(MachineBasicBlock &MBB) cons 222 spillCalleeSavedRegisters( MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector<CalleeSavedInfo> &CSI, const TargetRegisterInfo *TRI) const argument 276 restoreCalleeSavedRegisters( MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector<CalleeSavedInfo> &CSI, const TargetRegisterInfo *TRI) const argument 329 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument [all...] |
H A D | HexagonFixupHwLoops.cpp | 111 for (MachineFunction::iterator MBB = MF.begin(), MBBe = MF.end(); 112 MBB != MBBe; ++MBB) { 113 BlockToInstOffset[MBB] = InstOffset; 114 InstOffset += (MBB->size() * 4); 124 for (MachineFunction::iterator MBB = MF.begin(), MBBe = MF.end(); 125 MBB != MBBe; ++MBB) { 126 InstOffset = BlockToInstOffset[MBB]; 127 RS.enterBasicBlock(MBB); 164 MachineBasicBlock *MBB = MII->getParent(); local [all...] |
/external/llvm/lib/Target/MSP430/ |
H A D | MSP430BranchSelector.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...] |
H A D | MSP430FrameLowering.h | 31 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 34 MachineBasicBlock &MBB, 37 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, 41 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
|
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64A53Fix835769.cpp | 100 bool runOnBasicBlock(MachineBasicBlock &MBB); 117 for (auto &MBB : F) { 118 Changed |= runOnBasicBlock(MBB); 124 // Return the block that was fallen through to get to MBB, if any, 126 static MachineBasicBlock *getBBFallenThrough(MachineBasicBlock *MBB, argument 129 MachineFunction::iterator MBBI = *MBB; 132 if (MBBI == MBB->getParent()->begin()) 139 for (MachineBasicBlock *S : MBB->predecessors()) 151 static MachineInstr *getLastNonPseudo(MachineBasicBlock &MBB, argument 153 MachineBasicBlock *FMBB = &MBB; 168 insertNopBeforeInstruction(MachineBasicBlock &MBB, MachineInstr* MI, const TargetInstrInfo *TII) argument 187 runOnBasicBlock(MachineBasicBlock &MBB) argument [all...] |
/external/llvm/lib/Target/XCore/ |
H A D | XCoreInstrInfo.h | 53 bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 58 unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, 63 unsigned RemoveBranch(MachineBasicBlock &MBB) const override; 65 void copyPhysReg(MachineBasicBlock &MBB, 70 void storeRegToStackSlot(MachineBasicBlock &MBB, 76 void loadRegFromStackSlot(MachineBasicBlock &MBB, 87 MachineBasicBlock::iterator loadImmediate(MachineBasicBlock &MBB,
|
H A D | XCoreFrameLowering.h | 32 MachineBasicBlock &MBB) const override; 34 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, 38 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB, 44 MachineBasicBlock &MBB,
|
H A D | XCoreFrameToArgsOffsetElim.cpp | 50 MachineBasicBlock &MBB = *MFI; local 51 for (MachineBasicBlock::iterator MBBI = MBB.begin(), EE = MBB.end(); 56 MBBI = TII.loadImmediate(MBB, MBBI, Reg, StackSize);
|
/external/llvm/lib/Target/R600/ |
H A D | AMDILCFGStructurizer.cpp | 210 int getSCCNum(MachineBasicBlock *MBB) const; 212 bool hasBackEdge(MachineBasicBlock *MBB) const; 214 bool isRetiredBlock(MachineBasicBlock *MBB) const; 215 bool isActiveLoophead(MachineBasicBlock *MBB) const; 220 bool needMigrateBlock(MachineBasicBlock *MBB) const; 228 void insertInstrEnd(MachineBasicBlock *MBB, int NewOpcode, 230 MachineInstr *insertInstrBefore(MachineBasicBlock *MBB, int NewOpcode, 235 void insertCondBranchBefore(MachineBasicBlock *MBB, 238 void insertCondBranchEnd(MachineBasicBlock *MBB, int NewOpcode, int RegNum); 244 static void setTrueBranch(MachineInstr *MI, MachineBasicBlock *MBB); 468 insertInstrEnd(MachineBasicBlock *MBB, int NewOpcode, DebugLoc DL) argument 477 insertInstrBefore(MachineBasicBlock *MBB, int NewOpcode, DebugLoc DL) argument 492 MachineBasicBlock *MBB = OldMI->getParent(); local 504 MachineBasicBlock *MBB = OldMI->getParent(); local 525 insertCondBranchEnd(MachineBasicBlock *MBB, int NewOpcode, int RegNum) argument 579 setTrueBranch(MachineInstr *MI, MachineBasicBlock *MBB) argument 585 getFalseBranch(MachineBasicBlock *MBB, MachineInstr *MI) argument 617 getLastDebugLocInBB(MachineBasicBlock *MBB) argument 629 getNormalBlockBranchInstr( MachineBasicBlock *MBB) argument 638 getLoopendBlockBranchInstr( MachineBasicBlock *MBB) argument 654 getReturnInstr(MachineBasicBlock *MBB) argument 664 getContinueInstr(MachineBasicBlock *MBB) argument 674 isReturnBlock(MachineBasicBlock *MBB) argument 693 clone(MachineBasicBlock *MBB) argument 714 wrapup(MachineBasicBlock *MBB) argument 773 MachineBasicBlock *MBB = *It; local 803 MachineBasicBlock *MBB; local 933 MachineBasicBlock *MBB; local 950 MachineBasicBlock *MBB = &(*It); local 957 patternMatch(MachineBasicBlock *MBB) argument 976 patternMatchGroup(MachineBasicBlock *MBB) argument 985 serialPatternMatch(MachineBasicBlock *MBB) argument 998 ifPatternMatch(MachineBasicBlock *MBB) argument 1155 MachineBasicBlock *MBB = *It; local 1454 MachineBasicBlock *MBB = *PI; local 1497 mergeIfthenelseBlock(MachineInstr *BranchMI, MachineBasicBlock *MBB, MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB, MachineBasicBlock *LandMBB) argument 1659 cloneBlockForPredecessor(MachineBasicBlock *MBB, MachineBasicBlock *PredMBB) argument 1748 removeUnconditionalBranch(MachineBasicBlock *MBB) argument 1760 removeRedundantConditionalBranch( MachineBasicBlock *MBB) argument 1785 MachineBasicBlock *MBB = *It; local 1798 removeSuccessor(MachineBasicBlock *MBB) argument 1803 recordSccnum(MachineBasicBlock *MBB, int SccNum) argument 1811 retireBlock(MachineBasicBlock *MBB) argument 1826 setLoopLandBlock(MachineLoop *loopRep, MachineBasicBlock *MBB) argument 1880 MachineBasicBlock *MBB = *It; local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/ |
H A D | AMDGPUConvertToISA.cpp | 54 MachineBasicBlock &MBB = *BB; local 55 for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end(); 58 TII->convertToISA(MI, MF, MBB.findDebugLoc(I));
|
/external/llvm/lib/Target/ARM/ |
H A D | Thumb1FrameLowering.h | 31 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 33 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, 37 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB, 46 MachineBasicBlock &MBB,
|
H A D | Thumb2RegisterInfo.cpp | 35 Thumb2RegisterInfo::emitLoadConstPool(MachineBasicBlock &MBB, argument 42 MachineFunction &MF = *MBB.getParent(); 46 Type::getInt32Ty(MBB.getParent()->getFunction()->getContext()), Val); 49 BuildMI(MBB, MBBI, dl, TII.get(ARM::t2LDRpci))
|
/external/mesa3d/src/gallium/drivers/radeon/ |
H A D | AMDGPUConvertToISA.cpp | 54 MachineBasicBlock &MBB = *BB; local 55 for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end(); 58 TII->convertToISA(MI, MF, MBB.findDebugLoc(I));
|