Home
last modified time | relevance | path

Searched refs:MF (Results 1 – 25 of 1114) sorted by relevance

12345678910>>...45

/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFrameLowering.cpp158 return needsSPForLocalFrame(MF) || needsPrologForEH(MF); in needsSP()
249 assert(!I->getOperand(0).getImm() && (hasFP(MF) || hasBP(MF)) && in eliminateCallFramePseudoInstr()
256 writeSPToGlobal(getSPReg(MF), MF, MBB, I, DL); in eliminateCallFramePseudoInstr()
268 if (!needsSP(MF)) in emitPrologue()
306 BuildMI(MBB, InsertPt, DL, TII->get(getOpcSub(MF)), getSPReg(MF)) in emitPrologue()
315 BuildMI(MBB, InsertPt, DL, TII->get(getOpcAnd(MF)), getSPReg(MF)) in emitPrologue()
319 if (hasFP(MF)) { in emitPrologue()
327 writeSPToGlobal(getSPReg(MF), MF, MBB, InsertPt, DL); in emitPrologue()
334 if (!needsSP(MF) || !needsSPWriteback(MF)) in emitEpilogue()
348 unsigned SPFPReg = hasFP(MF) ? getFPReg(MF) : getSPReg(MF); in emitEpilogue()
[all …]
H A DWebAssemblyFrameLowering.h44 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 DWebAssemblyLateEHPrepare.cpp84 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/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetFrameLoweringImpl.cpp40 return MF.needsFrameMoves() && in enableCFIFixup()
57 FrameReg = RI->getFrameRegister(MF); in getFrameIndexReference()
65 const MachineFunction &MF) const { in needsFrameIndexResolution()
66 return MF.getFrameInfo().hasStackObjects(); in needsFrameIndexResolution()
94 if (MF.getTarget().Options.EnableIPRA && in determineCalleeSaves()
95 isSafeForNoCSROpt(MF.getFunction()) && in determineCalleeSaves()
120 enableCalleeSaveSkip(MF)) in determineCalleeSaves()
124 bool CallsUnwindInit = MF.callsUnwindInit(); in determineCalleeSaves()
134 const MachineFunction &MF) const { in allocateScavengingFrameIndexesNearIncomingSP()
135 if (!hasFP(MF)) in allocateScavengingFrameIndexesNearIncomingSP()
[all …]
H A DBasicBlockSections.cpp140 updateBranches(MachineFunction &MF, in INITIALIZE_PASS_DEPENDENCY()
144 for (auto &MBB : MF) { in INITIALIZE_PASS_DEPENDENCY()
182 assignSections(MachineFunction &MF, in assignSections() argument
190 for (auto &MBB : MF) { in assignSections()
226 for (auto &MBB : MF) in assignSections()
235 for (auto &MBB : MF) in sortBasicBlocksAndUpdateBranches()
239 MF.sort(MBBCmp); in sortBasicBlocksAndUpdateBranches()
244 MF.assignBeginEndSections(); in sortBasicBlocksAndUpdateBranches()
257 for (auto &MBB : MF) { in avoidZeroOffsetLandingPad()
299 MF.RenumberBlocks(); in runOnMachineFunction()
[all …]
H A DPrologEpilogInserter.cpp234 calculateCallFrameInfo(MF); in runOnMachineFunction()
238 calculateSaveRestoreBlocks(MF); in runOnMachineFunction()
247 spillCalleeSavedRegs(MF); in runOnMachineFunction()
254 calculateFrameObjectOffsets(MF); in runOnMachineFunction()
262 insertPrologEpilogCode(MF); in runOnMachineFunction()
283 replaceFrameIndices(MF); in runOnMachineFunction()
700 updateLiveness(MF); in spillCalleeSavedRegs()
1184 insertZeroCallUsedRegs(MF); in insertPrologEpilogCode()
1193 if (MF.shouldSplitStack()) { in insertPrologEpilogCode()
1355 for (auto &MBB : MF) { in replaceFrameIndicesBackward()
[all …]
/freebsd/tools/tools/ath/athalq/
H A Dar9300_ds.c86 MF(txs.status8, AR_tx_done), in ar9300_decode_txstatus()
206 MF(txc.ds_ctl11, AR_veol), in ar9300_decode_txdesc()
222 MF(txc.ds_ctl12, AR_no_ack), in ar9300_decode_txdesc()
274 MF(txc.ds_ctl17, AR_ldpc)); in ar9300_decode_txdesc()
279 MF(txc.ds_ctl18, AR_gi0), in ar9300_decode_txdesc()
280 MF(txc.ds_ctl18, AR_2040_0), in ar9300_decode_txdesc()
284 MF(txc.ds_ctl18, AR_gi1), in ar9300_decode_txdesc()
289 MF(txc.ds_ctl18, AR_gi2), in ar9300_decode_txdesc()
294 MF(txc.ds_ctl18, AR_gi3), in ar9300_decode_txdesc()
371 MF(rxs.status4, AR_gi), in ar9300_decode_rxstatus()
[all …]
H A Dar5416_ds.c144 MF(txc.ds_ctl0, AR_VEOL), in ar5416_decode_txdesc()
155 MF(txc.ds_ctl1, AR_TxMore), in ar5416_decode_txdesc()
160 MF(txc.ds_ctl1, AR_NoAck), in ar5416_decode_txdesc()
167 MF(txc.ds_ctl1, AR_IsAggr), in ar5416_decode_txdesc()
209 MF(txc.ds_ctl7, AR_GI0), in ar5416_decode_txdesc()
210 MF(txc.ds_ctl7, AR_2040_0), in ar5416_decode_txdesc()
211 MF(txc.ds_ctl7, AR_STBC0)); in ar5416_decode_txdesc()
214 MF(txc.ds_ctl7, AR_GI1), in ar5416_decode_txdesc()
215 MF(txc.ds_ctl7, AR_2040_1), in ar5416_decode_txdesc()
219 MF(txc.ds_ctl7, AR_GI2), in ar5416_decode_txdesc()
[all …]
H A Dar5416_ds_tdma.c147 MF(txc.ds_ctl0, AR_VEOL), in ar5416_decode_txdesc()
158 MF(txc.ds_ctl1, AR_TxMore), in ar5416_decode_txdesc()
163 MF(txc.ds_ctl1, AR_NoAck), in ar5416_decode_txdesc()
170 MF(txc.ds_ctl1, AR_IsAggr), in ar5416_decode_txdesc()
215 MF(txc.ds_ctl7, AR_GI0), in ar5416_decode_txdesc()
216 MF(txc.ds_ctl7, AR_2040_0), in ar5416_decode_txdesc()
217 MF(txc.ds_ctl7, AR_STBC0)); in ar5416_decode_txdesc()
220 MF(txc.ds_ctl7, AR_GI1), in ar5416_decode_txdesc()
221 MF(txc.ds_ctl7, AR_2040_1), in ar5416_decode_txdesc()
225 MF(txc.ds_ctl7, AR_GI2), in ar5416_decode_txdesc()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64RegisterInfo.cpp87 return getDarwinCalleeSavedRegs(MF); in getCalleeSavedRegs()
184 const MachineFunction *MF) const { in getCalleeSavedRegsViaCopy()
193 MachineFunction &MF) const { in UpdateCustomCalleeSavedRegs()
433 if (hasBasePointer(MF)) in getStrictlyReservedRegs()
480 return getReservedRegs(MF)[Reg]; in isReservedReg()
544 if (hasStackRealignment(MF)) in hasBasePointer()
673 return TFI.hasFP(MF) && !hasStackRealignment(MF) && !AFI->getStackSizeSVE(); in useFPForScavengingIndex()
684 if (MF.getTarget().Options.DisableFramePointerElim(MF) && MFI.adjustsStack()) in cannotEliminateFrame()
1008 const MachineFunction &MF) const { in getLocalAddressRegister()
1012 else if (hasStackRealignment(MF)) in getLocalAddressRegister()
[all …]
H A DAArch64RegisterInfo.h39 bool isAnyArgRegReserved(const MachineFunction &MF) const;
42 void UpdateCustomCalleeSavedRegs(MachineFunction &MF) const;
43 void UpdateCustomCallPreservedMask(MachineFunction &MF,
50 getCalleeSavedRegsViaCopy(const MachineFunction *MF) const;
51 const uint32_t *getCallPreservedMask(const MachineFunction &MF,
98 explainReservedReg(const MachineFunction &MF,
100 bool isAsmClobberable(const MachineFunction &MF,
103 getPointerRegClass(const MachineFunction &MF,
122 bool cannotEliminateFrame(const MachineFunction &MF) const;
125 bool hasBasePointer(const MachineFunction &MF) const;
[all …]
H A DAArch64FrameLowering.h38 bool enableCFIFixup(MachineFunction &MF) const override;
63 bool canUseRedZone(const MachineFunction &MF) const;
65 bool hasFP(const MachineFunction &MF) const override;
68 bool assignCalleeSavedSpillSlots(MachineFunction &MF,
85 void processFunctionBeforeFrameFinalized(MachineFunction &MF,
122 orderFrameObjects(const MachineFunction &MF,
130 bool homogeneousPrologEpilog(MachineFunction &MF,
134 bool producePairRegisters(MachineFunction &MF) const;
136 bool shouldCombineCSRLocalStackBump(MachineFunction &MF,
140 int64_t assignSVEStackObjectOffsets(MachineFrameInfo &MF,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVEFrameLowering.cpp163 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/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FrameLowering.h66 void inlineStackProbe(MachineFunction &MF,
81 void adjustForSegmentedStacks(MachineFunction &MF,
84 void adjustForHiPEPrologue(MachineFunction &MF,
91 assignCalleeSavedSpillSlots(MachineFunction &MF,
106 bool hasFP(const MachineFunction &MF) const override;
175 void orderFrameObjects(const MachineFunction &MF,
200 bool has128ByteRedZone(const MachineFunction& MF) const;
203 bool isWin64Prologue(const MachineFunction &MF) const;
205 bool needsDwarfCFI(const MachineFunction &MF) const;
211 MachineFunction &MF, MachineBasicBlock &MBB,
[all …]
H A DX86IndirectThunks.cpp73 void populateThunk(MachineFunction &MF);
87 void populateThunk(MachineFunction &MF) { in populateThunk()
88 assert (MF.size() == 1); in populateThunk()
89 MachineBasicBlock *Entry = &MF.front(); in populateThunk()
103 MF.front().addLiveIn(X86::R11); in populateThunk()
197 if (MF.getName() == EAXRetpolineName) in populateThunk()
210 assert (MF.size() == 1); in populateThunk()
211 MachineBasicBlock *Entry = &MF.front(); in populateThunk()
219 MF.push_back(CaptureSpec); in populateThunk()
220 MF.push_back(CallTarget); in populateThunk()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetFrameLowering.h151 const MachineFunction &MF) const;
164 return assignCalleeSavedSpillSlots(MF, TRI, CSI); in assignCalleeSavedSpillSlots()
168 assignCalleeSavedSpillSlots(MachineFunction &MF, in assignCalleeSavedSpillSlots() argument
214 virtual void emitPrologue(MachineFunction &MF,
216 virtual void emitEpilogue(MachineFunction &MF,
238 virtual void inlineStackProbe(MachineFunction &MF, in inlineStackProbe() argument
296 return !hasFP(MF); in hasReservedCallFrame()
307 return hasReservedCallFrame(MF) || hasFP(MF); in canSimplifyCallFramePseudos()
332 return getFrameIndexReference(MF, FI, FrameReg); in getFrameIndexReferencePreferSP()
343 return getFrameIndexReference(MF, FI, FrameReg); in getNonLocalFrameIndexReference()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchFrameLowering.cpp38 return MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP()
125 for (auto &MBB : MF) in estimateFunctionSizeInBytes()
134 for (auto &MBB : MF) in needScavSlotForCFR()
199 determineFrameLayout(MF); in emitPrologue()
246 if (hasFP(MF)) { in emitPrologue()
262 if (hasFP(MF)) { in emitPrologue()
291 if (hasFP(MF)) { in emitPrologue()
307 if (hasBP(MF)) { in emitPrologue()
403 if (hasFP(MF)) { in determineCalleeSaves()
408 if (hasBP(MF)) in determineCalleeSaves()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVFrameLowering.cpp303 return MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP()
344 if (RVFI->getRVVStackSize() && (!hasFP(MF) || TRI->hasStackRealignment(MF))) { in determineFrameLayout()
606 if (hasFP(MF)) { in emitPrologue()
637 if (!hasFP(MF)) { in emitPrologue()
650 if (!hasFP(MF)) { in emitPrologue()
660 if (hasFP(MF)) { in emitPrologue()
688 if (hasBP(MF)) { in emitPrologue()
877 if (hasBP(MF)) { in getFrameIndexReference()
982 if (hasFP(MF)) { in determineCalleeSaves()
987 if (hasBP(MF)) in determineCalleeSaves()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMBaseRegisterInfo.cpp210 if (TFI->hasFP(MF)) in getReservedRegs()
212 if (hasBasePointer(MF)) in getReservedRegs()
247 if (TFI->isFPReserved(MF)) in isInlineAsmReadOnlyReg()
249 if (hasBasePointer(MF)) in isInlineAsmReadOnlyReg()
424 if (hasStackRealignment(MF) && !TFI->hasReservedCallFrame(MF)) in hasBasePointer()
478 if (MF.getTarget().Options.DisableFramePointerElim(MF) && MFI.adjustsStack()) in cannotEliminateFrame()
481 hasStackRealignment(MF); in cannotEliminateFrame()
489 if (TFI->hasFP(MF)) in getFrameRegister()
644 if (TFI->hasFP(MF) && in needsFrameBaseReg()
646 canRealignStack(MF))) { in needsFrameBaseReg()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZFrameLowering.h32 const MachineFunction &MF) const override { in allocateScavengingFrameIndexesNearIncomingSP() argument
57 assignCalleeSavedSpillSlots(MachineFunction &MF,
75 void inlineStackProbe(MachineFunction &MF,
77 bool hasFP(const MachineFunction &MF) const override;
81 orderFrameObjects(const MachineFunction &MF,
89 bool usePackedStack(MachineFunction &MF) const;
92 unsigned getBackchainOffset(MachineFunction &MF) const { in getBackchainOffset() argument
108 assignCalleeSavedSpillSlots(MachineFunction &MF,
130 void inlineStackProbe(MachineFunction &MF,
133 bool hasFP(const MachineFunction &MF) const override;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsMachineFunction.cpp40 auto &STI = MF.getSubtarget<MipsSubtarget>(); in getGlobalBaseRegClass()
58 MF.getRegInfo().createVirtualRegister(&getGlobalBaseRegClass(MF)); in getGlobalBaseReg()
64 getGlobalBaseReg(MF); in getGlobalBaseRegForGlobalISel()
65 initGlobalBaseReg(MF); in getGlobalBaseRegForGlobalISel()
74 MachineBasicBlock &MBB = MF.front(); in initGlobalBaseReg()
76 MachineRegisterInfo &RegInfo = MF.getRegInfo(); in initGlobalBaseReg()
88 MF.getRegInfo().addLiveIn(Mips::T9_64); in initGlobalBaseReg()
94 const GlobalValue *FName = &MF.getFunction(); in initGlobalBaseReg()
104 if (!MF.getTarget().isPositionIndependent()) { in initGlobalBaseReg()
116 MF.getRegInfo().addLiveIn(Mips::T9); in initGlobalBaseReg()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcFrameLowering.cpp90 MachineFrameInfo &MFI = MF.getFrameInfo(); in emitPrologue()
167 CFIIndex = MF.addFrameInst( in emitPrologue()
201 if (!hasReservedCallFrame(MF)) { in eliminateCallFramePseudoInstr()
229 MachineFrameInfo &MFI = MF.getFrameInfo(); in emitEpilogue()
259 return MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP()
301 FrameReg = RegInfo->getFrameRegister(MF); in getFrameIndexReference()
326 MachineRegisterInfo &MRI = MF.getRegInfo(); in isLeafProc()
357 for (MachineBasicBlock &MBB : MF) { in remapRegsForLeafProc()
374 MF.verify(0, "After LeafProc Remapping"); in remapRegsForLeafProc()
382 if (!DisableLeafProc && isLeafProc(MF)) { in determineCalleeSaves()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXFrameLowering.cpp32 void NVPTXFrameLowering::emitPrologue(MachineFunction &MF, in emitPrologue() argument
34 if (MF.getFrameInfo().hasStackObjects()) { in emitPrologue()
37 MachineRegisterInfo &MR = MF.getRegInfo(); in emitPrologue()
56 if (!MR.use_empty(NRI->getFrameRegister(MF))) { in emitPrologue()
60 NRI->getFrameRegister(MF)) in emitPrologue()
61 .addReg(NRI->getFrameLocalRegister(MF)); in emitPrologue()
65 NRI->getFrameLocalRegister(MF)) in emitPrologue()
66 .addImm(MF.getFunctionNumber()); in emitPrologue()
73 const MachineFrameInfo &MFI = MF.getFrameInfo(); in getFrameIndexReference()
79 void NVPTXFrameLowering::emitEpilogue(MachineFunction &MF, in emitEpilogue() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIFrameLowering.cpp227 MachineFunction &MF; member in llvm::PrologEpilogSGPRSpillBuilder
345 ST(MF.getSubtarget<GCNSubtarget>()), MFI(MF.getFrameInfo()), in PrologEpilogSGPRSpillBuilder()
539 MachineFunction &MF) const { in getEntryFunctionReservedScratchRsrcReg()
694 if (hasFP(MF)) { in emitEntryFunctionPrologue()
1115 if (!HasFP && !hasFP(MF)) { in emitPrologue()
1328 MachineFunction &MF, in processFunctionBeforeFrameFinalized() argument
1537 if (WillHaveFP || hasFP(MF)) { in determinePrologEpilogSGPRSaves()
1666 if (WillHaveFP || hasFP(MF)) in determineCalleeSavesSGPR()
1753 MachineFunction &MF, in eliminateCallFramePseudoInstr() argument
1819 MF) || in hasFP()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kRegisterInfo.cpp146 if (TFI->hasFP(MF)) { in getReservedRegs()
151 if (hasBasePointer(MF)) { in getReservedRegs()
184 if (hasBasePointer(MF)) in eliminateFrameIndex()
186 else if (hasStackRealignment(MF)) in eliminateFrameIndex()
215 const MachineFunction &MF) const { in requiresRegisterScavenging()
220 const MachineFunction &MF) const { in trackLivenessAfterRegAlloc()
229 const MachineFrameInfo &MFI = MF.getFrameInfo(); in hasBasePointer()
239 bool CantUseFP = hasStackRealignment(MF); in hasBasePointer()
244 if (!TargetRegisterInfo::canRealignStack(MF)) in canRealignStack()
247 const MachineFrameInfo &MFI = MF.getFrameInfo(); in canRealignStack()
[all …]

12345678910>>...45