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

1234567891011

/freebsd-10.3-release/contrib/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 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...]
/freebsd-10.3-release/contrib/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...]
/freebsd-10.3-release/contrib/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,
90 void expandPseudoMFHiLo(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
93 void expandPseudoMTLoHi(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
107 void expandCvtFPInt(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
110 void expandExtractElementF64(MachineBasicBlock &MBB,
[all...]
H A DMipsInstrInfo.h50 virtual bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
55 virtual unsigned RemoveBranch(MachineBasicBlock &MBB) const;
57 virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
65 BranchType AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
72 virtual void insertNoop(MachineBasicBlock &MBB,
86 virtual void storeRegToStackSlot(MachineBasicBlock &MBB, argument
91 storeRegToStack(MBB, MBBI, SrcReg, isKill, FrameIndex, RC, TRI, 0);
94 virtual void loadRegFromStackSlot(MachineBasicBlock &MBB, argument
99 loadRegFromStack(MBB, MBBI, DestReg, FrameIndex, RC, TRI, 0);
102 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;
116 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,
H A DMips16InstrInfo.cpp69 void Mips16InstrInfo::copyPhysReg(MachineBasicBlock &MBB, argument
92 MachineInstrBuilder MIB = BuildMI(MBB, I, DL, get(Opc));
102 storeRegToStack(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, argument
107 if (I != MBB.end()) DL = I->getDebugLoc();
108 MachineMemOperand *MMO = GetMemOperand(MBB, FI, MachineMemOperand::MOStore);
113 BuildMI(MBB, I, DL, get(Opc)).addReg(SrcReg, getKillRegState(isKill)).
119 loadRegFromStack(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, argument
123 if (I != MBB.end()) DL = I->getDebugLoc();
124 MachineMemOperand *MMO = GetMemOperand(MBB, FI, MachineMemOperand::MOLoad);
130 BuildMI(MBB,
135 MachineBasicBlock &MBB = *MI->getParent(); local
179 makeFrame(unsigned SP, int64_t FrameSize, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument
221 restoreFrame(unsigned SP, int64_t FrameSize, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument
268 adjustStackPtrBig(unsigned SP, int64_t Amount, MachineBasicBlock &MBB, MachineBasicBlock::iterator I, unsigned Reg1, unsigned Reg2) const argument
295 adjustStackPtrBigUnrestricted(unsigned SP, int64_t Amount, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument
302 adjustStackPtr(unsigned SP, int64_t Amount, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument
314 loadImmediate(unsigned FrameReg, int64_t Imm, MachineBasicBlock &MBB, MachineBasicBlock::iterator II, DebugLoc DL, unsigned &NewImm) const argument
432 basicLoadImmediate( unsigned FrameReg, int64_t Imm, MachineBasicBlock &MBB, MachineBasicBlock::iterator II, DebugLoc DL, unsigned &NewImm) const argument
460 ExpandRetRA16(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, unsigned Opc) const argument
474 BuildAddiuSpImm(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, int64_t Imm) const argument
[all...]
/freebsd-10.3-release/contrib/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
/freebsd-10.3-release/contrib/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.cpp75 MachineBasicBlock* MBB = MBBb; local
77 MachineBasicBlock::iterator MII = MBB->begin();
78 MachineBasicBlock::iterator MIE = MBB->end ();
86 BuildMI (*MBB, MII, MI->getDebugLoc(),
88 BuildMI (*MBB, MII, MI->getDebugLoc(),
90 // MBB->erase returns the iterator to the next instruction, which is the
92 MII = MBB->erase (MI);
99 BuildMI (*MBB, MII, MI->getDebugLoc(),
101 BuildMI (*MBB, MII, MI->getDebugLoc(),
103 // 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...]
/freebsd-10.3-release/contrib/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,
/freebsd-10.3-release/contrib/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
1156 MachineBasicBlock *MBB = *It; local
1455 MachineBasicBlock *MBB = *PI; local
1498 mergeIfthenelseBlock(MachineInstr *BranchMI, MachineBasicBlock *MBB, MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB, MachineBasicBlock *LandMBB) argument
1660 cloneBlockForPredecessor(MachineBasicBlock *MBB, MachineBasicBlock *PredMBB) argument
1749 removeUnconditionalBranch(MachineBasicBlock *MBB) argument
1761 removeRedundantConditionalBranch( MachineBasicBlock *MBB) argument
1786 MachineBasicBlock *MBB = *It; local
1799 removeSuccessor(MachineBasicBlock *MBB) argument
1804 recordSccnum(MachineBasicBlock *MBB, int SccNum) argument
1812 retireBlock(MachineBasicBlock *MBB) argument
1827 setLoopLandBlock(MachineLoop *loopRep, MachineBasicBlock *MBB) argument
1881 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));
/freebsd-10.3-release/contrib/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...]
/freebsd-10.3-release/contrib/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))
/freebsd-10.3-release/contrib/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,
/freebsd-10.3-release/contrib/llvm/lib/Target/AArch64/
H A DAArch64InstrInfo.h41 void copyPhysReg(MachineBasicBlock &MBB,
46 void storeRegToStackSlot(MachineBasicBlock &MBB,
51 void loadRegFromStackSlot(MachineBasicBlock &MBB,
57 bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
61 unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
65 unsigned RemoveBranch(MachineBasicBlock &MBB) const;
95 void emitRegUpdate(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
101 void emitSPUpdate(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,

Completed in 109 milliseconds

1234567891011