| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFrameLowering.cpp | 151 return needsSPForLocalFrame(MF) || needsPrologForEH(MF); in needsSP() 242 assert(!I->getOperand(0).getImm() && (hasFP(MF) || hasBP(MF)) && in eliminateCallFramePseudoInstr() 249 writeSPToGlobal(getSPReg(MF), MF, MBB, I, DL); in eliminateCallFramePseudoInstr() 261 if (!needsSP(MF)) in emitPrologue() 299 BuildMI(MBB, InsertPt, DL, TII->get(getOpcSub(MF)), getSPReg(MF)) in emitPrologue() 308 BuildMI(MBB, InsertPt, DL, TII->get(getOpcAnd(MF)), getSPReg(MF)) in emitPrologue() 312 if (hasFP(MF)) { in emitPrologue() 320 writeSPToGlobal(getSPReg(MF), MF, MBB, InsertPt, DL); in emitPrologue() 327 if (!needsSP(MF) || !needsSPWriteback(MF)) in emitEpilogue() 341 unsigned SPFPReg = hasFP(MF) ? getFPReg(MF) : getSPReg(MF); in emitEpilogue() [all …]
|
| H A D | WebAssemblyFrameLowering.h | 44 bool hasFP(const MachineFunction &MF) const override; 49 bool needsPrologForEH(const MachineFunction &MF) const; 62 static unsigned getSPReg(const MachineFunction &MF); 63 static unsigned getFPReg(const MachineFunction &MF); 64 static unsigned getOpcConst(const MachineFunction &MF); 65 static unsigned getOpcAdd(const MachineFunction &MF); 66 static unsigned getOpcSub(const MachineFunction &MF); 67 static unsigned getOpcAnd(const MachineFunction &MF); 72 bool hasBP(const MachineFunction &MF) const; 74 bool needsSP(const MachineFunction &MF) const; [all …]
|
| H A D | WebAssemblyLateEHPrepare.cpp | 84 if (MBB == &MF->front()) in getMatchingEHPad() 126 recordCatchRetBBs(MF); in runOnMachineFunction() 141 for (auto &MBB : MF) in removeUnreachableEHPads() 153 for (auto &MBB : MF) { in recordCatchRetBBs() 178 for (auto &MBB : MF) in hoistCatches() 205 for (auto &MBB : MF) { in addCatchAlls() 231 for (auto &MBB : MF) { in replaceFuncletReturns() 264 MachineFunction &MF) { in removeUnnecessaryUnreachables() argument 266 for (auto &MBB : MF) { in removeUnnecessaryUnreachables() 299 for (auto &MBB : MF) { in restoreStackPointer() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64RegisterInfo.cpp | 67 const Function &F = MF->getFunction(); in hasSVEArgsOrReturn() 111 if (hasSVEArgsOrReturn(MF)) in getCalleeSavedRegs() 156 MachineFunction &MF) const { in UpdateCustomCalleeSavedRegs() 331 if (hasBasePointer(MF)) in getReservedRegs() 344 return getReservedRegs(MF)[Reg]; in isReservedReg() 349 return isReservedReg(MF, r); in isAnyArgRegReserved() 396 if (hasStackRealignment(MF)) in hasBasePointer() 451 return TFI.hasFP(MF) && !hasStackRealignment(MF) && !AFI->getStackSizeSVE(); in useFPForScavengingIndex() 462 if (MF.getTarget().Options.DisableFramePointerElim(MF) && MFI.adjustsStack()) in cannotEliminateFrame() 778 else if (hasStackRealignment(MF)) in getLocalAddressRegister() [all …]
|
| H A D | AArch64FrameLowering.h | 65 bool canUseRedZone(const MachineFunction &MF) const; 67 bool hasFP(const MachineFunction &MF) const override; 70 bool hasSwiftExtendedFrame(const MachineFunction &MF) const; 72 bool assignCalleeSavedSpillSlots(MachineFunction &MF, 89 void processFunctionBeforeFrameFinalized(MachineFunction &MF, 93 processFunctionBeforeFrameIndicesReplaced(MachineFunction &MF, 126 orderFrameObjects(const MachineFunction &MF, 134 bool homogeneousPrologEpilog(MachineFunction &MF, 138 bool producePairRegisters(MachineFunction &MF) const; 140 bool shouldCombineCSRLocalStackBump(MachineFunction &MF, [all …]
|
| H A D | AArch64RegisterInfo.h | 38 bool isAnyArgRegReserved(const MachineFunction &MF) const; 39 void emitReservedArgRegCallError(const MachineFunction &MF) const; 41 void UpdateCustomCalleeSavedRegs(MachineFunction &MF) const; 42 void UpdateCustomCallPreservedMask(MachineFunction &MF, 45 static bool hasSVEArgsOrReturn(const MachineFunction *MF); 51 getCalleeSavedRegsViaCopy(const MachineFunction *MF) const; 52 const uint32_t *getCallPreservedMask(const MachineFunction &MF, 94 bool isAsmClobberable(const MachineFunction &MF, 98 getPointerRegClass(const MachineFunction &MF, 117 bool cannotEliminateFrame(const MachineFunction &MF) const; [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | TargetFrameLoweringImpl.cpp | 47 const MachineFrameInfo &MFI = MF.getFrameInfo(); in getFrameIndexReference() 53 FrameReg = RI->getFrameRegister(MF); in getFrameIndexReference() 61 const MachineFunction &MF) const { in needsFrameIndexResolution() 62 return MF.getFrameInfo().hasStackObjects(); in needsFrameIndexResolution() 70 const MachineFrameInfo &MFI = MF.getFrameInfo(); in getCalleeSaves() 90 if (MF.getTarget().Options.EnableIPRA && in determineCalleeSaves() 91 isSafeForNoCSROpt(MF.getFunction()) && in determineCalleeSaves() 92 isProfitableForNoCSROpt(MF.getFunction())) in determineCalleeSaves() 116 enableCalleeSaveSkip(MF)) in determineCalleeSaves() 120 bool CallsUnwindInit = MF.callsUnwindInit(); in determineCalleeSaves() [all …]
|
| H A D | PrologEpilogInserter.cpp | 224 calculateCallFrameInfo(MF); in runOnMachineFunction() 228 calculateSaveRestoreBlocks(MF); in runOnMachineFunction() 237 spillCalleeSavedRegs(MF); in runOnMachineFunction() 244 calculateFrameObjectOffsets(MF); in runOnMachineFunction() 252 insertPrologEpilogCode(MF); in runOnMachineFunction() 265 replaceFrameIndices(MF); in runOnMachineFunction() 279 bool Failed = MF.getFunction() in runOnMachineFunction() 632 updateLiveness(MF); in spillCalleeSavedRegs() 1132 if (MF.shouldSplitStack()) { in insertPrologEpilogCode() 1171 for (auto DFI = df_ext_begin(&MF, Reachable), DFE = df_ext_end(&MF, Reachable); in replaceFrameIndices() [all …]
|
| H A D | BasicBlockSections.cpp | 164 MachineFunction &MF, in updateBranches() argument 168 for (auto &MBB : MF) { in updateBranches() 202 auto FuncName = MF.getName(); in getBBClusterInfoForFunction() 246 for (auto &MBB : MF) { in assignSections() 279 for (auto &MBB : MF) in assignSections() 287 MF.getNumBlockIDs()); in sortBasicBlocksAndUpdateBranches() 288 for (auto &MBB : MF) in sortBasicBlocksAndUpdateBranches() 291 MF.sort(MBBCmp); in sortBasicBlocksAndUpdateBranches() 294 MF.assignBeginEndSections(); in sortBasicBlocksAndUpdateBranches() 307 for (auto &MBB : MF) { in avoidZeroOffsetLandingPad() [all …]
|
| /freebsd-13.1/tools/tools/ath/athalq/ |
| H A D | ar9300_ds.c | 88 MF(txs.status8, AR_tx_done), in ar9300_decode_txstatus() 208 MF(txc.ds_ctl11, AR_veol), in ar9300_decode_txdesc() 224 MF(txc.ds_ctl12, AR_no_ack), in ar9300_decode_txdesc() 276 MF(txc.ds_ctl17, AR_ldpc)); in ar9300_decode_txdesc() 281 MF(txc.ds_ctl18, AR_gi0), in ar9300_decode_txdesc() 282 MF(txc.ds_ctl18, AR_2040_0), in ar9300_decode_txdesc() 286 MF(txc.ds_ctl18, AR_gi1), in ar9300_decode_txdesc() 291 MF(txc.ds_ctl18, AR_gi2), in ar9300_decode_txdesc() 296 MF(txc.ds_ctl18, AR_gi3), in ar9300_decode_txdesc() 373 MF(rxs.status4, AR_gi), in ar9300_decode_rxstatus() [all …]
|
| H A D | ar5416_ds.c | 146 MF(txc.ds_ctl0, AR_VEOL), in ar5416_decode_txdesc() 157 MF(txc.ds_ctl1, AR_TxMore), in ar5416_decode_txdesc() 162 MF(txc.ds_ctl1, AR_NoAck), in ar5416_decode_txdesc() 169 MF(txc.ds_ctl1, AR_IsAggr), in ar5416_decode_txdesc() 211 MF(txc.ds_ctl7, AR_GI0), in ar5416_decode_txdesc() 212 MF(txc.ds_ctl7, AR_2040_0), in ar5416_decode_txdesc() 213 MF(txc.ds_ctl7, AR_STBC0)); in ar5416_decode_txdesc() 216 MF(txc.ds_ctl7, AR_GI1), in ar5416_decode_txdesc() 217 MF(txc.ds_ctl7, AR_2040_1), in ar5416_decode_txdesc() 221 MF(txc.ds_ctl7, AR_GI2), in ar5416_decode_txdesc() [all …]
|
| H A D | ar5416_ds_tdma.c | 149 MF(txc.ds_ctl0, AR_VEOL), in ar5416_decode_txdesc() 160 MF(txc.ds_ctl1, AR_TxMore), in ar5416_decode_txdesc() 165 MF(txc.ds_ctl1, AR_NoAck), in ar5416_decode_txdesc() 172 MF(txc.ds_ctl1, AR_IsAggr), in ar5416_decode_txdesc() 217 MF(txc.ds_ctl7, AR_GI0), in ar5416_decode_txdesc() 218 MF(txc.ds_ctl7, AR_2040_0), in ar5416_decode_txdesc() 219 MF(txc.ds_ctl7, AR_STBC0)); in ar5416_decode_txdesc() 222 MF(txc.ds_ctl7, AR_GI1), in ar5416_decode_txdesc() 223 MF(txc.ds_ctl7, AR_2040_1), in ar5416_decode_txdesc() 227 MF(txc.ds_ctl7, AR_GI2), in ar5416_decode_txdesc() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86FrameLowering.h | 59 void inlineStackProbe(MachineFunction &MF, 75 void adjustForSegmentedStacks(MachineFunction &MF, 78 void adjustForHiPEPrologue(MachineFunction &MF, 85 assignCalleeSavedSpillSlots(MachineFunction &MF, 100 bool hasFP(const MachineFunction &MF) const override; 169 void orderFrameObjects(const MachineFunction &MF, 191 bool has128ByteRedZone(const MachineFunction& MF) const; 194 bool isWin64Prologue(const MachineFunction &MF) const; 196 bool needsDwarfCFI(const MachineFunction &MF) const; 224 void emitStackProbeInlineGenericLoop(MachineFunction &MF, [all …]
|
| H A D | X86IndirectThunks.cpp | 70 void populateThunk(MachineFunction &MF); 81 void populateThunk(MachineFunction &MF) { in populateThunk() 82 assert (MF.size() == 1); in populateThunk() 83 MachineBasicBlock *Entry = &MF.front(); in populateThunk() 97 MF.front().addLiveIn(X86::R11); in populateThunk() 189 if (MF.getName() == EAXRetpolineName) in populateThunk() 202 assert (MF.size() == 1); in populateThunk() 203 MachineBasicBlock *Entry = &MF.front(); in populateThunk() 211 MF.push_back(CaptureSpec); in populateThunk() 212 MF.push_back(CallTarget); in populateThunk() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | TargetFrameLowering.h | 158 return assignCalleeSavedSpillSlots(MF, TRI, CSI); in assignCalleeSavedSpillSlots() 162 assignCalleeSavedSpillSlots(MachineFunction &MF, in assignCalleeSavedSpillSlots() argument 208 virtual void emitPrologue(MachineFunction &MF, 210 virtual void emitEpilogue(MachineFunction &MF, 220 virtual void inlineStackProbe(MachineFunction &MF, in inlineStackProbe() argument 275 return !hasFP(MF); in hasReservedCallFrame() 286 return hasReservedCallFrame(MF) || hasFP(MF); in canSimplifyCallFramePseudos() 311 return getFrameIndexReference(MF, FI, FrameReg); in getFrameIndexReferencePreferSP() 322 return getFrameIndexReference(MF, FI, FrameReg); in getNonLocalFrameIndexReference() 370 eliminateCallFramePseudoInstr(MachineFunction &MF, in eliminateCallFramePseudoInstr() argument [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VEFrameLowering.cpp | 163 if (hasGOT(MF)) { in emitPrologueInsns() 175 if (hasBP(MF)) in emitPrologueInsns() 199 if (hasBP(MF)) in emitEpilogueInsns() 204 if (hasGOT(MF)) { in emitEpilogueInsns() 365 if (hasBP(MF)) { in emitPrologue() 374 emitSPExtend(MF, MBB, MBBI); in emitPrologue() 380 if (!hasReservedCallFrame(MF)) { in eliminateCallFramePseudoInstr() 425 return MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP() 453 if (!hasFP(MF)) { in getFrameIndexReference() 462 if (hasBP(MF)) in getFrameIndexReference() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVFrameLowering.cpp | 56 MF.getFunction(), in emitSCSPrologue() 227 return MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP() 455 if (hasFP(MF)) { in emitPrologue() 482 if (!hasFP(MF)) { in emitPrologue() 496 if (hasFP(MF)) { in emitPrologue() 524 if (hasBP(MF)) { in emitPrologue() 663 if (hasBP(MF)) { in getFrameIndexReference() 726 if (hasFP(MF)) { in getFrameIndexReference() 792 if (hasFP(MF)) { in determineCalleeSaves() 797 if (hasBP(MF)) in determineCalleeSaves() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMBaseRegisterInfo.cpp | 204 if (TFI->hasFP(MF)) in getReservedRegs() 206 if (hasBasePointer(MF)) in getReservedRegs() 241 if (TFI->hasFP(MF)) in isInlineAsmReadOnlyReg() 243 if (hasBasePointer(MF)) in isInlineAsmReadOnlyReg() 411 if (hasStackRealignment(MF) && !TFI->hasReservedCallFrame(MF)) in hasBasePointer() 465 if (MF.getTarget().Options.DisableFramePointerElim(MF) && MFI.adjustsStack()) in cannotEliminateFrame() 468 hasStackRealignment(MF); in cannotEliminateFrame() 476 if (TFI->hasFP(MF)) in getFrameRegister() 629 if (TFI->hasFP(MF) && in needsFrameBaseReg() 631 canRealignStack(MF))) { in needsFrameBaseReg() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | SILowerSGPRSpills.cpp | 173 SaveBlocks.push_back(&MF.front()); in calculateSaveRestoreBlocks() 174 for (MachineBasicBlock &MBB : MF) { in calculateSaveRestoreBlocks() 194 const Function &F = MF.getFunction(); in spillCalleeSavedRegs() 232 updateLiveness(MF, CSI); in spillCalleeSavedRegs() 256 TRI->findUnusedRegister(MF.getRegInfo(), &AMDGPU::VGPR_32RegClass, MF); in lowerShiftReservedVGPR() 278 for (MachineBasicBlock &MBB : MF) { in lowerShiftReservedVGPR() 299 calculateSaveRestoreBlocks(MF); in runOnMachineFunction() 312 MRI.freezeReservedRegs(MF); in runOnMachineFunction() 331 lowerShiftReservedVGPR(MF, ST); in runOnMachineFunction() 336 for (MachineBasicBlock &MBB : MF) { in runOnMachineFunction() [all …]
|
| H A D | SIFrameLowering.cpp | 340 MachineFunction &MF) const { in getEntryFunctionReservedScratchRsrcReg() 497 if (hasFP(MF)) { in emitEntryFunctionPrologue() 935 } else if ((HasFP = hasFP(MF))) { in emitPrologue() 1137 MachineFunction &MF, in processFunctionBeforeFrameFinalized() argument 1266 if (WillHaveFP || hasFP(MF)) { in determineCalleeSaves() 1273 if (TRI->hasBasePointer(MF)) { in determineCalleeSaves() 1310 if (WillHaveFP || hasFP(MF)) in determineCalleeSavesSGPR() 1353 MachineFunction &MF, in eliminateCallFramePseudoInstr() argument 1367 if (!hasReservedCallFrame(MF)) { in eliminateCallFramePseudoInstr() 1417 MF) || in hasFP() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Sparc/ |
| H A D | SparcFrameLowering.cpp | 90 MachineFrameInfo &MFI = MF.getFrameInfo(); in emitPrologue() 167 CFIIndex = MF.addFrameInst( in emitPrologue() 201 if (!hasReservedCallFrame(MF)) { in eliminateCallFramePseudoInstr() 228 MachineFrameInfo &MFI = MF.getFrameInfo(); in emitEpilogue() 249 return MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP() 291 FrameReg = RegInfo->getFrameRegister(MF); in getFrameIndexReference() 316 MachineRegisterInfo &MRI = MF.getRegInfo(); in isLeafProc() 346 for (MachineFunction::iterator MBB = MF.begin(), E = MF.end(); in remapRegsForLeafProc() 364 MF.verify(0, "After LeafProc Remapping"); in remapRegsForLeafProc() 372 if (!DisableLeafProc && isLeafProc(MF)) { in determineCalleeSaves() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsMachineFunction.cpp | 50 MF.getRegInfo().createVirtualRegister(&getGlobalBaseRegClass(MF)); in getGlobalBaseReg() 56 getGlobalBaseReg(MF); in getGlobalBaseRegForGlobalISel() 57 initGlobalBaseReg(MF); in getGlobalBaseRegForGlobalISel() 66 MachineBasicBlock &MBB = MF.front(); in initGlobalBaseReg() 68 MachineRegisterInfo &RegInfo = MF.getRegInfo(); in initGlobalBaseReg() 80 MF.getRegInfo().addLiveIn(Mips::T9_64); in initGlobalBaseReg() 86 const GlobalValue *FName = &MF.getFunction(); in initGlobalBaseReg() 96 if (!MF.getTarget().isPositionIndependent()) { in initGlobalBaseReg() 108 MF.getRegInfo().addLiveIn(Mips::T9); in initGlobalBaseReg() 115 const GlobalValue *FName = &MF.getFunction(); in initGlobalBaseReg() [all …]
|
| H A D | MipsRegisterInfo.cpp | 76 return 28 - TFI->hasFP(MF); in getRegPressureLimit() 95 const Function &F = MF->getFunction(); in getCalleeSavedRegs() 150 getReservedRegs(const MachineFunction &MF) const { in getReservedRegs() 191 if (Subtarget.getFrameLowering()->hasFP(MF)) { in getReservedRegs() 201 if (hasStackRealignment(MF) && MF.getFrameInfo().hasVarSizedObjects()) { in getReservedRegs() 254 MachineFunction &MF = *MI.getParent()->getParent(); in eliminateFrameIndex() local 275 getFrameRegister(const MachineFunction &MF) const { in getFrameRegister() 282 return TFI->hasFP(MF) ? Mips::S0 : Mips::SP; in getFrameRegister() 296 if (!TargetRegisterInfo::canRealignStack(MF)) in canRealignStack() 309 if (!MF.getRegInfo().canReserveReg(FP)) in canRealignStack() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/M68k/ |
| H A D | M68kRegisterInfo.cpp | 145 if (TFI->hasFP(MF)) { in getReservedRegs() 150 if (hasBasePointer(MF)) { in getReservedRegs() 183 if (hasBasePointer(MF)) in eliminateFrameIndex() 185 else if (hasStackRealignment(MF)) in eliminateFrameIndex() 213 const MachineFunction &MF) const { in requiresRegisterScavenging() 218 const MachineFunction &MF) const { in trackLivenessAfterRegAlloc() 227 const MachineFrameInfo &MFI = MF.getFrameInfo(); in hasBasePointer() 237 bool CantUseFP = hasStackRealignment(MF); in hasBasePointer() 242 if (!TargetRegisterInfo::canRealignStack(MF)) in canRealignStack() 245 const MachineFrameInfo &MFI = MF.getFrameInfo(); in canRealignStack() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZFrameLowering.cpp | 114 if (usePackedStack(MF)) in assignCalleeSavedSpillSlots() 140 bool HasFP = hasFP(MF); in determineCalleeSaves() 153 if (!MF.getLandingPads().empty()) { in determineCalleeSaves() 268 bool HasFP = hasFP(MF); in restoreCalleeSavedRegisters() 323 if (!usePackedStack(MF) || BackChain) in processFunctionBeforeFrameFinalized() 407 unsigned CFIIndex = MF.addFrameInst( in buildDefCFAReg() 425 bool HasFP = hasFP(MF); in emitPrologue() 497 MF.getSubtarget().getTargetLowering()->hasInlineStackProbe(MF)) { in emitPrologue() 533 for (auto I = std::next(MF.begin()), E = MF.end(); I != E; ++I) in emitPrologue() 723 return (MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP() [all …]
|