Searched refs:MBB (Results 1 - 25 of 342) 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();
38 if (RI.getParent() == MBB)
45 InsertPoint = MBB->begin();
52 InsertPoint = MBB->end();
58 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,
/external/llvm/lib/Target/ARM/
H A DThumb1FrameLowering.h30 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
31 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
33 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
37 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
46 MachineBasicBlock &MBB,
49 /// Check whether or not the given \p MBB can be used as a epilogue
53 /// \p MBB will be correctly handled by the target.
54 bool canUseAsEpilogue(const MachineBasicBlock &MBB) const override;
78 /// the code sequence in \p MBB. I.e., when \p DoIt is false,
79 /// \p MBB i
[all...]
/external/llvm/lib/Target/Mips/
H A DMipsSEInstrInfo.h46 void copyPhysReg(MachineBasicBlock &MBB,
51 void storeRegToStack(MachineBasicBlock &MBB,
58 void loadRegFromStack(MachineBasicBlock &MBB,
70 void adjustStackPtr(unsigned SP, int64_t Amount, MachineBasicBlock &MBB,
76 unsigned loadImmediate(int64_t Imm, MachineBasicBlock &MBB,
83 void expandRetRA(MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const;
85 void expandERet(MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const;
90 void expandPseudoMFHiLo(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
93 void expandPseudoMTLoHi(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
107 void expandCvtFPInt(MachineBasicBlock &MBB, MachineBasicBloc
[all...]
H A DMipsSEFrameLowering.h27 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
28 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
33 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
46 MachineBasicBlock &MBB) const;
48 MachineBasicBlock &MBB) const;
H A DMips16FrameLowering.h26 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
27 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
29 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
34 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
/external/llvm/lib/Target/X86/
H A DX86PadShortFunction.cpp63 void findReturns(MachineBasicBlock *MBB,
66 bool cyclesUntilReturn(MachineBasicBlock *MBB,
69 void addPadding(MachineBasicBlock *MBB,
113 MachineBasicBlock *MBB; local
119 MBB = I->first;
125 assert(MBB->size() > 0 &&
127 MachineBasicBlock::iterator ReturnLoc = --MBB->end();
134 addPadding(MBB, ReturnLoc, Threshold - Cycles);
143 /// findReturn - Starting at MBB, follow control flow and add all
145 void PadShortFunc::findReturns(MachineBasicBlock *MBB, unsigne argument
169 cyclesUntilReturn(MachineBasicBlock *MBB, unsigned int &Cycles) argument
204 addPadding(MachineBasicBlock *MBB, MachineBasicBlock::iterator &MBBI, unsigned int NOOPsToAdd) argument
[all...]
H A DX86FrameLowering.h54 MachineInstr *emitStackProbe(MachineFunction &MF, MachineBasicBlock &MBB,
62 void emitCalleeSavedFrameMoves(MachineBasicBlock &MBB,
68 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
69 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
85 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
90 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
107 MachineBasicBlock &MBB,
119 int mergeSPUpdates(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI,
124 void emitSPUpdate(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI,
130 /// Check whether or not the given \p MBB ca
[all...]
H A DX86VZeroUpper.cpp45 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
296 MachineBasicBlock &MBB = *DirtySuccessors.back(); local
[all...]
/external/llvm/lib/Target/NVPTX/
H A DNVPTXFrameLowering.h26 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
27 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
30 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
H A DNVPTXFrameLowering.cpp35 MachineBasicBlock &MBB) const {
37 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported");
38 MachineInstr *MI = MBB.begin();
57 MI = BuildMI(MBB, MI, dl,
62 BuildMI(MBB, MI, dl, MF.getSubtarget().getInstrInfo()->get(MovDepotOpcode),
69 MachineBasicBlock &MBB) const {}
74 MachineFunction &MF, MachineBasicBlock &MBB,
78 MBB.erase(I);
73 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument
/external/llvm/lib/Target/BPF/
H A DBPFFrameLowering.h27 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
28 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
35 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
37 MBB.erase(MI);
H A DBPFInstrInfo.cpp34 void BPFInstrInfo::copyPhysReg(MachineBasicBlock &MBB, argument
39 BuildMI(MBB, I, DL, get(BPF::MOV_rr), DestReg)
45 void BPFInstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB, argument
51 if (I != MBB.end())
55 BuildMI(MBB, I, DL, get(BPF::STD))
63 void BPFInstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB, argument
69 if (I != MBB.end())
73 BuildMI(MBB, I, DL, get(BPF::LDD), DestReg).addFrameIndex(FI).addImm(0);
78 bool BPFInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB, argument
85 MachineBasicBlock::iterator I = MBB
133 InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond, DebugLoc DL) const argument
[all...]
/external/llvm/lib/Target/WebAssembly/
H A DWebAssemblyCFGStackify.cpp85 for (MachineBasicBlock *MBB : CurrentSCC) {
86 for (MachineBasicBlock *Pred : MBB->predecessors()) {
90 Header = MBB;
106 MachineBasicBlock *MBB; member in struct:__anon12340::POStackEntry
109 POStackEntry(MachineBasicBlock *MBB, MachineFunction &MF,
115 const MachineBasicBlock *MBB) {
116 return Loop ? Loop->contains(MBB) : true;
119 POStackEntry::POStackEntry(MachineBasicBlock *MBB, MachineFunction &MF, argument
121 : MBB(MBB), Succ
114 LoopContains(const MachineLoop *Loop, const MachineBasicBlock *MBB) argument
196 MachineBasicBlock &MBB = *Entry.MBB; local
259 ExplicitlyBranchesTo(MachineBasicBlock *Pred, MachineBasicBlock *MBB) argument
268 PlaceBlockMarker(MachineBasicBlock &MBB, MachineFunction &MF, SmallVectorImpl<MachineBasicBlock *> &ScopeTops, const WebAssemblyInstrInfo &TII, const MachineLoopInfo &MLI, MachineDominatorTree &MDT) argument
343 PlaceLoopMarker(MachineBasicBlock &MBB, MachineFunction &MF, SmallVectorImpl<MachineBasicBlock *> &ScopeTops, const WebAssemblyInstrInfo &TII, const MachineLoopInfo &MLI) argument
401 IsOnStack(const SmallVectorImpl<std::pair<MachineBasicBlock *, bool>> &Stack, const MachineBasicBlock *MBB) argument
[all...]
H A DWebAssemblyFrameLowering.h32 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
36 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
37 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
H A DWebAssemblyInstrInfo.h37 void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
41 bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
45 unsigned RemoveBranch(MachineBasicBlock &MBB) const override;
46 unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
/external/llvm/lib/Target/MSP430/
H A DMSP430FrameLowering.h30 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
31 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
34 MachineBasicBlock &MBB,
37 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
41 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
H A DMSP430BranchSelector.cpp63 // Measure each MBB and compute a size for the entire function.
67 MachineBasicBlock *MBB = &*MFI; local
70 for (MachineBasicBlock::iterator MBBI = MBB->begin(), EE = MBB->end();
74 BlockSizes[MBB->getNumber()] = BlockSize;
90 // bCC MBB
93 // b MBB
103 MachineBasicBlock &MBB = *MFI; local
105 for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB
[all...]
/external/llvm/lib/Target/AArch64/
H A DAArch64A53Fix835769.cpp100 bool runOnBasicBlock(MachineBasicBlock &MBB);
114 for (auto &MBB : F) {
115 Changed |= runOnBasicBlock(MBB);
120 // Return the block that was fallen through to get to MBB, if any,
122 static MachineBasicBlock *getBBFallenThrough(MachineBasicBlock *MBB, argument
125 MachineFunction::iterator MBBI(MBB);
128 if (MBBI == MBB->getParent()->begin())
135 for (MachineBasicBlock *S : MBB->predecessors())
147 static MachineInstr *getLastNonPseudo(MachineBasicBlock &MBB, argument
149 MachineBasicBlock *FMBB = &MBB;
163 insertNopBeforeInstruction(MachineBasicBlock &MBB, MachineInstr* MI, const TargetInstrInfo *TII) argument
182 runOnBasicBlock(MachineBasicBlock &MBB) argument
[all...]
/external/llvm/lib/Target/XCore/
H A DXCoreInstrInfo.h53 bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
58 unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
62 unsigned RemoveBranch(MachineBasicBlock &MBB) const override;
64 void copyPhysReg(MachineBasicBlock &MBB,
69 void storeRegToStackSlot(MachineBasicBlock &MBB,
75 void loadRegFromStackSlot(MachineBasicBlock &MBB,
86 MachineBasicBlock::iterator loadImmediate(MachineBasicBlock &MBB,
H A DXCoreFrameToArgsOffsetElim.cpp51 MachineBasicBlock &MBB = *MFI; local
52 for (MachineBasicBlock::iterator MBBI = MBB.begin(), EE = MBB.end();
57 MBBI = TII.loadImmediate(MBB, MBBI, Reg, StackSize);
/external/llvm/lib/Target/AMDGPU/
H A DAMDILCFGStructurizer.cpp213 int getSCCNum(MachineBasicBlock *MBB) const;
215 bool hasBackEdge(MachineBasicBlock *MBB) const;
217 bool isRetiredBlock(MachineBasicBlock *MBB) const;
218 bool isActiveLoophead(MachineBasicBlock *MBB) const;
223 bool needMigrateBlock(MachineBasicBlock *MBB) const;
231 void insertInstrEnd(MachineBasicBlock *MBB, int NewOpcode,
233 MachineInstr *insertInstrBefore(MachineBasicBlock *MBB, int NewOpcode,
238 void insertCondBranchBefore(MachineBasicBlock *MBB,
241 void insertCondBranchEnd(MachineBasicBlock *MBB, int NewOpcode, int RegNum);
247 static void setTrueBranch(MachineInstr *MI, MachineBasicBlock *MBB);
471 insertInstrEnd(MachineBasicBlock *MBB, int NewOpcode, DebugLoc DL) argument
480 insertInstrBefore(MachineBasicBlock *MBB, int NewOpcode, DebugLoc DL) argument
495 MachineBasicBlock *MBB = OldMI->getParent(); local
507 MachineBasicBlock *MBB = OldMI->getParent(); local
528 insertCondBranchEnd(MachineBasicBlock *MBB, int NewOpcode, int RegNum) argument
582 setTrueBranch(MachineInstr *MI, MachineBasicBlock *MBB) argument
588 getFalseBranch(MachineBasicBlock *MBB, MachineInstr *MI) argument
620 getLastDebugLocInBB(MachineBasicBlock *MBB) argument
632 getNormalBlockBranchInstr( MachineBasicBlock *MBB) argument
641 getLoopendBlockBranchInstr( MachineBasicBlock *MBB) argument
657 getReturnInstr(MachineBasicBlock *MBB) argument
667 getContinueInstr(MachineBasicBlock *MBB) argument
677 isReturnBlock(MachineBasicBlock *MBB) argument
696 clone(MachineBasicBlock *MBB) argument
717 wrapup(MachineBasicBlock *MBB) argument
776 MachineBasicBlock *MBB = *It; local
806 MachineBasicBlock *MBB; local
936 MachineBasicBlock *MBB; local
953 MachineBasicBlock *MBB = &(*It); local
960 patternMatch(MachineBasicBlock *MBB) argument
979 patternMatchGroup(MachineBasicBlock *MBB) argument
988 serialPatternMatch(MachineBasicBlock *MBB) argument
1001 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
1659 cloneBlockForPredecessor(MachineBasicBlock *MBB, MachineBasicBlock *PredMBB) argument
1734 removeUnconditionalBranch(MachineBasicBlock *MBB) argument
1746 removeRedundantConditionalBranch( MachineBasicBlock *MBB) argument
1771 MachineBasicBlock *MBB = *It; local
1784 removeSuccessor(MachineBasicBlock *MBB) argument
1789 recordSccnum(MachineBasicBlock *MBB, int SccNum) argument
1797 retireBlock(MachineBasicBlock *MBB) argument
1812 setLoopLandBlock(MachineLoop *loopRep, MachineBasicBlock *MBB) argument
1866 MachineBasicBlock *MBB = *It; local
[all...]
H A DSILowerControlFlow.cpp125 for (MachineBasicBlock *MBB = From; MBB != To && !MBB->succ_empty();
126 MBB = *MBB->succ_begin()) {
128 for (MachineBasicBlock::iterator I = MBB->begin(), E = MBB->end();
152 MachineBasicBlock &MBB = *MI.getParent(); local
155 if (MBB.getParent()->getInfo<SIMachineFunctionInfo>()->getShaderType() !=
157 !shouldSkip(&MBB,
184 MachineBasicBlock &MBB = *MI.getParent(); local
202 MachineBasicBlock &MBB = *MI.getParent(); local
221 MachineBasicBlock &MBB = *MI.getParent(); local
235 MachineBasicBlock &MBB = *MI.getParent(); local
250 MachineBasicBlock &MBB = *MI.getParent(); local
265 MachineBasicBlock &MBB = *MI.getParent(); local
280 MachineBasicBlock &MBB = *MI.getParent(); local
300 MachineBasicBlock &MBB = *MI.getParent(); local
330 MachineBasicBlock &MBB = *MI.getParent(); local
428 MachineBasicBlock &MBB = *MI.getParent(); local
448 MachineBasicBlock &MBB = *MI.getParent(); local
481 MachineBasicBlock &MBB = *BI; local
562 MachineBasicBlock &MBB = MF.front(); local
[all...]
/external/llvm/lib/Target/PowerPC/
H A DPPCBranchSelector.cpp74 [TII](MachineBasicBlock &MBB, unsigned Offset) -> unsigned {
75 unsigned Align = MBB.getAlignment();
80 unsigned ParentAlign = MBB.getParent()->getAlignment();
85 // The alignment of this MBB is larger than the function's alignment, so we
90 // Measure each MBB and compute a size for the entire function.
94 MachineBasicBlock *MBB = &*MFI; local
98 if (MBB->getNumber() > 0) {
99 unsigned AlignExtra = GetAlignmentAdjustment(*MBB, FuncSize);
100 BlockSizes[MBB->getNumber()-1] += AlignExtra;
105 for (MachineBasicBlock::iterator MBBI = MBB
138 MachineBasicBlock &MBB = *MFI; local
[all...]
/external/llvm/lib/Target/Sparc/
H A DSparcFrameLowering.h29 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
30 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
34 MachineBasicBlock &MBB,
60 MachineBasicBlock &MBB,

Completed in 1474 milliseconds

1234567891011>>