Searched refs:MBB (Results 1 - 25 of 281) sorted by relevance

1234567891011>>

/external/llvm/lib/CodeGen/
H A DPHIEliminationUtils.cpp17 // 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 DShrinkWrapping.cpp126 bool PEI::isReturnBlock(MachineBasicBlock* MBB) { argument
127 return (MBB && !MBB->empty() && MBB->back().isReturn());
197 /// for the given MBB by looking forward in the MCFG at MBB's
200 bool PEI::calcAnticInOut(MachineBasicBlock* MBB) { argument
203 // AnticOut[MBB] = INTERSECT(AnticIn[S] for S in SUCCESSORS(MBB))
205 for (MachineBasicBlock::succ_iterator SI = MBB
238 calcAvailInOut(MachineBasicBlock* MBB) argument
288 MachineBasicBlock* MBB = MBBI; local
327 propagateUsesAroundLoop(MachineBasicBlock* MBB, MachineLoop* LP) argument
409 MachineBasicBlock* MBB = MBBI; local
495 MachineBasicBlock* MBB = MBBI; local
556 addUsesForMEMERegion(MachineBasicBlock* MBB, SmallVectorImpl<MachineBasicBlock *> &blks) argument
638 MachineBasicBlock* MBB = I->first; local
676 calcSpillPlacements(MachineBasicBlock* MBB, SmallVectorImpl<MachineBasicBlock *> &blks, CSRegBlockMap &prevSpills) argument
738 calcRestorePlacements(MachineBasicBlock* MBB, SmallVectorImpl<MachineBasicBlock *> &blks, CSRegBlockMap &prevRestores) argument
821 MachineBasicBlock* MBB = MBBI; local
836 MachineBasicBlock* MBB = cvBlocks.pop_back_val(); local
941 MachineBasicBlock* MBB = MBBI; local
947 MachineBasicBlock* MBB = BI->first; local
1000 MachineBasicBlock* MBB = BI->first; local
1043 getBasicBlockName(const MachineBasicBlock* MBB) argument
1084 dumpUsed(MachineBasicBlock* MBB) argument
1095 MachineBasicBlock* MBB = MBBI; local
1100 dumpSets(MachineBasicBlock* MBB) argument
1112 dumpSets1(MachineBasicBlock* MBB) argument
1129 MachineBasicBlock* MBB = MBBI; local
[all...]
H A DPHIEliminationUtils.h16 /// findPHICopyInsertPoint - Find a safe place in MBB to insert a copy from
21 findPHICopyInsertPoint(MachineBasicBlock* MBB, MachineBasicBlock* SuccMBB,
H A DMachineBranchProbabilityInfo.cpp32 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);
88 MachineBranchProbabilityInfo::getHotSucc(MachineBasicBlock *MBB) const {
91 for (MachineBasicBlock::const_succ_iterator I = MBB
[all...]
/external/llvm/lib/Target/X86/
H A DX86PadShortFunction.cpp61 void findReturns(MachineBasicBlock *MBB,
64 bool cyclesUntilReturn(MachineBasicBlock *MBB,
67 void addPadding(MachineBasicBlock *MBB,
112 MachineBasicBlock *MBB; local
118 MBB = I->first;
124 assert(MBB->size() > 0 &&
126 MachineBasicBlock::iterator ReturnLoc = --MBB->end();
133 addPadding(MBB, ReturnLoc, Threshold - Cycles);
142 /// findReturn - Starting at MBB, follow control flow and add all
144 void PadShortFunc::findReturns(MachineBasicBlock *MBB, unsigne argument
168 cyclesUntilReturn(MachineBasicBlock *MBB, unsigned int &Cycles) argument
203 addPadding(MachineBasicBlock *MBB, MachineBasicBlock::iterator &MBBI, unsigned int NOOPsToAdd) argument
[all...]
/external/llvm/lib/Target/NVPTX/
H A DNVPTXFrameLowering.cpp33 MachineBasicBlock &MBB = MF.front(); local
35 MachineBasicBlock::iterator MBBI = MBB.begin();
47 MBB, MBBI, dl, tm.getInstrInfo()->get(NVPTX::cvta_local_yes_64),
49 BuildMI(MBB, MI, dl, tm.getInstrInfo()->get(NVPTX::MOV_DEPOT_ADDR_64),
54 MBB, MBBI, dl, tm.getInstrInfo()->get(NVPTX::cvta_local_yes),
56 BuildMI(MBB, MI, dl, tm.getInstrInfo()->get(NVPTX::MOV_DEPOT_ADDR),
63 MachineBasicBlock &MBB) const {}
68 MachineFunction &MF, MachineBasicBlock &MBB,
72 MBB.erase(I);
67 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument
/external/llvm/lib/Target/Mips/
H A DMipsSEInstrInfo.h47 virtual void copyPhysReg(MachineBasicBlock &MBB,
52 virtual void storeRegToStack(MachineBasicBlock &MBB,
59 virtual 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,
100 void expandCvtFPInt(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
103 void expandExtractElementF64(MachineBasicBlock &MBB,
105 void expandBuildPairF64(MachineBasicBlock &MBB,
107 void expandDPLoadStore(MachineBasicBlock &MBB,
[all...]
H A DMipsInstrInfo.h49 virtual bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
54 virtual unsigned RemoveBranch(MachineBasicBlock &MBB) const;
56 virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
64 BranchType AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
71 virtual void insertNoop(MachineBasicBlock &MBB,
85 virtual void storeRegToStackSlot(MachineBasicBlock &MBB, argument
90 storeRegToStack(MBB, MBBI, SrcReg, isKill, FrameIndex, RC, TRI, 0);
93 virtual void loadRegFromStackSlot(MachineBasicBlock &MBB, argument
98 loadRegFromStack(MBB, MBBI, DestReg, FrameIndex, RC, TRI, 0);
101 virtual void storeRegToStack(MachineBasicBlock &MBB,
[all...]
H A DMips16InstrInfo.h46 virtual void copyPhysReg(MachineBasicBlock &MBB,
51 virtual void storeRegToStack(MachineBasicBlock &MBB,
58 virtual void loadRegFromStack(MachineBasicBlock &MBB,
70 void makeFrame(unsigned SP, int64_t FrameSize, MachineBasicBlock &MBB,
74 void restoreFrame(unsigned SP, int64_t FrameSize, MachineBasicBlock &MBB,
79 void adjustStackPtr(unsigned SP, int64_t Amount, MachineBasicBlock &MBB,
87 int64_t Imm, MachineBasicBlock &MBB,
92 int64_t Imm, MachineBasicBlock &MBB,
109 (MachineBasicBlock &MBB, MachineBasicBlock::iterator I, int64_t Imm) const;
114 void ExpandRetRA16(MachineBasicBlock &MBB, MachineBasicBloc
[all...]
H A DMipsSEFrameLowering.h29 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
32 MachineBasicBlock &MBB,
35 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
H A DMips16FrameLowering.h28 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
31 MachineBasicBlock &MBB,
34 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
39 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
/external/llvm/lib/Target/Hexagon/
H A DHexagonFrameLowering.h32 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
34 spillCalleeSavedRegisters(MachineBasicBlock &MBB,
40 MachineBasicBlock &MBB,
44 restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
50 bool hasTailCall(MachineBasicBlock &MBB) const;
H A DHexagonSplitConst32AndConst64.cpp77 MachineBasicBlock* MBB = MBBb; local
79 MachineBasicBlock::iterator MII = MBB->begin();
80 MachineBasicBlock::iterator MIE = MBB->end ();
88 BuildMI (*MBB, MII, MI->getDebugLoc(),
90 BuildMI (*MBB, MII, MI->getDebugLoc(),
92 // MBB->erase returns the iterator to the next instruction, which is the
94 MII = MBB->erase (MI);
101 BuildMI (*MBB, MII, MI->getDebugLoc(),
103 BuildMI (*MBB, MII, MI->getDebugLoc(),
105 // MBB
[all...]
H A DHexagonFrameLowering.cpp77 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 DHexagonFixupHwLoops.cpp109 for (MachineFunction::iterator MBB = MF.begin(), MBBe = MF.end();
110 MBB != MBBe; ++MBB) {
111 BlockToInstOffset[MBB] = InstOffset;
112 InstOffset += (MBB->size() * 4);
122 for (MachineFunction::iterator MBB = MF.begin(), MBBe = MF.end();
123 MBB != MBBe; ++MBB) {
124 InstOffset = BlockToInstOffset[MBB];
125 RS.enterBasicBlock(MBB);
162 MachineBasicBlock *MBB = MII->getParent(); local
[all...]
/external/llvm/lib/Target/MSP430/
H A DMSP430BranchSelector.cpp61 // 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 DMSP430FrameLowering.h36 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
39 MachineBasicBlock &MBB,
42 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
46 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
/external/llvm/lib/Target/R600/
H A DAMDILCFGStructurizer.cpp206 int getSCCNum(MachineBasicBlock *MBB) const;
208 bool hasBackEdge(MachineBasicBlock *MBB) const;
210 bool isRetiredBlock(MachineBasicBlock *MBB) const;
211 bool isActiveLoophead(MachineBasicBlock *MBB) const;
216 bool needMigrateBlock(MachineBasicBlock *MBB) const;
224 void insertInstrEnd(MachineBasicBlock *MBB, int NewOpcode,
226 MachineInstr *insertInstrBefore(MachineBasicBlock *MBB, int NewOpcode,
231 void insertCondBranchBefore(MachineBasicBlock *MBB,
234 void insertCondBranchEnd(MachineBasicBlock *MBB, int NewOpcode, int RegNum);
240 static void setTrueBranch(MachineInstr *MI, MachineBasicBlock *MBB);
464 insertInstrEnd(MachineBasicBlock *MBB, int NewOpcode, DebugLoc DL) argument
473 insertInstrBefore(MachineBasicBlock *MBB, int NewOpcode, DebugLoc DL) argument
488 MachineBasicBlock *MBB = OldMI->getParent(); local
500 MachineBasicBlock *MBB = OldMI->getParent(); local
521 insertCondBranchEnd(MachineBasicBlock *MBB, int NewOpcode, int RegNum) argument
575 setTrueBranch(MachineInstr *MI, MachineBasicBlock *MBB) argument
581 getFalseBranch(MachineBasicBlock *MBB, MachineInstr *MI) argument
613 getLastDebugLocInBB(MachineBasicBlock *MBB) argument
625 getNormalBlockBranchInstr( MachineBasicBlock *MBB) argument
634 getLoopendBlockBranchInstr( MachineBasicBlock *MBB) argument
650 getReturnInstr(MachineBasicBlock *MBB) argument
660 getContinueInstr(MachineBasicBlock *MBB) argument
670 isReturnBlock(MachineBasicBlock *MBB) argument
689 clone(MachineBasicBlock *MBB) argument
710 wrapup(MachineBasicBlock *MBB) argument
769 MachineBasicBlock *MBB = *It; local
799 MachineBasicBlock *MBB; local
932 MachineBasicBlock *MBB; local
949 MachineBasicBlock *MBB = &(*It); local
956 patternMatch(MachineBasicBlock *MBB) argument
975 patternMatchGroup(MachineBasicBlock *MBB) argument
984 serialPatternMatch(MachineBasicBlock *MBB) argument
997 ifPatternMatch(MachineBasicBlock *MBB) argument
1155 MachineBasicBlock *MBB = *It; local
1405 MachineBasicBlock *MBB = *PI; local
1448 mergeIfthenelseBlock(MachineInstr *BranchMI, MachineBasicBlock *MBB, MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB, MachineBasicBlock *LandMBB) argument
1610 cloneBlockForPredecessor(MachineBasicBlock *MBB, MachineBasicBlock *PredMBB) argument
1699 removeUnconditionalBranch(MachineBasicBlock *MBB) argument
1711 removeRedundantConditionalBranch( MachineBasicBlock *MBB) argument
1736 MachineBasicBlock *MBB = *It; local
1749 removeSuccessor(MachineBasicBlock *MBB) argument
1754 recordSccnum(MachineBasicBlock *MBB, int SccNum) argument
1762 retireBlock(MachineBasicBlock *MBB) argument
1777 setLoopLandBlock(MachineLoop *loopRep, MachineBasicBlock *MBB) argument
1831 MachineBasicBlock *MBB = *It; local
[all...]
H A DAMDGPUConvertToISA.cpp54 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/PowerPC/
H A DPPCBranchSelector.cpp71 // Measure each MBB and compute a size for the entire function.
75 MachineBasicBlock *MBB = MFI; local
78 for (MachineBasicBlock::iterator MBBI = MBB->begin(), EE = MBB->end();
82 BlockSizes[MBB->getNumber()] = BlockSize;
98 // bCC MBB
101 // b MBB
111 MachineBasicBlock &MBB = *MFI; local
113 for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/
H A DAMDGPUConvertToISA.cpp54 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 DThumb1FrameLowering.h36 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
38 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
42 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
50 MachineBasicBlock &MBB,
H A DThumb2InstrInfo.h40 bool isLegalToSplitMBBAt(MachineBasicBlock &MBB,
43 void copyPhysReg(MachineBasicBlock &MBB,
48 void storeRegToStackSlot(MachineBasicBlock &MBB,
54 void loadRegFromStackSlot(MachineBasicBlock &MBB,
H A DThumb2RegisterInfo.cpp34 Thumb2RegisterInfo::emitLoadConstPool(MachineBasicBlock &MBB, argument
41 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/XCore/
H A DXCoreFrameLowering.h31 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
33 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
37 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
43 MachineBasicBlock &MBB,

Completed in 316 milliseconds

1234567891011>>