Searched refs:MBB (Results 26 - 50 of 513) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreInstrInfo.h52 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
57 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
62 unsigned removeBranch(MachineBasicBlock &MBB,
65 void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
69 void storeRegToStackSlot(MachineBasicBlock &MBB,
75 void loadRegFromStackSlot(MachineBasicBlock &MBB,
86 MachineBasicBlock::iterator loadImmediate(MachineBasicBlock &MBB,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DBranchFolding.cpp10 // directly to the target block. This pass often results in dead MBB's, which
159 void BranchFolder::RemoveDeadBlock(MachineBasicBlock *MBB) { argument
160 assert(MBB->pred_empty() && "MBB must be dead!");
161 LLVM_DEBUG(dbgs() << "\nRemoving MBB: " << *MBB);
163 MachineFunction *MF = MBB->getParent();
165 while (!MBB->succ_empty())
166 MBB->removeSuccessor(MBB
302 HashEndOfMBB(const MachineBasicBlock &MBB) argument
319 skipBackwardPastNonInstructions(MachineBasicBlock::iterator I, MachineBasicBlock *MBB) argument
514 setBlockFreq(const MachineBasicBlock *MBB, BlockFrequency F) argument
543 CountTerminators(MachineBasicBlock *MBB, MachineBasicBlock::iterator &I) argument
562 blockEndsInUnreachable(const MachineBasicBlock *MBB) argument
779 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); local
808 MachineBasicBlock *MBB = MBBIStartPos->getParent(); local
856 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); local
989 MachineBasicBlock *MBB = SameTails[i].getBlock(); local
1014 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); local
1249 MachineBasicBlock *MBB = &*I++; local
1265 IsEmptyBlock(MachineBasicBlock *MBB) argument
1271 IsBranchOnlyBlock(MachineBasicBlock *MBB) argument
1304 getBranchDebugLoc(MachineBasicBlock &MBB) argument
1311 copyDebugInfoToPredecessor(const TargetInstrInfo *TII, MachineBasicBlock &MBB, MachineBasicBlock &PredMBB) argument
1323 copyDebugInfoToSuccessor(const TargetInstrInfo *TII, MachineBasicBlock &MBB, MachineBasicBlock &SuccMBB) argument
1342 salvageDebugInfoFromEmptyBlock(const TargetInstrInfo *TII, MachineBasicBlock &MBB) argument
1358 OptimizeBlock(MachineBasicBlock *MBB) argument
1447 << "From MBB: " << *MBB); local
1804 MachineBasicBlock *MBB = &*I++; local
1840 findHoistingInsertPosAndDeps(MachineBasicBlock *MBB, const TargetInstrInfo *TII, const TargetRegisterInfo *TRI, SmallSet<unsigned,4> &Uses, SmallSet<unsigned,4> &Defs) argument
1937 HoistCommonCodeInSuccs(MachineBasicBlock *MBB) argument
[all...]
H A DLoopTraversal.cpp15 bool LoopTraversal::isBlockDone(MachineBasicBlock *MBB) { argument
16 unsigned MBBNumber = MBB->getNumber();
21 MBBInfos[MBBNumber].IncomingProcessed == MBB->pred_size();
32 for (MachineBasicBlock *MBB : RPOT) {
35 unsigned MBBNumber = MBB->getNumber();
40 Workqueue.push_back(MBB);
66 for (MachineBasicBlock *MBB : RPOT) {
67 if (!isBlockDone(MBB))
68 MBBTraversalOrder.push_back(TraversedMBBInfo(MBB, false, true));
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXFrameLowering.h25 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
26 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
31 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
H A DNVPTXInstrInfo.h41 * virtual void storeRegToStackSlot(MachineBasicBlock &MBB,
45 * virtual void loadRegFromStackSlot(MachineBasicBlock &MBB,
51 void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
56 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
60 unsigned removeBranch(MachineBasicBlock &MBB,
62 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DLeonPasses.cpp47 MachineBasicBlock &MBB = *MFI; local
48 for (auto MBBI = MBB.begin(), E = MBB.end(); MBBI != E; ++MBBI) {
53 BuildMI(MBB, NMBBI, DL, TII.get(SP::NOP));
82 MachineBasicBlock &MBB = *MFI; local
83 for (auto MBBI = MBB.begin(), E = MBB.end(); MBBI != E; ++MBBI) {
134 MachineBasicBlock &MBB = *MFI; local
135 for (auto MBBI = MBB.begin(), E = MBB
[all...]
H A DSparcFrameLowering.h28 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
29 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
33 MachineBasicBlock &MBB,
59 MachineBasicBlock &MBB,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyUtilities.h41 for (MachineBasicBlock *MBB : Unit->blocks())
42 if (MBB->getNumber() > Bottom->getNumber())
43 Bottom = MBB;
H A DWebAssemblyFrameLowering.h38 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
42 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
43 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
52 MachineBasicBlock &MBB,
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DLoopTraversal.h89 MachineBasicBlock *MBB = nullptr; member in struct:llvm::LoopTraversal::TraversedMBBInfo
99 : MBB(BB), PrimaryPass(Primary), IsDone(Done) {}
110 bool isBlockDone(MachineBasicBlock *MBB);
H A DLivePhysRegs.h131 /// Adds all live-in registers of basic block \p MBB.
134 void addLiveIns(const MachineBasicBlock &MBB);
136 /// Adds all live-out registers of basic block \p MBB.
141 /// live out from MBB, although a sub-register may be. This is true
143 void addLiveOuts(const MachineBasicBlock &MBB);
145 /// Adds all live-out registers of basic block \p MBB but skips pristine
147 void addLiveOutsNoPristines(const MachineBasicBlock &MBB);
161 /// Adds live-in registers from basic block \p MBB, taking associated
163 void addBlockLiveIns(const MachineBasicBlock &MBB);
175 /// Computes registers live-in to \p MBB assumin
192 recomputeLiveIns(MachineBasicBlock &MBB) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86VZeroUpper.cpp60 void processBasicBlock(MachineBasicBlock &MBB);
62 MachineBasicBlock &MBB);
63 void addDirtySuccessor(MachineBasicBlock &MBB);
179 MachineBasicBlock &MBB) {
181 BuildMI(MBB, I, dl, TII->get(X86::VZEROUPPER));
186 /// Add MBB to the DirtySuccessors list if it hasn't already been added.
187 void VZeroUpperInserter::addDirtySuccessor(MachineBasicBlock &MBB) { argument
188 if (!BlockStates[MBB.getNumber()].AddedToDirtySuccessors) {
189 DirtySuccessors.push_back(&MBB);
190 BlockStates[MBB
178 insertVZeroUpper(MachineBasicBlock::iterator I, MachineBasicBlock &MBB) argument
196 processBasicBlock(MachineBasicBlock &MBB) argument
328 MachineBasicBlock &MBB = *DirtySuccessors.back(); local
[all...]
H A DX86LoadValueInjectionRetHardening.cpp101 for (auto &MBB : MF) {
102 if (MBB.empty())
105 MachineInstr &MI = MBB.back();
110 MBB.erase_instr(&MI);
111 BuildMI(MBB, MBB.end(), DebugLoc(), TII->get(X86::POP64r))
114 BuildMI(MBB, MBB.end(), DebugLoc(), TII->get(X86::LFENCE));
115 BuildMI(MBB, MBB
[all...]
H A DX86CondBrFolding.cpp87 // A class the stores the auxiliary information for each MBB.
116 void optimizeCondBr(MachineBasicBlock &MBB,
118 void replaceBrDest(MachineBasicBlock *MBB, MachineBasicBlock *OrigDest,
120 void fixupModifiedCond(MachineBasicBlock *MBB);
121 std::unique_ptr<TargetMBBInfo> analyzeMBB(MachineBasicBlock &MBB);
124 bool findPath(MachineBasicBlock *MBB,
126 TargetMBBInfo *getMBBInfo(MachineBasicBlock *MBB) const {
127 return MBBInfos[MBB->getNumber()].get();
138 MachineBasicBlock *MBB, SmallVectorImpl<MachineBasicBlock *> &BranchPath) {
139 TargetMBBInfo *MBBInfo = getMBBInfo(MBB);
137 findPath( MachineBasicBlock *MBB, SmallVectorImpl<MachineBasicBlock *> &BranchPath) argument
183 fixPHIsInSucc(MachineBasicBlock *MBB, MachineBasicBlock *OldMBB, MachineBasicBlock *NewMBB) argument
197 setBranchProb(MachineBasicBlock *MBB, MachineBasicBlock *SuccMBB, BranchProbability Prob) argument
209 findUncondBrI(MachineBasicBlock *MBB) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64SpeculationHardening.cpp150 bool instrumentControlFlow(MachineBasicBlock &MBB,
152 bool endsWithCondControlFlow(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
157 void insertSPToRegTaintPropagation(MachineBasicBlock &MBB,
159 void insertRegToSPTaintPropagation(MachineBasicBlock &MBB,
162 void insertFullSpeculationBarrier(MachineBasicBlock &MBB,
166 bool slhLoads(MachineBasicBlock &MBB);
167 bool makeGPRSpeculationSafe(MachineBasicBlock &MBB,
170 bool lowerSpeculationSafeValuePseudos(MachineBasicBlock &MBB,
172 bool expandSpeculationSafeValue(MachineBasicBlock &MBB,
175 bool insertCSDB(MachineBasicBlock &MBB, MachineBasicBloc
186 endsWithCondControlFlow( MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, AArch64CC::CondCode &CondCode) const argument
217 insertFullSpeculationBarrier( MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, DebugLoc DL) const argument
240 instrumentControlFlow( MachineBasicBlock &MBB, bool &UsesFullSpeculationBarrier) argument
358 insertSPToRegTaintPropagation( MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI) const argument
382 insertRegToSPTaintPropagation( MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, unsigned TmpReg) const argument
430 makeGPRSpeculationSafe( MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, MachineInstr &MI, unsigned Reg) argument
459 slhLoads(MachineBasicBlock &MBB) argument
547 expandSpeculationSafeValue( MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, bool UsesFullSpeculationBarrier) argument
589 insertCSDB(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, DebugLoc DL) argument
601 lowerSpeculationSafeValuePseudos( MachineBasicBlock &MBB, bool UsesFullSpeculationBarrier) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/VE/
H A DVEFrameLowering.cpp35 MachineBasicBlock &MBB,
51 BuildMI(MBB, MBBI, dl, TII.get(VE::STSri))
55 BuildMI(MBB, MBBI, dl, TII.get(VE::STSri))
59 BuildMI(MBB, MBBI, dl, TII.get(VE::STSri))
63 BuildMI(MBB, MBBI, dl, TII.get(VE::STSri))
67 BuildMI(MBB, MBBI, dl, TII.get(VE::ORri), VE::SX9)
73 MachineBasicBlock &MBB,
89 BuildMI(MBB, MBBI, dl, TII.get(VE::ORri), VE::SX11)
92 BuildMI(MBB, MBBI, dl, TII.get(VE::LDSri), VE::SX16)
95 BuildMI(MBB, MBB
34 emitPrologueInsns(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, int NumBytes, bool RequireFPUpdate) const argument
72 emitEpilogueInsns(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, int NumBytes, bool RequireFPUpdate) const argument
106 emitSPAdjustment(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, int NumBytes) const argument
137 emitSPExtend(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, int NumBytes) const argument
254 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZPostRewrite.cpp50 void selectLOCRMux(MachineBasicBlock &MBB,
55 void selectSELRMux(MachineBasicBlock &MBB,
60 bool expandCondMove(MachineBasicBlock &MBB,
63 bool selectMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
65 bool selectMBB(MachineBasicBlock &MBB);
84 void SystemZPostRewrite::selectLOCRMux(MachineBasicBlock &MBB, argument
99 expandCondMove(MBB, MBBI, NextMBBI);
105 void SystemZPostRewrite::selectSELRMux(MachineBasicBlock &MBB, argument
151 expandCondMove(MBB, MBBI, NextMBBI);
157 bool SystemZPostRewrite::expandCondMove(MachineBasicBlock &MBB, argument
212 selectMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, MachineBasicBlock::iterator &NextMBBI) argument
250 selectMBB(MachineBasicBlock &MBB) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMips16FrameLowering.h25 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
26 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
28 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
33 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
H A DMips16InstrInfo.h51 void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
55 void storeRegToStack(MachineBasicBlock &MBB,
62 void loadRegFromStack(MachineBasicBlock &MBB,
74 void makeFrame(unsigned SP, int64_t FrameSize, MachineBasicBlock &MBB,
78 void restoreFrame(unsigned SP, int64_t FrameSize, MachineBasicBlock &MBB,
82 void adjustStackPtr(unsigned SP, int64_t Amount, MachineBasicBlock &MBB,
88 unsigned loadImmediate(unsigned FrameReg, int64_t Imm, MachineBasicBlock &MBB,
103 (MachineBasicBlock &MBB, MachineBasicBlock::iterator I, int64_t Imm) const;
114 void ExpandRetRA16(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
118 void adjustStackPtrBig(unsigned SP, int64_t Amount, MachineBasicBlock &MBB,
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFFrameLowering.h26 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
27 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
34 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
36 return MBB.erase(MI);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMBasicBlockInfo.cpp47 void ARMBasicBlockUtils::computeBlockSize(MachineBasicBlock *MBB) { argument
48 LLVM_DEBUG(dbgs() << "computeBlockSize: " << MBB->getName() << "\n");
49 BasicBlockInfo &BBI = BBInfo[MBB->getNumber()];
54 for (MachineInstr &I : *MBB) {
66 if (!MBB->empty() && MBB->back().getOpcode() == ARM::tBR_JTr) {
68 MBB->getParent()->ensureAlignment(Align(4));
76 const MachineBasicBlock *MBB = MI->getParent(); local
78 // The offset is composed of two things: the sum of the sizes of all MBB's
81 unsigned Offset = BBInfo[MBB
[all...]
H A DARMFrameLowering.h31 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
32 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
34 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
39 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
62 MachineBasicBlock &MBB) const override;
75 void emitPushInst(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
80 void emitPopInst(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
88 MachineBasicBlock &MBB,
H A DARMBasicBlockInfo.h126 for (MachineBasicBlock &MBB : MF)
127 computeBlockSize(&MBB);
130 void computeBlockSize(MachineBasicBlock *MBB);
134 unsigned getOffsetOf(MachineBasicBlock *MBB) const {
135 return BBInfo[MBB->getNumber()].Offset;
138 void adjustBBOffsetsAfter(MachineBasicBlock *MBB);
140 void adjustBBSize(MachineBasicBlock *MBB, int Size) { argument
141 BBInfo[MBB->getNumber()].Size += Size;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDILCFGStructurizer.cpp204 int getSCCNum(MachineBasicBlock *MBB) const;
206 bool hasBackEdge(MachineBasicBlock *MBB) const;
207 bool isRetiredBlock(MachineBasicBlock *MBB) const;
208 bool isActiveLoophead(MachineBasicBlock *MBB) const;
213 bool needMigrateBlock(MachineBasicBlock *MBB) const;
217 MachineBasicBlock &MBB);
222 void insertInstrEnd(MachineBasicBlock *MBB, int NewOpcode,
224 MachineInstr *insertInstrBefore(MachineBasicBlock *MBB, int NewOpcode,
229 void insertCondBranchBefore(MachineBasicBlock *MBB,
238 static void setTrueBranch(MachineInstr *MI, MachineBasicBlock *MBB);
429 reversePredicateSetter( MachineBasicBlock::iterator I, MachineBasicBlock &MBB) argument
456 insertInstrEnd(MachineBasicBlock *MBB, int NewOpcode, const DebugLoc &DL) argument
465 insertInstrBefore(MachineBasicBlock *MBB, int NewOpcode, const DebugLoc &DL) argument
481 MachineBasicBlock *MBB = OldMI->getParent(); local
493 MachineBasicBlock *MBB = OldMI->getParent(); local
558 setTrueBranch(MachineInstr *MI, MachineBasicBlock *MBB) argument
564 getFalseBranch(MachineBasicBlock *MBB, MachineInstr *MI) argument
596 getLastDebugLocInBB(MachineBasicBlock *MBB) argument
608 getNormalBlockBranchInstr( MachineBasicBlock *MBB) argument
617 getLoopendBlockBranchInstr( MachineBasicBlock *MBB) argument
633 getReturnInstr(MachineBasicBlock *MBB) argument
643 isReturnBlock(MachineBasicBlock *MBB) argument
661 clone(MachineBasicBlock *MBB) argument
679 wrapup(MachineBasicBlock *MBB) argument
736 MachineBasicBlock *MBB = *It; local
765 MachineBasicBlock *MBB; local
879 MachineBasicBlock *MBB; local
900 patternMatch(MachineBasicBlock *MBB) argument
915 patternMatchGroup(MachineBasicBlock *MBB) argument
923 serialPatternMatch(MachineBasicBlock *MBB) argument
936 ifPatternMatch(MachineBasicBlock *MBB) argument
1349 MachineBasicBlock *MBB = *PI; local
1378 mergeIfthenelseBlock(MachineInstr *BranchMI, MachineBasicBlock *MBB, MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB, MachineBasicBlock *LandMBB) argument
1527 cloneBlockForPredecessor(MachineBasicBlock *MBB, MachineBasicBlock *PredMBB) argument
1597 removeUnconditionalBranch(MachineBasicBlock *MBB) argument
1609 removeRedundantConditionalBranch( MachineBasicBlock *MBB) argument
1634 MachineBasicBlock *MBB = *It; local
1645 removeSuccessor(MachineBasicBlock *MBB) argument
1650 recordSccnum(MachineBasicBlock *MBB, int SccNum) argument
1658 retireBlock(MachineBasicBlock *MBB) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430InstrInfo.h38 void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
42 void storeRegToStackSlot(MachineBasicBlock &MBB,
48 void loadRegFromStackSlot(MachineBasicBlock &MBB,
60 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
65 unsigned removeBranch(MachineBasicBlock &MBB,
67 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,

Completed in 245 milliseconds

1234567891011>>