Home
last modified time | relevance | path

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

12345678910>>...35

/freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFrameLowering.cpp96 MF.getFunction().hasPersonalityFn() && MF.getFrameInfo().hasCalls(); in needsPrologForEH()
103 return needsSPForLocalFrame(MF) || needsPrologForEH(MF); in needsSP()
113 assert(needsSP(MF)); in needsSPWriteback()
142 assert(!I->getOperand(0).getImm() && (hasFP(MF) || hasBP(MF)) && in eliminateCallFramePseudoInstr()
146 needsSPWriteback(MF)) { in eliminateCallFramePseudoInstr()
160 if (!needsSP(MF)) in emitPrologue()
165 auto &MRI = MF.getRegInfo(); in emitPrologue()
183 bool HasBP = hasBP(MF); in emitPrologue()
213 if (hasFP(MF)) { in emitPrologue()
228 if (!needsSP(MF) || !needsSPWriteback(MF)) in emitEpilogue()
[all …]
H A DWebAssemblyLateEHPrepare.cpp80 if (MBB == &MF->front()) in getMatchingEHPad()
116 Changed |= addRethrows(MF); in runOnMachineFunction()
129 MachineFunction &MF) { in removeUnnecessaryUnreachables() argument
131 for (auto &MBB : MF) { in removeUnnecessaryUnreachables()
158 for (auto &MBB : MF) { in replaceFuncletReturns()
208 for (auto &MBB : MF) in hoistCatches()
229 for (auto &MBB : MF) { in addCatchAlls()
249 for (auto &MBB : MF) in addRethrows()
305 for (auto &MBB : MF) in ensureSingleBBTermPads()
358 for (auto &MBB : MF) in mergeTerminatePads()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AArch64/
H A DAArch64RegisterInfo.cpp72 const MachineFunction *MF) const { in getCalleeSavedRegsViaCopy()
81 MachineFunction &MF) const { in UpdateCustomCalleeSavedRegs()
203 if (hasBasePointer(MF)) in getReservedRegs()
216 return getReservedRegs(MF)[Reg]; in isReservedReg()
225 [this, &MF](MCPhysReg r){return isReservedReg(MF, r);}); in isAnyArgRegReserved()
229 const MachineFunction &MF) const { in emitReservedArgRegCallError()
237 return !isReservedReg(MF, PhysReg); in isAsmClobberable()
271 if (needsStackRealignment(MF)) in hasBasePointer()
293 const MachineFunction &MF) const { in requiresRegisterScavenging()
310 return TFI.hasFP(MF); in useFPForScavengingIndex()
[all …]
H A DAArch64FrameLowering.cpp210 if (MF.hasEHFunclets()) in hasFP()
213 if (MFI.hasCalls() && MF.getTarget().Options.DisableFramePointerElim(MF)) in hasFP()
232 if (MF.hasLocalEscape()) in hasFP()
361 if (&MF->front() == MBB) in findScratchNonCalleeSaveRegister()
442 if (canUseRedZone(MF)) in shouldCombineCSRLocalStackBump()
808 bool HasFP = hasFP(MF); in emitPrologue()
1377 if (!hasFP(MF)) { in emitEpilogue()
1488 UseFP = hasFP(MF); in resolveFrameIndexReference()
1495 } else if (hasFP(MF) && !RegInfo->needsStackRealignment(MF)) { in resolveFrameIndexReference()
1520 } else if (MF.hasEHFunclets() && !RegInfo->hasBasePointer(MF)) { in resolveFrameIndexReference()
[all …]
H A DAArch64RegisterInfo.h38 bool isReservedReg(const MachineFunction &MF, unsigned Reg) const;
39 bool isAnyArgRegReserved(const MachineFunction &MF) const;
40 void emitReservedArgRegCallError(const MachineFunction &MF) const;
42 void UpdateCustomCalleeSavedRegs(MachineFunction &MF) const;
43 void UpdateCustomCallPreservedMask(MachineFunction &MF,
49 getCalleeSavedRegsViaCopy(const MachineFunction *MF) const;
50 const uint32_t *getCallPreservedMask(const MachineFunction &MF,
86 bool isAsmClobberable(const MachineFunction &MF,
90 getPointerRegClass(const MachineFunction &MF,
110 bool cannotEliminateFrame(const MachineFunction &MF) const;
[all …]
H A DAArch64FrameLowering.h41 int getFrameIndexReference(const MachineFunction &MF, int FI,
43 int resolveFrameIndexReference(const MachineFunction &MF, int FI,
57 bool canUseRedZone(const MachineFunction &MF) const;
59 bool hasFP(const MachineFunction &MF) const override;
60 bool hasReservedCallFrame(const MachineFunction &MF) const override;
62 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
66 bool enableShrinkWrapping(const MachineFunction &MF) const override { in enableShrinkWrapping() argument
72 void processFunctionBeforeFrameFinalized(MachineFunction &MF,
77 unsigned getWinEHFuncletFrameSize(const MachineFunction &MF) const;
79 int getFrameIndexReferencePreferSP(const MachineFunction &MF, int FI,
[all …]
/freebsd-12.1/tools/tools/ath/athalq/
H A Dar9300_ds.c88 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 Dar5416_ds.c146 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 Dar5416_ds_tdma.c149 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 …]
H A Dar5212_ds.c38 #define MF(_v, _f) ( !! ((_v) & (_f))) macro
52 MF(txs.u.tx.status1, AR_Done), in ar5212_decode_txstatus()
70 MF(txs.u.tx.status1, AR_Done), in ar5212_decode_txstatus()
103 MF(txc.ds_ctl0, AR_VEOL), in ar5212_decode_txdesc()
107 MF(txc.ds_ctl0, AR_TxInterReq), in ar5212_decode_txdesc()
109 MF(txc.ds_ctl0, AR_CTSEnable)); in ar5212_decode_txdesc()
115 MF(txc.ds_ctl1, AR_More), in ar5212_decode_txdesc()
119 MF(txc.ds_ctl1, AR_NoAck), in ar5212_decode_txdesc()
158 MF(rxs.ds_rxstatus1, AR_Done), in ar5212_decode_rxstatus()
170 MF(rxs.ds_rxstatus0, AR_More), in ar5212_decode_rxstatus()
[all …]
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DTargetFrameLoweringImpl.cpp46 const MachineFrameInfo &MFI = MF.getFrameInfo(); in getFrameIndexReference()
52 FrameReg = RI->getFrameRegister(MF); in getFrameIndexReference()
59 const MachineFunction &MF) const { in needsFrameIndexResolution()
60 return MF.getFrameInfo().hasStackObjects(); in needsFrameIndexResolution()
75 if (MF.getTarget().Options.EnableIPRA && isSafeForNoCSROpt(MF.getFunction())) in determineCalleeSaves()
86 if (MF.getFunction().hasFnAttribute(Attribute::Naked)) in determineCalleeSaves()
99 enableCalleeSaveSkip(MF)) in determineCalleeSaves()
103 bool CallsUnwindInit = MF.callsUnwindInit(); in determineCalleeSaves()
104 const MachineRegisterInfo &MRI = MF.getRegInfo(); in determineCalleeSaves()
113 const MachineFunction &MF) const { in getStackAlignmentSkew()
[all …]
H A DPrologEpilogInserter.cpp189 calculateCallFrameInfo(MF); in runOnMachineFunction()
193 calculateSaveRestoreBlocks(MF); in runOnMachineFunction()
197 spillCalleeSavedRegs(MF); in runOnMachineFunction()
204 calculateFrameObjectOffsets(MF); in runOnMachineFunction()
212 insertPrologEpilogCode(MF); in runOnMachineFunction()
217 replaceFrameIndices(MF); in runOnMachineFunction()
268 for (MachineFunction::iterator BB = MF.begin(), E = MF.end(); BB != E; ++BB) in calculateCallFrameInfo()
565 updateLiveness(MF); in spillCalleeSavedRegs()
1022 if (MF.shouldSplitStack()) { in insertPrologEpilogCode()
1053 for (auto DFI = df_ext_begin(&MF, Reachable), DFE = df_ext_end(&MF, Reachable); in replaceFrameIndices()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/RISCV/
H A DRISCVFrameLowering.cpp29 return MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP()
36 MachineFrameInfo &MFI = MF.getFrameInfo(); in determineFrameLayout()
98 MachineFrameInfo &MFI = MF.getFrameInfo(); in emitPrologue()
110 determineFrameLayout(MF); in emitPrologue()
133 if (hasFP(MF)) in emitPrologue()
142 MachineFrameInfo &MFI = MF.getFrameInfo(); in emitEpilogue()
195 FrameReg = RI->getFrameRegister(MF); in getFrameIndexReference()
196 if (hasFP(MF)) in getFrameIndexReference()
210 if (hasFP(MF)) { in determineCalleeSaves()
218 MachineFrameInfo &MFI = MF.getFrameInfo(); in determineCalleeSaves()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DARMBaseRegisterInfo.cpp74 const Function &F = MF->getFunction(); in getCalleeSavedRegs()
112 const MachineFunction *MF) const { in getCalleeSavedRegsViaCopy()
189 if (TFI->hasFP(MF)) in getReservedRegs()
191 if (hasBasePointer(MF)) in getReservedRegs()
375 if (needsStackRealignment(MF) && !TFI->hasReservedCallFrame(MF)) in hasBasePointer()
412 if (TFI->hasReservedCallFrame(MF)) in canRealignStack()
422 if (MF.getTarget().Options.DisableFramePointerElim(MF) && MFI.adjustsStack()) in cannotEliminateFrame()
425 || needsStackRealignment(MF); in cannotEliminateFrame()
433 if (TFI->hasFP(MF)) in getFrameRegister()
592 if (TFI->hasFP(MF) && in needsFrameBaseReg()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/Sparc/
H A DSparcFrameLowering.cpp90 MachineFrameInfo &MFI = MF.getFrameInfo(); in emitPrologue()
174 CFIIndex = MF.addFrameInst( in emitPrologue()
207 if (!hasReservedCallFrame(MF)) { in eliminateCallFramePseudoInstr()
234 MachineFrameInfo &MFI = MF.getFrameInfo(); in emitEpilogue()
255 return MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP()
256 RegInfo->needsStackRealignment(MF) || in hasFP()
298 FrameReg = RegInfo->getFrameRegister(MF); in getFrameIndexReference()
353 for (MachineFunction::iterator MBB = MF.begin(), E = MF.end(); in remapRegsForLeafProc()
371 MF.verify(0, "After LeafProc Remapping"); in remapRegsForLeafProc()
379 if (!DisableLeafProc && isLeafProc(MF)) { in determineCalleeSaves()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/CodeGen/
H A DTargetFrameLowering.h121 assignCalleeSavedSpillSlots(MachineFunction &MF, in assignCalleeSavedSpillSlots() argument
167 virtual void emitPrologue(MachineFunction &MF,
169 virtual void emitEpilogue(MachineFunction &MF,
173 virtual void inlineStackProbe(MachineFunction &MF, in inlineStackProbe() argument
183 virtual void adjustForHiPEPrologue(MachineFunction &MF, in adjustForHiPEPrologue() argument
219 virtual bool hasFP(const MachineFunction &MF) const = 0;
227 return !hasFP(MF); in hasReservedCallFrame()
238 return hasReservedCallFrame(MF) || hasFP(MF); in canSimplifyCallFramePseudos()
262 return getFrameIndexReference(MF, FI, FrameReg); in getFrameIndexReferencePreferSP()
295 eliminateCallFramePseudoInstr(MachineFunction &MF, in eliminateCallFramePseudoInstr() argument
[all …]
H A DMachineInstrBuilder.h62 MachineFunction *MF = nullptr; variable
72 : MF(&F), MI(&*I) {} in MachineInstrBuilder()
190 MI->addMemOperand(*MF, MMO); in addMemOperand()
196 MI->setMemRefs(*MF, MMOs); in setMemRefs()
201 MI->cloneMemRefs(*MF, OtherMI); in cloneMemRefs()
212 MI->addOperand(*MF, MO); in add()
218 MI->addOperand(*MF, MO); in add()
306 return MachineInstrBuilder(MF, MF.CreateMachineInstr(MCID, DL)); in BuildMI()
313 return MachineInstrBuilder(MF, MF.CreateMachineInstr(MCID, DL)) in BuildMI()
372 return MachineInstrBuilder(MF, MI); in BuildMI()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/X86/
H A DX86FrameLowering.h54 void emitStackProbe(MachineFunction &MF, MachineBasicBlock &MBB,
59 void inlineStackProbe(MachineFunction &MF,
71 void adjustForSegmentedStacks(MachineFunction &MF,
74 void adjustForHiPEPrologue(MachineFunction &MF,
81 assignCalleeSavedSpillSlots(MachineFunction &MF,
95 bool hasFP(const MachineFunction &MF) const override;
100 int getFrameIndexReference(const MachineFunction &MF, int FI,
103 int getFrameIndexReferenceSP(const MachineFunction &MF,
115 void processFunctionBeforeFrameFinalized(MachineFunction &MF,
131 bool canUseLEAForSPInEpilogue(const MachineFunction &MF) const;
[all …]
H A DX86RetpolineThunks.cpp96 TM = &MF.getTarget();; in runOnMachineFunction()
152 populateThunk(MF, X86::R11); in runOnMachineFunction()
182 populateThunk(MF, X86::EAX); in runOnMachineFunction()
184 populateThunk(MF, X86::ECX); in runOnMachineFunction()
186 populateThunk(MF, X86::EDX); in runOnMachineFunction()
188 populateThunk(MF, X86::EDI); in runOnMachineFunction()
227 MF.insert(MF.end(), EntryMBB); in createThunkFunction()
247 while (MF.size() > 1) in populateThunk()
248 MF.erase(std::next(MF.begin())); in populateThunk()
253 MF.push_back(CaptureSpec); in populateThunk()
[all …]
H A DX86FrameLowering.cpp64 (hasFP(MF) && !TRI->needsStackRealignment(MF)) || in canSimplifyCallFramePseudos()
86 return (MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP()
91 MF.callsUnwindInit() || MF.hasEHFunclets() || MF.callsEHReturn() || in hasFP()
151 if (MF->callsEHReturn()) in findDeadCallerSavedReg()
978 bool HasFP = hasFP(MF); in emitPrologue()
1415 MF, MF.getWinEHFuncInfo()->PSPSymFrameIdx); in emitPrologue()
1509 return !MF.getTarget().getMCAsmInfo()->usesWindowsCFI() || hasFP(MF); in canUseLEAForSPInEpilogue()
1962 if (hasFP(MF)) { in assignCalleeSavedSpillSlots()
2485 MF.verify(); in adjustForSegmentedStacks()
2657 MF.verify(); in adjustForHiPEPrologue()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DSIFrameLowering.cpp105 MachineFunction &MF) const { in getReservedPrivateSegmentBufferReg()
156 MachineFunction &MF) const { in getReservedPrivateSegmentWaveByteOffsetReg()
225 emitDebuggerPrologue(MF, MBB); in emitEntryFunctionPrologue()
240 const Function &F = MF.getFunction(); in emitEntryFunctionPrologue()
252 emitFlatScratchInit(ST, MF, MBB); in emitEntryFunctionPrologue()
408 MF.front().addLiveIn(GitPtrLo); in emitEntryFunctionScratchSetup()
552 bool NeedFP = hasFP(MF); in emitPrologue()
587 if (RoundedSize != 0 && hasSP(MF)) { in emitPrologue()
635 if (NumBytes != 0 && hasSP(MF)) { in emitEpilogue()
664 MachineFunction &MF, in processFunctionBeforeFrameFinalized() argument
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/Mips/
H A DMipsRegisterInfo.cpp77 return 28 - TFI->hasFP(MF); in getRegPressureLimit()
96 const Function &F = MF->getFunction(); in getCalleeSavedRegs()
151 getReservedRegs(const MachineFunction &MF) const { in getReservedRegs()
196 if (Subtarget.getFrameLowering()->hasFP(MF)) { in getReservedRegs()
206 if (needsStackRealignment(MF) && in getReservedRegs()
207 MF.getFrameInfo().hasVarSizedObjects()) { in getReservedRegs()
297 getFrameRegister(const MachineFunction &MF) const { in getFrameRegister()
304 return TFI->hasFP(MF) ? Mips::S0 : Mips::SP; in getFrameRegister()
318 if (!TargetRegisterInfo::canRealignStack(MF)) in canRealignStack()
331 if (!MF.getRegInfo().canReserveReg(FP)) in canRealignStack()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/MSP430/
H A DMSP430FrameLowering.cpp30 const MachineFrameInfo &MFI = MF.getFrameInfo(); in hasFP()
32 return (MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP()
38 return !MF.getFrameInfo().hasVarSizedObjects(); in hasReservedCallFrame()
44 MachineFrameInfo &MFI = MF.getFrameInfo(); in emitPrologue()
56 if (hasFP(MF)) { in emitPrologue()
75 for (MachineFunction::iterator I = std::next(MF.begin()), E = MF.end(); in emitPrologue()
130 if (hasFP(MF)) { in emitEpilogue()
191 MachineFunction &MF = *MBB.getParent(); in spillCalleeSavedRegisters() local
217 MachineFunction &MF = *MBB.getParent(); in restoreCalleeSavedRegisters() local
233 if (!hasReservedCallFrame(MF)) { in eliminateCallFramePseudoInstr()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/XCore/
H A DXCoreFrameLowering.cpp220 return MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP()
257 bool FP = hasFP(MF); in emitPrologue()
384 bool FP = hasFP(MF); in emitEpilogue()
546 MF.getFrameInfo().estimateStackSize(MF)) in determineCalleeSaves()
551 if (MF.callsUnwindInit() || MF.callsEHReturn()) { in determineCalleeSaves()
555 XFI->createEHSpillSlot(MF); in determineCalleeSaves()
564 XFI->createLRSpillSlot(MF); in determineCalleeSaves()
567 if (hasFP(MF)) in determineCalleeSaves()
570 XFI->createFPSpillSlot(MF); in determineCalleeSaves()
587 if (XFI->isLargeFrame(MF) || hasFP(MF)) in processFunctionBeforeFrameFinalized()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/PowerPC/
H A DPPCRegisterInfo.cpp295 if (TFI->needsFP(MF)) in getReservedRegs()
299 if (hasBasePointer(MF)) { in getReservedRegs()
358 unsigned FP = TFI->hasFP(MF) ? 1 : 0; in getRegPressureLimit()
427 MachineFunction &MF = *MBB.getParent(); in lowerDynamicAlloc() local
546 MachineFunction &MF = *MBB.getParent(); in lowerDynamicAreaOffset() local
576 MachineFunction &MF = *MBB.getParent(); in lowerCRSpilling() local
621 MachineFunction &MF = *MBB.getParent(); in lowerCRRestore() local
936 FrameIndex < 0 ? getBaseRegister(MF) : getFrameRegister(MF), false); in eliminateFrameIndex()
1030 if (!hasBasePointer(MF)) in getBaseRegister()
1031 return getFrameRegister(MF); in getBaseRegister()
[all …]

12345678910>>...35