Searched refs:MBB (Results 251 - 275 of 513) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600ExpandSpecialInstrs.cpp90 MachineBasicBlock &MBB = *BB; local
91 MachineBasicBlock::iterator I = MBB.begin();
92 while (I != MBB.end()) {
101 MachineInstr *Mov = TII->buildMovInstr(&MBB, I,
120 MachineInstr *PredSet = TII->buildDefaultInstruction(MBB, I,
146 TII->buildSlotOfVectorInstruction(MBB, &MI, Chan, SubDstReg);
264 TII->buildDefaultInstruction(MBB, I, Opcode, DstReg, Src0, Src1);
H A DAMDGPUMachineCFGStructurizer.cpp345 void storeLiveOutReg(MachineBasicBlock *MBB, unsigned Reg,
355 void storeMBBLiveOuts(MachineBasicBlock *MBB, const MachineRegisterInfo *MRI,
359 void storeLiveOuts(MachineBasicBlock *MBB, const MachineRegisterInfo *MRI,
368 LinearizedRegion(MachineBasicBlock *MBB, const MachineRegisterInfo *MRI,
422 void addMBB(MachineBasicBlock *MBB);
426 bool contains(MachineBasicBlock *MBB);
488 MachineBasicBlock *MBB;
491 MBBMRT(MachineBasicBlock *BB) : MBB(BB) {
499 MachineBasicBlock *getMBB() { return MBB; }
503 dbgs() << "MBB
[all...]
H A DSIFixSGPRCopies.cpp358 bool searchPredecessors(const MachineBasicBlock *MBB, argument
361 if (MBB == CutOff)
365 SmallVector<MachineBasicBlock *, 4> Worklist(MBB->pred_begin(),
366 MBB->pred_end());
369 MachineBasicBlock *MBB = Worklist.pop_back_val(); local
371 if (!Visited.insert(MBB).second)
373 if (MBB == CutOff)
375 if (Predicate(MBB))
378 Worklist.append(MBB->pred_begin(), MBB
[all...]
H A DR600EmitClauseMarkers.cpp243 MakeALUClause(MachineBasicBlock &MBB, MachineBasicBlock::iterator I) { argument
248 for (MachineBasicBlock::iterator E = MBB.end(); I != E; ++I) {
292 BuildMI(MBB, ClauseHead, MBB.findDebugLoc(ClauseHead), TII->get(Opcode))
322 MachineBasicBlock &MBB = *BB; variable
323 MachineBasicBlock::iterator I = MBB.begin();
324 if (I != MBB.end() && I->getOpcode() == R600::CF_ALU)
326 for (MachineBasicBlock::iterator E = MBB.end(); I != E;) {
328 auto next = MakeALUClause(MBB, I);
H A DSIPreAllocateWWMRegs.cpp122 for (MachineBasicBlock &MBB : MF) {
123 for (MachineInstr &MI : MBB) {
188 for (MachineBasicBlock *MBB : RPOT) {
190 for (MachineInstr &MI : *MBB) {
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsOptimizePICCall.cpp92 /// Visit MBB.
150 static void setCallTargetReg(MachineBasicBlock *MBB, argument
152 MachineFunction &MF = *MBB->getParent();
156 BuildMI(*MBB, I, I->getDebugLoc(), TII.get(TargetOpcode::COPY), DstReg)
209 // If this MBB has already been visited, destroy the scope for the MBB and
217 // Visit the MBB and add its children to the work list.
230 MachineBasicBlock *MBB = MBBI.getNode()->getBlock(); local
232 for (MachineBasicBlock::iterator I = MBB->begin(), E = MBB
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLocalizer.cpp121 auto &MBB = MF.front(); local
122 for (auto RI = MBB.rbegin(), RE = MBB.rend(); RI != RE; ++RI) {
186 MachineBasicBlock &MBB = *MI->getParent(); local
200 while (II != MBB.end() && !Users.count(&*II))
205 assert(II != MBB.end() && "Didn't find the user in the MBB");
207 MBB.insert(II, MI);
H A DCSEInfo.cpp107 MachineBasicBlock *MBB,
116 if (Node->MI->getParent() != MBB)
154 MachineBasicBlock *MBB,
157 if (auto *Inst = getNodeIfExists(ID, MBB, InsertPos)) {
237 for (auto &MBB : MF) {
238 if (MBB.empty())
240 for (MachineInstr &MI : MBB) {
326 GISelInstProfileBuilder::addNodeIDMBB(const MachineBasicBlock *MBB) const {
327 ID.AddPointer(MBB);
106 getNodeIfExists(FoldingSetNodeID &ID, MachineBasicBlock *MBB, void *&InsertPos) argument
153 getMachineInstrIfExists(FoldingSetNodeID &ID, MachineBasicBlock *MBB, void *&InsertPos) argument
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DGCRootLowering.cpp65 MCSymbol *InsertLabel(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
257 MCSymbol *GCMachineCodeAnalysis::InsertLabel(MachineBasicBlock &MBB, argument
260 MCSymbol *Label = MBB.getParent()->getContext().createTempSymbol();
261 BuildMI(MBB, MI, DL, TII->get(TargetOpcode::GC_LABEL)).addSym(Label);
276 for (MachineBasicBlock &MBB : MF)
277 for (MachineBasicBlock::iterator MI = MBB.begin(), ME = MBB.end();
H A DEarlyIfConversion.cpp141 /// Return true if all non-terminator instructions in MBB can be safely
143 bool canSpeculateInstrs(MachineBasicBlock *MBB);
145 /// Return true if all non-terminator instructions in MBB can be safely
147 bool canPredicateInstrs(MachineBasicBlock *MBB);
155 void PredicateBlock(MachineBasicBlock *MBB, bool ReversePredicate);
178 /// canConvertIf - If the sub-CFG headed by MBB can be if-converted,
182 bool canConvertIf(MachineBasicBlock *MBB, bool Predicate = false);
192 /// canSpeculateInstrs - Returns true if all the instructions in MBB can safely
200 bool SSAIfConv::canSpeculateInstrs(MachineBasicBlock *MBB) { argument
203 if (!MBB
294 canPredicateInstrs(MachineBasicBlock *MBB) argument
338 PredicateBlock(MachineBasicBlock *MBB, bool ReversePredicate) argument
432 canConvertIf(MachineBasicBlock *MBB, bool Predicate) argument
606 MachineBasicBlock *MBB = PI.PHI->getOperand(i-1).getMBB(); local
885 tryConvertIf(MachineBasicBlock *MBB) argument
1024 tryConvertIf(MachineBasicBlock *MBB) argument
[all...]
H A DLiveDebugValues.cpp137 bool dominates(MachineBasicBlock *MBB) { argument
140 return LBlocks.count(MBB) != 0 || LS.dominates(DL, MBB);
359 /// dominates MBB.
360 bool dominates(MachineBasicBlock &MBB) const { return UVS.dominates(&MBB); }
539 bool transferTerminator(MachineBasicBlock *MBB, OpenRangesSet &OpenRanges,
548 bool join(MachineBasicBlock &MBB, VarLocInMBB &OutLocs, VarLocInMBB &InLocs,
691 Out << "MBB: " << BB.getNumber() << ":\n";
712 const MachineBasicBlock *MBB local
1274 join( MachineBasicBlock &MBB, VarLocInMBB &OutLocs, VarLocInMBB &InLocs, const VarLocMap &VarLocIDs, SmallPtrSet<const MachineBasicBlock *, 16> &Visited, SmallPtrSetImpl<const MachineBasicBlock *> &ArtificialBlocks, VarLocInMBB &PendingInLocs) argument
1380 auto &MBB = const_cast<MachineBasicBlock &>(*Iter.first); local
1570 MachineBasicBlock *MBB = OrderToBB[Worklist.top()]; local
1609 MachineBasicBlock *MBB = TR.TransferInst->getParent(); local
[all...]
H A DTargetInstrInfo.cpp66 void TargetInstrInfo::insertNoop(MachineBasicBlock &MBB, argument
133 MachineBasicBlock *MBB = Tail->getParent();
135 // Remove all the old successors of MBB from the CFG.
136 while (!MBB->succ_empty())
137 MBB->removeSuccessor(MBB->succ_begin());
143 // from the end of MBB.
144 while (Tail != MBB->end()) {
147 MBB->getParent()->eraseCallSiteInfo(&*MI);
148 MBB
409 reMaterialize(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, unsigned DestReg, unsigned SubIdx, const MachineInstr &Orig, const TargetRegisterInfo &TRI) const argument
425 duplicate(MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, const MachineInstr &Orig) const argument
541 MachineBasicBlock *MBB = MI.getParent(); local
630 MachineBasicBlock &MBB = *MI.getParent(); local
689 const MachineBasicBlock *MBB = Inst.getParent(); local
987 isSchedulingBoundary(const MachineInstr &MI, const MachineBasicBlock *MBB, const MachineFunction &MF) const argument
[all...]
H A DMachineOutliner.cpp739 /// \param MBB The \p MachineBasicBlock to be translated into integers.
741 void convertToUnsignedVec(MachineBasicBlock &MBB,
746 if (!TII.isMBBSafeToOutlineFrom(MBB, Flags))
749 // Store info for the MBB for later outlining.
750 MBBFlagsMap[&MBB] = Flags;
752 MachineBasicBlock::iterator It = MBB.begin();
771 for (MachineBasicBlock::iterator Et = MBB.end(); It != Et; ++It) {
988 MachineBasicBlock *MBB = &*OF.MF->begin(); local
991 MBB->findDebugLoc(MBB
1058 MachineBasicBlock *MBB = StartIt->getParent(); local
1136 MachineBasicBlock &MBB = *MF.CreateMachineBasicBlock(); local
1235 MachineBasicBlock &MBB = *C.getMBB(); local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFMISimplifyPatchable.cpp56 void processCandidate(MachineRegisterInfo *MRI, MachineBasicBlock &MBB,
66 void checkShift(MachineRegisterInfo *MRI, MachineBasicBlock &MBB,
143 MachineBasicBlock &MBB, MachineOperand *RelocOp, const GlobalValue *GVal,
150 BuildMI(MBB, *Inst, Inst->getDebugLoc(), TII->get(BPF::CORE_SHIFT))
157 MachineBasicBlock &MBB, MachineInstr &MI, Register &SrcReg,
180 BuildMI(MBB, MI, MI.getDebugLoc(), TII->get(BPF::COPY), DstReg)
245 for (MachineBasicBlock &MBB : *MF) {
246 for (MachineInstr &MI : MBB) {
293 processCandidate(MRI, MBB, MI, SrcReg, DstReg, GVal);
142 checkShift(MachineRegisterInfo *MRI, MachineBasicBlock &MBB, MachineOperand *RelocOp, const GlobalValue *GVal, unsigned Opcode) argument
156 processCandidate(MachineRegisterInfo *MRI, MachineBasicBlock &MBB, MachineInstr &MI, Register &SrcReg, Register &DstReg, const GlobalValue *GVal) argument
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64InstrInfo.cpp77 const MachineBasicBlock &MBB = *MI.getParent(); local
78 const MachineFunction *MF = MBB.getParent();
209 bool AArch64InstrInfo::analyzeBranch(MachineBasicBlock &MBB, argument
215 MachineBasicBlock::iterator I = MBB.getLastNonDebugInstr();
216 if (I == MBB.end())
227 if (I == MBB.begin() || !isUnpredicatedTerminator(*--I)) {
251 if (I == MBB.begin() || !isUnpredicatedTerminator(*--I)) {
263 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I))
337 unsigned AArch64InstrInfo::removeBranch(MachineBasicBlock &MBB, argument
339 MachineBasicBlock::iterator I = MBB
372 instantiateCondBranch( MachineBasicBlock &MBB, const DebugLoc &DL, MachineBasicBlock *TBB, ArrayRef<MachineOperand> Cond) const argument
389 insertBranch( MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond, const DebugLoc &DL, int *BytesAdded) const argument
497 canInsertSelect(const MachineBasicBlock &MBB, ArrayRef<MachineOperand> Cond, unsigned TrueReg, unsigned FalseReg, int &CondCycles, int &TrueCycles, int &FalseCycles) const argument
539 insertSelect(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, const DebugLoc &DL, unsigned DstReg, ArrayRef<MachineOperand> Cond, unsigned TrueReg, unsigned FalseReg) const argument
1274 areCFlagsAliveInSuccessors(MachineBasicBlock *MBB) argument
2449 copyPhysRegTuple(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, const DebugLoc &DL, MCRegister DestReg, MCRegister SrcReg, bool KillSrc, unsigned Opcode, ArrayRef<unsigned> Indices) const argument
2476 copyGPRRegTuple(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, DebugLoc DL, unsigned DestReg, unsigned SrcReg, bool KillSrc, unsigned Opcode, unsigned ZeroReg, llvm::ArrayRef<unsigned> Indices) const argument
2501 copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, const DebugLoc &DL, MCRegister DestReg, MCRegister SrcReg, bool KillSrc) const argument
2821 storeRegPairToStackSlot(const TargetRegisterInfo &TRI, MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, const MCInstrDesc &MCID, unsigned SrcReg, bool IsKill, unsigned SubIdx0, unsigned SubIdx1, int FI, MachineMemOperand *MMO) argument
2844 storeRegToStackSlot( MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, unsigned SrcReg, bool isKill, int FI, const TargetRegisterClass *RC, const TargetRegisterInfo *TRI) const argument
2886 storeRegPairToStackSlot(getRegisterInfo(), MBB, MBBI, local
2900 storeRegPairToStackSlot(getRegisterInfo(), MBB, MBBI, local
2961 loadRegPairFromStackSlot(const TargetRegisterInfo &TRI, MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, const MCInstrDesc &MCID, unsigned DestReg, unsigned SubIdx0, unsigned SubIdx1, int FI, MachineMemOperand *MMO) argument
2986 loadRegFromStackSlot( MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, unsigned DestReg, int FI, const TargetRegisterClass *RC, const TargetRegisterInfo *TRI) const argument
3028 loadRegPairFromStackSlot(getRegisterInfo(), MBB, MBBI, local
3042 loadRegPairFromStackSlot(getRegisterInfo(), MBB, MBBI, local
3106 emitFrameOffsetAdj(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, const DebugLoc &DL, unsigned DestReg, unsigned SrcReg, int64_t Offset, unsigned Opc, const TargetInstrInfo *TII, MachineInstr::MIFlag Flag, bool NeedsWinCFI, bool *HasWinCFI) argument
3198 emitFrameOffset(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, const DebugLoc &DL, unsigned DestReg, unsigned SrcReg, StackOffset Offset, const TargetInstrInfo *TII, MachineInstr::MIFlag Flag, bool SetNZCV, bool NeedsWinCFI, bool *HasWinCFI) argument
3300 MachineBasicBlock &MBB = *MI.getParent(); local
3697 canCombineWithMUL(MachineBasicBlock &MBB, MachineOperand &MO, unsigned MulOpc, unsigned ZeroReg) argument
3704 canCombineWithFMUL(MachineBasicBlock &MBB, MachineOperand &MO, unsigned MulOpc) argument
3741 MachineBasicBlock &MBB = *Root.getParent(); local
4362 MachineBasicBlock &MBB = *Root.getParent(); local
5267 MachineBasicBlock *MBB = MI.getParent(); local
5993 isMBBSafeToOutlineFrom(MachineBasicBlock &MBB, unsigned &Flags) const argument
6063 MachineBasicBlock *MBB = MI.getParent(); local
6232 signOutlinedFunction(MachineFunction &MF, MachineBasicBlock &MBB, bool ShouldSignReturnAddr, bool ShouldSignReturnAddrWithAKey) argument
6285 buildOutlinedFrame( MachineBasicBlock &MBB, MachineFunction &MF, const outliner::OutlinedFunction &OF) const argument
6418 insertOutlinedCall( Module &M, MachineBasicBlock &MBB, MachineBasicBlock::iterator &It, MachineFunction &MF, const outliner::Candidate &C) const argument
[all...]
H A DAArch64A57FPLoadBalancing.cpp137 bool runOnBasicBlock(MachineBasicBlock &MBB);
138 bool colorChainSet(std::vector<Chain*> GV, MachineBasicBlock &MBB,
140 bool colorChain(Chain *G, Color C, MachineBasicBlock &MBB);
141 int scavengeRegister(Chain *G, Color C, MachineBasicBlock &MBB);
323 for (auto &MBB : F) {
324 Changed |= runOnBasicBlock(MBB);
330 bool AArch64A57FPLoadBalancing::runOnBasicBlock(MachineBasicBlock &MBB) { argument
332 LLVM_DEBUG(dbgs() << "Running on MBB: " << MBB
343 for (auto &MI : MBB)
439 colorChainSet(std::vector<Chain*> GV, MachineBasicBlock &MBB, int &Parity) argument
530 colorChain(Chain *G, Color C, MachineBasicBlock &MBB) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTailDuplicator.h86 /// of predecessors that received a copy of \p MBB.
87 /// If \p RemovalCallback is non-null. It will be called before MBB is
90 bool IsSimple, MachineBasicBlock *MBB,
122 void appendCopies(MachineBasicBlock *MBB,
127 MachineBasicBlock *MBB,
H A DDFAPacketizer.h135 void PacketizeMIs(MachineBasicBlock *MBB,
152 virtual void endPacket(MachineBasicBlock *MBB,
161 const MachineBasicBlock *MBB) {
160 ignorePseudoInstruction(const MachineInstr &I, const MachineBasicBlock *MBB) argument
H A DMachineFunction.h77 void deleteNode(MachineBasicBlock *MBB);
219 explicit LandingPadInfo(MachineBasicBlock *MBB) argument
220 : LandingPadBlock(MBB) {}
256 // numbered and this vector keeps track of the mapping from ID's to MBB's.
584 /// basic block can be found by using the MBB::getNumber method, this method
595 /// getNumBlockIDs - Return the number of MBB ID's allocated.
599 /// recomputes them. This guarantees that the MBB numbers are sequential,
668 void push_back (MachineBasicBlock *MBB) { BasicBlocks.push_back (MBB); }
669 void push_front(MachineBasicBlock *MBB) { BasicBlock
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCQPXLoadSplat.cpp65 MachineBasicBlock *MBB = &*MFI; local
68 for (auto MBBI = MBB->rbegin(); MBBI != MBB->rend(); ++MBBI) {
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfException.h67 void beginFragment(const MachineBasicBlock *MBB,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86DiscriminateMemOps.cpp108 for (auto &MBB : MF) {
109 for (auto &MI : MBB) {
127 for (auto &MBB : MF) {
128 for (auto &MI : MBB) {
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DThumbRegisterInfo.h40 emitLoadConstPool(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI,
H A DARMBaseInstrInfo.h132 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
136 unsigned removeBranch(MachineBasicBlock &MBB,
138 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
197 void copyToCPSR(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
200 void copyFromCPSR(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
204 void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
208 void storeRegToStackSlot(MachineBasicBlock &MBB,
214 void loadRegFromStackSlot(MachineBasicBlock &MBB,
224 void reMaterialize(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
230 duplicate(MachineBasicBlock &MBB, MachineBasicBloc
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430RegisterInfo.cpp109 MachineBasicBlock &MBB = *MI.getParent(); local
110 MachineFunction &MF = *MBB.getParent();
144 BuildMI(MBB, std::next(II), dl, TII.get(MSP430::SUB16ri), DstReg)
147 BuildMI(MBB, std::next(II), dl, TII.get(MSP430::ADD16ri), DstReg)

Completed in 330 milliseconds

<<11121314151617181920>>