/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AVR/ |
H A D | AVRFrameLowering.h | 22 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 23 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 25 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, 30 restoreCalleeSavedRegisters(MachineBasicBlock &MBB, 39 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
|
H A D | AVRFrameLowering.cpp | 54 MachineBasicBlock &MBB) const { 55 MachineBasicBlock::iterator MBBI = MBB.begin(); 57 DebugLoc DL = (MBBI != MBB.end()) ? MBBI->getDebugLoc() : DebugLoc(); 64 BuildMI(MBB, MBBI, DL, TII.get(AVR::BSETs)) 71 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHWRr)) 80 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHWRr)) 84 BuildMI(MBB, MBBI, DL, TII.get(AVR::INRdA), AVR::R0) 87 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHRr)) 90 BuildMI(MBB, MBBI, DL, TII.get(AVR::EORRdRr)) 108 (MBBI != MBB 235 spillCalleeSavedRegisters( MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector<CalleeSavedInfo> &CSI, const TargetRegisterInfo *TRI) const argument 276 restoreCalleeSavedRegisters( MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, std::vector<CalleeSavedInfo> &CSI, const TargetRegisterInfo *TRI) const argument 305 fixStackStores(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const TargetInstrInfo &TII, bool insertPushes) argument 361 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator MI) const argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | SplitKit.h | 60 const MachineBasicBlock &MBB); 67 const MachineBasicBlock &MBB) { 68 unsigned Num = MBB.getNumber(); 73 return computeLastInsertPoint(CurLI, MBB); 78 MachineBasicBlock &MBB); 81 SlotIndex getFirstInsertPoint(MachineBasicBlock &MBB) { argument 82 SlotIndex Res = LIS.getMBBStartIdx(&MBB); 83 if (!MBB.empty()) { 84 MachineBasicBlock::iterator MII = MBB.SkipPHIsLabelsAndDebug(MBB 66 getLastInsertPoint(const LiveInterval &CurLI, const MachineBasicBlock &MBB) argument 121 MachineBasicBlock *MBB; member in struct:llvm::SplitAnalysis::BlockInfo [all...] |
H A D | MachineOptimizationRemarkEmitter.cpp | 35 MachineOptimizationRemarkEmitter::computeHotness(const MachineBasicBlock &MBB) { argument 39 return MBFI->getBlockProfileCount(&MBB); 44 const MachineBasicBlock *MBB = Remark.getBlock(); local 45 if (MBB) 46 Remark.setHotness(computeHotness(*MBB));
|
H A D | PostRAHazardRecognizer.cpp | 79 for (auto &MBB : Fn) { 82 for (MachineInstr &MI : MBB) { 87 TII->insertNoop(MBB, MachineBasicBlock::iterator(MI));
|
H A D | MachineTraceMetrics.cpp | 96 /// Compute the resource usage in basic block MBB. 98 MachineTraceMetrics::getResources(const MachineBasicBlock *MBB) { argument 99 assert(MBB && "No basic block"); 100 FixedBlockInfo *FBI = &BlockInfo[MBB->getNumber()]; 112 for (const auto &MI : *MBB) { 136 unsigned PROffset = MBB->getNumber() * PRKinds; 169 MachineTraceMetrics::Ensemble::getLoopFor(const MachineBasicBlock *MBB) const { 170 return MTM.Loops->getLoopFor(MBB); 173 // Update resource-related information in the TraceBlockInfo for MBB. 174 // Only update resources related to the trace above MBB 176 computeDepthResources(const MachineBasicBlock *MBB) argument 209 computeHeightResources(const MachineBasicBlock *MBB) argument 326 pickTracePred(const MachineBasicBlock *MBB) argument 354 pickTraceSucc(const MachineBasicBlock *MBB) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZMachineScheduler.cpp | 14 // region of each MBB, so that a successor block can learn from it. 39 // scheduler in the top-most region of MBB. 40 static MachineBasicBlock *getSingleSchedPred(MachineBasicBlock *MBB, argument 43 if (MBB->pred_size() == 1) 44 PredMBB = *MBB->pred_begin(); 48 if (MBB->pred_size() == 2 && Loop != nullptr && Loop->getHeader() == MBB) { 49 for (auto I = MBB->pred_begin(); I != MBB->pred_end(); ++I) 51 PredMBB = (*I == MBB [all...] |
H A D | SystemZFrameLowering.h | 33 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, 37 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB, 44 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 45 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 51 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCPreEmitPeephole.cpp | 71 bool removeRedundantLIs(MachineBasicBlock &MBB, argument 73 LLVM_DEBUG(dbgs() << "Remove redundant load immediates from MBB:\n"; 74 MBB.dump(); dbgs() << "\n"); 77 for (auto BBI = MBB.instr_begin(); BBI != MBB.instr_end(); ++BBI) { 107 for (auto AfterBBI = std::next(BBI); AfterBBI != MBB.instr_end(); 171 for (MachineBasicBlock &MBB : MF) 172 for (MachineInstr &MI : MBB) 183 for (MachineBasicBlock &MBB : MF) { 184 Changed |= removeRedundantLIs(MBB, TR [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86FrameLowering.h | 53 void emitStackProbe(MachineFunction &MF, MachineBasicBlock &MBB, 61 void emitCalleeSavedFrameMoves(MachineBasicBlock &MBB, 67 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 68 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 84 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, 89 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB, 111 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, 123 int mergeSPUpdates(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, 128 void emitSPUpdate(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, 134 /// Check whether or not the given \p MBB ca [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/MSP430/ |
H A D | MSP430InstrInfo.cpp | 36 void MSP430InstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB, argument 42 if (MI != MBB.end()) DL = MI->getDebugLoc(); 43 MachineFunction &MF = *MBB.getParent(); 52 BuildMI(MBB, MI, DL, get(MSP430::MOV16mr)) 56 BuildMI(MBB, MI, DL, get(MSP430::MOV8mr)) 63 void MSP430InstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB, argument 69 if (MI != MBB.end()) DL = MI->getDebugLoc(); 70 MachineFunction &MF = *MBB.getParent(); 79 BuildMI(MBB, MI, DL, get(MSP430::MOV16rm)) 83 BuildMI(MBB, M 90 copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, const DebugLoc &DL, MCRegister DestReg, MCRegister SrcReg, bool KillSrc) const argument 106 removeBranch(MachineBasicBlock &MBB, int *BytesRemoved) const argument 175 analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument 265 insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond, const DebugLoc &DL, int *BytesAdded) const argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Sparc/ |
H A D | SparcFrameLowering.cpp | 41 MachineBasicBlock &MBB, 52 BuildMI(MBB, MBBI, dl, TII.get(ADDri), SP::O6) 64 BuildMI(MBB, MBBI, dl, TII.get(SP::SETHIi), SP::G1) 66 BuildMI(MBB, MBBI, dl, TII.get(SP::ORri), SP::G1) 68 BuildMI(MBB, MBBI, dl, TII.get(ADDrr), SP::O6) 77 BuildMI(MBB, MBBI, dl, TII.get(SP::SETHIi), SP::G1) 79 BuildMI(MBB, MBBI, dl, TII.get(SP::XORri), SP::G1) 81 BuildMI(MBB, MBBI, dl, TII.get(ADDrr), SP::O6) 86 MachineBasicBlock &MBB) const { 89 assert(&MF.front() == &MBB 40 emitSPAdjustment(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, int NumBytes, unsigned ADDrr, unsigned ADDri) const argument 205 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreInstrInfo.cpp | 166 /// AnalyzeBranch - Analyze the branching code at the end of MBB, returning 189 bool XCoreInstrInfo::analyzeBranch(MachineBasicBlock &MBB, argument 195 MachineBasicBlock::iterator I = MBB.getLastNonDebugInstr(); 196 if (I == MBB.end()) 206 if (I == MBB.begin() || !isUnpredicatedTerminator(*--I)) { 229 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) 271 unsigned XCoreInstrInfo::insertBranch(MachineBasicBlock &MBB, argument 286 BuildMI(&MBB, DL, get(XCore::BRFU_lu6)).addMBB(TBB); 290 BuildMI(&MBB, DL, get(Opc)).addReg(Cond[1].getReg()) 299 BuildMI(&MBB, D 306 removeBranch(MachineBasicBlock &MBB, int *BytesRemoved) const argument 331 copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, const DebugLoc &DL, MCRegister DestReg, MCRegister SrcReg, bool KillSrc) const argument 358 storeRegToStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, unsigned SrcReg, bool isKill, int FrameIndex, const TargetRegisterClass *RC, const TargetRegisterInfo *TRI) const argument 381 loadRegFromStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, unsigned DestReg, int FrameIndex, const TargetRegisterClass *RC, const TargetRegisterInfo *TRI) const argument 426 loadImmediate( MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, unsigned Reg, uint64_t Value) const argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ExpandPseudoInsts.cpp | 65 bool expandMBB(MachineBasicBlock &MBB); 66 bool expandMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, 68 bool expandMOVImm(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, 71 bool expandCMP_SWAP(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, 75 bool expandCMP_SWAP_128(MachineBasicBlock &MBB, 78 bool expandSetTagLoop(MachineBasicBlock &MBB, 108 bool AArch64ExpandPseudo::expandMOVImm(MachineBasicBlock &MBB, argument 137 MIBS.push_back(BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(I->Opcode)) 147 MIBS.push_back(BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(I->Opcode)) 158 MIBS.push_back(BuildMI(MBB, MBB 174 expandCMP_SWAP( MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, unsigned LdarOp, unsigned StlrOp, unsigned CmpOp, unsigned ExtendImm, unsigned ZeroReg, MachineBasicBlock::iterator &NextMBBI) argument 254 expandCMP_SWAP_128( MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, MachineBasicBlock::iterator &NextMBBI) argument 347 expandSetTagLoop( MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, MachineBasicBlock::iterator &NextMBBI) argument 407 expandMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, MachineBasicBlock::iterator &NextMBBI) argument 718 expandMBB(MachineBasicBlock &MBB) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyCFGStackify.cpp | 60 void placeBlockMarker(MachineBasicBlock &MBB); 61 void placeLoopMarker(MachineBasicBlock &MBB); 62 void placeTryMarker(MachineBasicBlock &MBB); 116 /// Test whether Pred has any terminators explicitly branching to MBB, as 122 MachineBasicBlock *MBB) { 125 if (MO.isMBB() && MO.getMBB() == MBB) 130 // Returns an iterator to the earliest position possible within the MBB, 136 getEarliestInsertPos(MachineBasicBlock *MBB, argument 139 auto InsertPos = MBB->end(); 140 while (InsertPos != MBB 121 explicitlyBranchesTo(MachineBasicBlock *Pred, MachineBasicBlock *MBB) argument 160 getLatestInsertPos(MachineBasicBlock *MBB, const SmallPtrSet<const MachineInstr *, 4> &BeforeSet, const SmallPtrSet<const MachineInstr *, 4> &AfterSet) argument 209 placeBlockMarker(MachineBasicBlock &MBB) argument 373 placeLoopMarker(MachineBasicBlock &MBB) argument 439 placeTryMarker(MachineBasicBlock &MBB) argument 710 unstackifyVRegsUsedInSplitBB(MachineBasicBlock &MBB, MachineBasicBlock &Split, WebAssemblyFunctionInfo &MFI, MachineRegisterInfo &MRI) argument 1111 auto *MBB = RangeBegin->getParent(); local 1210 getDepth(const SmallVectorImpl<const MachineBasicBlock *> &Stack, const MachineBasicBlock *MBB) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonFixupHwLoops.cpp | 116 for (const MachineBasicBlock &MBB : MF) { 117 if (MBB.getAlignment() != Align::None()) { 121 InstOffset = alignTo(InstOffset, MBB.getAlignment()); 124 BlockToInstOffset[&MBB] = InstOffset; 125 for (const MachineInstr &MI : MBB) 132 for (MachineBasicBlock &MBB : MF) { 133 InstOffset = BlockToInstOffset[&MBB]; 136 MachineBasicBlock::iterator MII = MBB.begin(); 137 MachineBasicBlock::iterator MIE = MBB.end(); 152 MII = MBB 171 MachineBasicBlock *MBB = MII->getParent(); local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Lanai/ |
H A D | LanaiFrameLowering.h | 40 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 41 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 44 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | Thumb1InstrInfo.h | 40 void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, 43 void storeRegToStackSlot(MachineBasicBlock &MBB, 49 void loadRegFromStackSlot(MachineBasicBlock &MBB,
|
H A D | Thumb1FrameLowering.cpp | 67 emitPrologueEpilogueSPUpdate(MachineBasicBlock &MBB, argument 81 MachineFunction &MF = *MBB.getParent(); 84 BuildMI(MBB, MBBI, dl, TII.get(ARM::t2MOVi32imm), ScratchReg) 87 MRI.emitLoadConstPool(MBB, MBBI, dl, ScratchReg, 0, NumBytes, ARMCC::AL, 90 BuildMI(MBB, MBBI, dl, TII.get(ARM::tADDhirr), ARM::SP) 97 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, 102 static void emitCallSPUpdate(MachineBasicBlock &MBB, argument 107 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, 113 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, argument 135 emitCallSPUpdate(MBB, 600 emitPopSpecialFixUp(MachineBasicBlock &MBB, bool DoIt) const argument 808 spillCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector<CalleeSavedInfo> &CSI, const TargetRegisterInfo *TRI) const argument 931 restoreCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, std::vector<CalleeSavedInfo> &CSI, const TargetRegisterInfo *TRI) const argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | SILowerI1Copies.cpp | 45 static unsigned insertUndefLaneMask(MachineBasicBlock &MBB); 93 void buildMergeLaneMasks(MachineBasicBlock &MBB, 97 getSaluInsertionAtEnd(MachineBasicBlock &MBB) const; 146 /// Returns whether \p MBB is a source in the induced subgraph of reachable 148 bool isSource(MachineBasicBlock &MBB) const { 149 return ReachableMap.find(&MBB)->second; 166 for (MachineBasicBlock *MBB : IncomingBlocks) { 167 if (MBB == &DefBlock) { 172 ReachableMap.try_emplace(MBB, false); 173 ReachableOrdered.push_back(MBB); 195 MachineBasicBlock *MBB = Stack.pop_back_val(); local 287 initialize(MachineBasicBlock &MBB) argument 345 inLoopLevel(MachineBasicBlock &MBB, unsigned LoopLevel, ArrayRef<MachineBasicBlock *> Blocks) const argument 382 MachineBasicBlock *MBB = Stack.pop_back_val(); local [all...] |
H A D | SIModeRegister.cpp | 144 void processBlockPhase1(MachineBasicBlock &MBB, const SIInstrInfo *TII); 146 void processBlockPhase2(MachineBasicBlock &MBB, const SIInstrInfo *TII); 148 void processBlockPhase3(MachineBasicBlock &MBB, const SIInstrInfo *TII); 152 void insertSetreg(MachineBasicBlock &MBB, MachineInstr *I, 192 void SIModeRegister::insertSetreg(MachineBasicBlock &MBB, MachineInstr *MI, argument 198 BuildMI(MBB, MI, 0, TII->get(AMDGPU::S_SETREG_IMM32_B32)) 227 void SIModeRegister::processBlockPhase1(MachineBasicBlock &MBB, argument 238 for (MachineInstr &MI : MBB) { 259 insertSetreg(MBB, InsertionPoint, TII, IPChange.delta(NewInfo->Change)); 292 insertSetreg(MBB, InsertionPoin 326 processBlockPhase2(MachineBasicBlock &MBB, const SIInstrInfo *TII) argument 362 processBlockPhase3(MachineBasicBlock &MBB, const SIInstrInfo *TII) argument [all...] |
H A D | SIFrameLowering.h | 29 MachineBasicBlock &MBB) const; 31 MachineBasicBlock &MBB) const override; 33 MachineBasicBlock &MBB) const override; 54 MachineBasicBlock &MBB, 60 MachineBasicBlock &MBB) const; 75 MachineBasicBlock &MBB, SIMachineFunctionInfo *MFI,
|
H A D | AMDGPUMacroFusion.cpp | 44 const MachineBasicBlock &MBB = *FirstMI->getParent(); local 45 const MachineRegisterInfo &MRI = MBB.getParent()->getRegInfo();
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | Mips16InstrInfo.cpp | 69 void Mips16InstrInfo::copyPhysReg(MachineBasicBlock &MBB, argument 90 MachineInstrBuilder MIB = BuildMI(MBB, I, DL, get(Opc)); 106 void Mips16InstrInfo::storeRegToStack(MachineBasicBlock &MBB, argument 113 if (I != MBB.end()) DL = I->getDebugLoc(); 114 MachineMemOperand *MMO = GetMemOperand(MBB, FI, MachineMemOperand::MOStore); 119 BuildMI(MBB, I, DL, get(Opc)).addReg(SrcReg, getKillRegState(isKill)). 124 void Mips16InstrInfo::loadRegFromStack(MachineBasicBlock &MBB, argument 131 if (I != MBB.end()) DL = I->getDebugLoc(); 132 MachineMemOperand *MMO = GetMemOperand(MBB, FI, MachineMemOperand::MOLoad); 138 BuildMI(MBB, 143 MachineBasicBlock &MBB = *MI.getParent(); local 210 makeFrame(unsigned SP, int64_t FrameSize, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument 240 restoreFrame(unsigned SP, int64_t FrameSize, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument 275 adjustStackPtrBig(unsigned SP, int64_t Amount, MachineBasicBlock &MBB, MachineBasicBlock::iterator I, unsigned Reg1, unsigned Reg2) const argument 299 adjustStackPtrBigUnrestricted( unsigned SP, int64_t Amount, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument 306 adjustStackPtr(unsigned SP, int64_t Amount, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument 320 loadImmediate(unsigned FrameReg, int64_t Imm, MachineBasicBlock &MBB, MachineBasicBlock::iterator II, const DebugLoc &DL, unsigned &NewImm) const argument 449 ExpandRetRA16(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, unsigned Opc) const argument 462 BuildAddiuSpImm(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, int64_t Imm) const argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/BPF/ |
H A D | BPFFrameLowering.cpp | 26 MachineBasicBlock &MBB) const {} 29 MachineBasicBlock &MBB) const {}
|