Home
last modified time | relevance | path

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

12345678910>>...47

/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFrameLowering.cpp54 WebAssemblyFrameLowering::getLocalForStackObject(MachineFunction &MF, in getLocalForStackObject() argument
56 MachineFrameInfo &MFI = MF.getFrameInfo(); in getLocalForStackObject()
72 *MF.getSubtarget<WebAssemblySubtarget>().getTargetLowering(); in getLocalForStackObject()
73 WebAssemblyFunctionInfo *FuncInfo = MF.getInfo<WebAssemblyFunctionInfo>(); in getLocalForStackObject()
74 ComputeValueVTs(TLI, MF.getDataLayout(), AI->getAllocatedType(), ValueVTs); in getLocalForStackObject()
93 bool WebAssemblyFrameLowering::hasBP(const MachineFunction &MF) const { in hasBP()
95 MF.getSubtarget<WebAssemblySubtarget>().getRegisterInfo(); in hasBP()
96 return RegInfo->hasStackRealignment(MF); in hasBP()
101 bool WebAssemblyFrameLowering::hasFP(const MachineFunction &MF) const { in hasFP()
102 const MachineFrameInfo &MFI = MF in hasFP()
173 getSPReg(const MachineFunction & MF) getSPReg() argument
179 getFPReg(const MachineFunction & MF) getFPReg() argument
186 getOpcConst(const MachineFunction & MF) getOpcConst() argument
192 getOpcAdd(const MachineFunction & MF) getOpcAdd() argument
198 getOpcSub(const MachineFunction & MF) getOpcSub() argument
204 getOpcAnd(const MachineFunction & MF) getOpcAnd() argument
211 getOpcGlobGet(const MachineFunction & MF) getOpcGlobGet() argument
218 getOpcGlobSet(const MachineFunction & MF) getOpcGlobSet() argument
225 writeSPToGlobal(unsigned SrcReg,MachineFunction & MF,MachineBasicBlock & MBB,MachineBasicBlock::iterator & InsertStore,const DebugLoc & DL) const writeSPToGlobal() argument
239 eliminateCallFramePseudoInstr(MachineFunction & MF,MachineBasicBlock & MBB,MachineBasicBlock::iterator I) const eliminateCallFramePseudoInstr() argument
253 emitPrologue(MachineFunction & MF,MachineBasicBlock & MBB) const emitPrologue() argument
323 emitEpilogue(MachineFunction & MF,MachineBasicBlock & MBB) const emitEpilogue() argument
[all...]
H A DWebAssemblyLateEHPrepare.cpp35 bool runOnMachineFunction(MachineFunction &MF) override;
36 bool removeUnreachableEHPads(MachineFunction &MF);
37 void recordCatchRetBBs(MachineFunction &MF);
38 bool hoistCatches(MachineFunction &MF);
39 bool addCatchAlls(MachineFunction &MF);
40 bool replaceFuncletReturns(MachineFunction &MF);
41 bool removeUnnecessaryUnreachables(MachineFunction &MF);
42 bool restoreStackPointer(MachineFunction &MF);
69 MachineFunction *MF = MI->getParent()->getParent(); in getMatchingEHPad() local
84 if (MBB == &MF->front()) in getMatchingEHPad()
[all …]
H A DWebAssemblyFrameLowering.h37 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
41 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
42 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
44 bool hasFP(const MachineFunction &MF) const override;
45 bool hasReservedCallFrame(const MachineFunction &MF) const override;
47 DwarfFrameBase getDwarfFrameBase(const MachineFunction &MF) const override;
49 bool needsPrologForEH(const MachineFunction &MF) const;
52 void writeSPToGlobal(unsigned SrcReg, MachineFunction &MF,
59 static std::optional<unsigned> getLocalForStackObject(MachineFunction &MF,
62 static unsigned getSPReg(const MachineFunction &MF);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetFrameLoweringImpl.cpp32 bool TargetFrameLowering::enableCalleeSaveSkip(const MachineFunction &MF) const { in enableCalleeSaveSkip()
33 assert(MF.getFunction().hasFnAttribute(Attribute::NoReturn) && in enableCalleeSaveSkip()
34 MF.getFunction().hasFnAttribute(Attribute::NoUnwind) && in enableCalleeSaveSkip()
35 !MF.getFunction().hasFnAttribute(Attribute::UWTable)); in enableCalleeSaveSkip()
39 bool TargetFrameLowering::enableCFIFixup(MachineFunction &MF) const { in enableCFIFixup()
40 return MF.needsFrameMoves() && in enableCFIFixup()
41 !MF.getTarget().getMCAsmInfo()->usesWindowsCFI(); in enableCFIFixup()
49 TargetFrameLowering::getFrameIndexReference(const MachineFunction &MF, int FI, in getFrameIndexReference() argument
51 const MachineFrameInfo &MFI = MF.getFrameInfo(); in getFrameIndexReference()
52 const TargetRegisterInfo *RI = MF.getSubtarget().getRegisterInfo(); in getFrameIndexReference()
[all …]
H A DBasicBlockSections.cpp120 bool runOnMachineFunction(MachineFunction &MF) override;
123 bool handleBBSections(MachineFunction &MF);
124 bool handleBBAddrMap(MachineFunction &MF);
144 updateBranches(MachineFunction &MF, in INITIALIZE_PASS_DEPENDENCY()
146 const TargetInstrInfo *TII = MF.getSubtarget().getInstrInfo(); in INITIALIZE_PASS_DEPENDENCY()
148 for (auto &MBB : MF) { in INITIALIZE_PASS_DEPENDENCY()
186 assignSections(MachineFunction &MF, in assignSections() argument
188 assert(MF.hasBBSections() && "BB Sections is not set for function."); in assignSections()
194 for (auto &MBB : MF) { in assignSections()
199 if (MF.getTarget().getBBSectionsType() == llvm::BasicBlockSection::All || in assignSections()
[all …]
H A DPrologEpilogInserter.cpp95 bool runOnMachineFunction(MachineFunction &MF) override;
122 void calculateCallFrameInfo(MachineFunction &MF);
123 void calculateSaveRestoreBlocks(MachineFunction &MF);
124 void spillCalleeSavedRegs(MachineFunction &MF);
126 void calculateFrameObjectOffsets(MachineFunction &MF);
127 void replaceFrameIndices(MachineFunction &MF);
128 void replaceFrameIndices(MachineBasicBlock *BB, MachineFunction &MF,
133 bool replaceFrameIndexDebugInstr(MachineFunction &MF, MachineInstr &MI,
137 void replaceFrameIndicesBackward(MachineFunction &MF);
138 void replaceFrameIndicesBackward(MachineBasicBlock *BB, MachineFunction &MF,
[all …]
/freebsd/tools/tools/ath/athalq/
H A Dar9300_ds.c37 #define MF(_v, _f) ( !! ((_v) & (_f))) macro
86 MF(txs.status8, AR_tx_done), in ar9300_decode_txstatus()
88 MF(txs.status8, AR_tx_op_exceeded), in ar9300_decode_txstatus()
92 MF(txs.status8, AR_tx_bf_bw_mismatch), in ar9300_decode_txstatus()
93 MF(txs.status8, AR_tx_bf_stream_miss), in ar9300_decode_txstatus()
98 MF(txs.status8, AR_tx_bf_dest_miss), in ar9300_decode_txstatus()
99 MF(txs.status8, AR_tx_bf_expired), in ar9300_decode_txstatus()
100 MF(txs.status8, AR_power_mgmt), in ar9300_decode_txstatus()
102 MF(txs.status8, AR_tx_fast_ts)); in ar9300_decode_txstatus()
105 MF(txs.status3, AR_frm_xmit_ok), in ar9300_decode_txstatus()
[all …]
H A Dar5416_ds.c36 #define MF(_v, _f) ( !! ((_v) & (_f))) macro
50 MF(txs.u.tx.status[9], AR_TxDone), in ar5416_decode_txstatus()
51 MF(txs.u.tx.status[1], AR_FrmXmitOK), in ar5416_decode_txstatus()
52 MF(txs.u.tx.status[1], AR_Filtered), in ar5416_decode_txstatus()
70 MF(txs.u.tx.status[0], AR_TxBaStatus)); in ar5416_decode_txstatus()
74 MF(txs.u.tx.status[1], AR_FrmXmitOK), in ar5416_decode_txstatus()
75 MF(txs.u.tx.status[1], AR_ExcessiveRetries), in ar5416_decode_txstatus()
76 MF(txs.u.tx.status[1], AR_FIFOUnderrun), in ar5416_decode_txstatus()
77 MF(txs.u.tx.status[1], AR_Filtered)); in ar5416_decode_txstatus()
80 MF(txs.u.tx.status[1], AR_TxDelimUnderrun), in ar5416_decode_txstatus()
[all …]
H A Dar5416_ds_tdma.c36 #define MF(_v, _f) ( !! ((_v) & (_f))) macro
47 if (MF(txs.u.tx.status[9], AR_TxDone) == 0) in ar5416_decode_txstatus()
53 MF(txs.u.tx.status[9], AR_TxDone), in ar5416_decode_txstatus()
66 MF(txs.u.tx.status[0], AR_TxBaStatus)); in ar5416_decode_txstatus()
70 MF(txs.u.tx.status[1], AR_FrmXmitOK), in ar5416_decode_txstatus()
71 MF(txs.u.tx.status[1], AR_ExcessiveRetries), in ar5416_decode_txstatus()
72 MF(txs.u.tx.status[1], AR_FIFOUnderrun), in ar5416_decode_txstatus()
73 MF(txs.u.tx.status[1], AR_Filtered)); in ar5416_decode_txstatus()
76 MF(txs.u.tx.status[1], AR_TxDelimUnderrun), in ar5416_decode_txstatus()
77 MF(txs.u.tx.status[1], AR_TxDataUnderrun), in ar5416_decode_txstatus()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64RegisterInfo.cpp71 AArch64RegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs()
72 assert(MF && "Invalid MachineFunction pointer."); in getCalleeSavedRegs()
74 if (MF->getFunction().getCallingConv() == CallingConv::GHC) in getCalleeSavedRegs()
78 if (MF->getFunction().getCallingConv() == CallingConv::PreserveNone) in getCalleeSavedRegs()
80 if (MF->getFunction().getCallingConv() == CallingConv::AnyReg) in getCalleeSavedRegs()
83 if (MF->getFunction().getCallingConv() == CallingConv::ARM64EC_Thunk_X64) in getCalleeSavedRegs()
88 if (MF->getSubtarget<AArch64Subtarget>().isTargetDarwin()) in getCalleeSavedRegs()
89 return getDarwinCalleeSavedRegs(MF); in getCalleeSavedRegs()
91 if (MF->getFunction().getCallingConv() == CallingConv::CFGuard_Check) in getCalleeSavedRegs()
93 if (MF->getSubtarget<AArch64Subtarget>().isTargetWindows()) { in getCalleeSavedRegs()
[all …]
H A DAArch64RegisterInfo.h37 bool isReservedReg(const MachineFunction &MF, MCRegister Reg) const;
38 bool isStrictlyReservedReg(const MachineFunction &MF, MCRegister 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,
47 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
48 const MCPhysReg *getDarwinCalleeSavedRegs(const MachineFunction *MF) const;
50 getCalleeSavedRegsViaCopy(const MachineFunction *MF) const;
51 const uint32_t *getCallPreservedMask(const MachineFunction &MF,
[all …]
H A DAArch64FrameLowering.h31 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
36 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
37 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
39 bool enableCFIFixup(MachineFunction &MF) const override;
43 StackOffset getFrameIndexReference(const MachineFunction &MF, int FI,
45 StackOffset getFrameIndexReferenceFromSP(const MachineFunction &MF,
47 StackOffset resolveFrameIndexReference(const MachineFunction &MF, int FI,
50 StackOffset resolveFrameOffsetReference(const MachineFunction &MF,
66 bool canUseRedZone(const MachineFunction &MF) const;
68 bool hasFP(const MachineFunction &MF) const override;
[all …]
H A DAArch64FrameLowering.cpp296 static int64_t getArgumentStackToRestore(MachineFunction &MF, in getArgumentStackToRestore() argument
299 AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in getArgumentStackToRestore()
323 static bool produceCompactUnwindFrame(MachineFunction &MF);
324 static bool needsWinCFI(const MachineFunction &MF);
325 static StackOffset getSVEStackSize(const MachineFunction &MF);
332 MachineFunction &MF, MachineBasicBlock *Exit) const { in homogeneousPrologEpilog() argument
333 if (!MF.getFunction().hasMinSize()) in homogeneousPrologEpilog()
341 if (needsWinCFI(MF)) in homogeneousPrologEpilog()
344 if (getSVEStackSize(MF)) in homogeneousPrologEpilog()
348 const MachineFrameInfo &MFI = MF.getFrameInfo(); in homogeneousPrologEpilog()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZFrameLowering.h32 const MachineFunction &MF) const override { in allocateScavengingFrameIndexesNearIncomingSP() argument
43 bool hasReservedCallFrame(const MachineFunction &MF) const override;
46 virtual unsigned getBackchainOffset(MachineFunction &MF) const = 0;
49 virtual int getReturnAddressOffset(MachineFunction &MF) const = 0;
52 virtual int getOrCreateFramePointerSaveIndex(MachineFunction &MF) const = 0;
69 assignCalleeSavedSpillSlots(MachineFunction &MF,
72 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
83 void processFunctionBeforeFrameFinalized(MachineFunction &MF,
85 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
86 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetFrameLowering.h152 const MachineFunction &MF) const;
160 virtual bool assignCalleeSavedSpillSlots(MachineFunction &MF, in assignCalleeSavedSpillSlots() argument
165 return assignCalleeSavedSpillSlots(MF, TRI, CSI); in assignCalleeSavedSpillSlots()
169 assignCalleeSavedSpillSlots(MachineFunction &MF, in assignCalleeSavedSpillSlots() argument
198 virtual bool enableShrinkWrapping(const MachineFunction &MF) const { in enableShrinkWrapping() argument
205 virtual bool enableStackSlotScavenging(const MachineFunction &MF) const { in enableStackSlotScavenging() argument
211 virtual bool enableCalleeSaveSkip(const MachineFunction &MF) const;
215 virtual void emitPrologue(MachineFunction &MF,
217 virtual void emitEpilogue(MachineFunction &MF,
232 virtual bool enableCFIFixup(MachineFunction &MF) const;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVFrameLowering.cpp58 static void emitSCSPrologue(MachineFunction &MF, MachineBasicBlock &MBB, in emitSCSPrologue() argument
61 if (!MF.getFunction().hasFnAttribute(Attribute::ShadowCallStack)) in emitSCSPrologue()
64 const auto &STI = MF.getSubtarget<RISCVSubtarget>(); in emitSCSPrologue()
70 std::vector<CalleeSavedInfo> &CSI = MF.getFrameInfo().getCalleeSavedInfo(); in emitSCSPrologue()
113 unsigned CFIIndex = MF.addFrameInst(MCCFIInstruction::createEscape( in emitSCSPrologue()
120 static void emitSCSEpilogue(MachineFunction &MF, MachineBasicBlock &MBB, in emitSCSEpilogue() argument
123 if (!MF.getFunction().hasFnAttribute(Attribute::ShadowCallStack)) in emitSCSEpilogue()
126 const auto &STI = MF.getSubtarget<RISCVSubtarget>(); in emitSCSEpilogue()
130 std::vector<CalleeSavedInfo> &CSI = MF.getFrameInfo().getCalleeSavedInfo(); in emitSCSEpilogue()
159 unsigned CFIIndex = MF.addFrameInst(MCCFIInstruction::createRestore( in emitSCSEpilogue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVEFrameLowering.cpp135 void VEFrameLowering::emitPrologueInsns(MachineFunction &MF, in emitPrologueInsns() argument
140 const VEMachineFunctionInfo *FuncInfo = MF.getInfo<VEMachineFunctionInfo>(); in emitPrologueInsns()
163 if (hasGOT(MF)) { in emitPrologueInsns()
175 if (hasBP(MF)) in emitPrologueInsns()
183 void VEFrameLowering::emitEpilogueInsns(MachineFunction &MF, in emitEpilogueInsns() argument
188 const VEMachineFunctionInfo *FuncInfo = MF.getInfo<VEMachineFunctionInfo>(); in emitEpilogueInsns()
199 if (hasBP(MF)) in emitEpilogueInsns()
204 if (hasGOT(MF)) { in emitEpilogueInsns()
226 void VEFrameLowering::emitSPAdjustment(MachineFunction &MF, in emitSPAdjustment() argument
274 void VEFrameLowering::emitSPExtend(MachineFunction &MF, MachineBasicBlock &MBB, in emitSPExtend() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchFrameLowering.cpp34 bool LoongArchFrameLowering::hasFP(const MachineFunction &MF) const { in hasFP()
35 const TargetRegisterInfo *RegInfo = MF.getSubtarget().getRegisterInfo(); in hasFP()
37 const MachineFrameInfo &MFI = MF.getFrameInfo(); in hasFP()
38 return MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP()
39 RegInfo->hasStackRealignment(MF) || MFI.hasVarSizedObjects() || in hasFP()
43 bool LoongArchFrameLowering::hasBP(const MachineFunction &MF) const { in hasBP()
44 const MachineFrameInfo &MFI = MF.getFrameInfo(); in hasBP()
47 return MFI.hasVarSizedObjects() && TRI->hasStackRealignment(MF); in hasBP()
109 void LoongArchFrameLowering::determineFrameLayout(MachineFunction &MF) const { in determineFrameLayout()
110 MachineFrameInfo &MFI = MF.getFrameInfo(); in determineFrameLayout()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FrameLowering.h57 void emitStackProbe(MachineFunction &MF, MachineBasicBlock &MBB,
66 void inlineStackProbe(MachineFunction &MF,
78 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
79 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
81 void adjustForSegmentedStacks(MachineFunction &MF,
84 void adjustForHiPEPrologue(MachineFunction &MF,
87 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
91 assignCalleeSavedSpillSlots(MachineFunction &MF,
106 bool hasFP(const MachineFunction &MF) const override;
107 bool hasReservedCallFrame(const MachineFunction &MF) const override;
[all …]
H A DX86IndirectThunks.cpp64 bool mayUseThunk(const MachineFunction &MF) { in mayUseThunk()
65 const auto &STI = MF.getSubtarget<X86Subtarget>(); in mayUseThunk()
70 bool insertThunks(MachineModuleInfo &MMI, MachineFunction &MF,
72 void populateThunk(MachineFunction &MF);
77 bool mayUseThunk(const MachineFunction &MF) { in mayUseThunk()
78 return MF.getSubtarget<X86Subtarget>().useLVIControlFlowIntegrity(); in mayUseThunk()
80 bool insertThunks(MachineModuleInfo &MMI, MachineFunction &MF, in insertThunks()
87 void populateThunk(MachineFunction &MF) { in populateThunk()
88 assert (MF.size() == 1); in populateThunk()
89 MachineBasicBlock *Entry = &MF.front(); in populateThunk()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMBaseRegisterInfo.cpp63 ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs()
64 const ARMSubtarget &STI = MF->getSubtarget<ARMSubtarget>(); in getCalleeSavedRegs()
65 bool UseSplitPush = STI.splitFramePushPop(*MF); in getCalleeSavedRegs()
66 const Function &F = MF->getFunction(); in getCalleeSavedRegs()
72 } else if (STI.splitFramePointerPush(*MF)) { in getCalleeSavedRegs()
107 return MF->getInfo<ARMFunctionInfo>()->isSplitCSR() in getCalleeSavedRegs()
122 const MachineFunction *MF) const { in getCalleeSavedRegsViaCopy()
123 assert(MF && "Invalid MachineFunction pointer."); in getCalleeSavedRegsViaCopy()
124 if (MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS && in getCalleeSavedRegsViaCopy()
125 MF->getInfo<ARMFunctionInfo>()->isSplitCSR()) in getCalleeSavedRegsViaCopy()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsMachineFunction.cpp39 static const TargetRegisterClass &getGlobalBaseRegClass(MachineFunction &MF) { in getGlobalBaseRegClass()
40 auto &STI = MF.getSubtarget<MipsSubtarget>(); in getGlobalBaseRegClass()
41 auto &TM = static_cast<const MipsTargetMachine &>(MF.getTarget()); in getGlobalBaseRegClass()
55 Register MipsFunctionInfo::getGlobalBaseReg(MachineFunction &MF) { in getGlobalBaseReg()
58 MF.getRegInfo().createVirtualRegister(&getGlobalBaseRegClass(MF)); in getGlobalBaseReg()
62 Register MipsFunctionInfo::getGlobalBaseRegForGlobalISel(MachineFunction &MF) { in getGlobalBaseRegForGlobalISel()
64 getGlobalBaseReg(MF); in getGlobalBaseRegForGlobalISel()
65 initGlobalBaseReg(MF); in getGlobalBaseRegForGlobalISel()
70 void MipsFunctionInfo::initGlobalBaseReg(MachineFunction &MF) { in initGlobalBaseReg()
38 getGlobalBaseRegClass(MachineFunction & MF) getGlobalBaseRegClass() argument
54 getGlobalBaseReg(MachineFunction & MF) getGlobalBaseReg() argument
61 getGlobalBaseRegForGlobalISel(MachineFunction & MF) getGlobalBaseRegForGlobalISel() argument
69 initGlobalBaseReg(MachineFunction & MF) initGlobalBaseReg() argument
156 createEhDataRegsFI(MachineFunction & MF) createEhDataRegsFI() argument
169 createISRRegFI(MachineFunction & MF) createISRRegFI() argument
190 callPtrInfo(MachineFunction & MF,const char * ES) callPtrInfo() argument
195 callPtrInfo(MachineFunction & MF,const GlobalValue * GV) callPtrInfo() argument
200 getMoveF64ViaSpillFI(MachineFunction & MF,const TargetRegisterClass * RC) getMoveF64ViaSpillFI() argument
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcFrameLowering.cpp40 void SparcFrameLowering::emitSPAdjustment(MachineFunction &MF, in emitSPAdjustment() argument
49 *static_cast<const SparcInstrInfo *>(MF.getSubtarget().getInstrInfo()); in emitSPAdjustment()
85 void SparcFrameLowering::emitPrologue(MachineFunction &MF, in emitPrologue() argument
87 SparcMachineFunctionInfo *FuncInfo = MF.getInfo<SparcMachineFunctionInfo>(); in emitPrologue()
89 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported"); in emitPrologue()
90 MachineFrameInfo &MFI = MF.getFrameInfo(); in emitPrologue()
91 const SparcSubtarget &Subtarget = MF.getSubtarget<SparcSubtarget>(); in emitPrologue()
100 bool NeedsStackRealignment = RegInfo.shouldRealignStack(MF); in emitPrologue()
102 if (NeedsStackRealignment && !RegInfo.canRealignStack(MF)) in emitPrologue()
103 report_fatal_error("Function \"" + Twine(MF.getName()) + "\" required " in emitPrologue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXFrameLowering.cpp30 bool NVPTXFrameLowering::hasFP(const MachineFunction &MF) const { return true; } in hasFP()
32 void NVPTXFrameLowering::emitPrologue(MachineFunction &MF, in emitPrologue() argument
34 if (MF.getFrameInfo().hasStackObjects()) { in emitPrologue()
35 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported"); in emitPrologue()
37 MachineRegisterInfo &MR = MF.getRegInfo(); in emitPrologue()
40 MF.getSubtarget<NVPTXSubtarget>().getRegisterInfo(); in emitPrologue()
51 static_cast<const NVPTXTargetMachine &>(MF.getTarget()).is64Bit(); in emitPrologue()
56 if (!MR.use_empty(NRI->getFrameRegister(MF))) { in emitPrologue()
59 MF.getSubtarget().getInstrInfo()->get(CvtaLocalOpcode), in emitPrologue()
60 NRI->getFrameRegister(MF)) in emitPrologue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIFrameLowering.cpp73 MachineFunction &MF, LiveRegUnits &LiveUnits, Register SGPR, in getVGPRSpillLaneOrTempRegister() argument
76 SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>(); in getVGPRSpillLaneOrTempRegister()
77 MachineFrameInfo &FrameInfo = MF.getFrameInfo(); in getVGPRSpillLaneOrTempRegister()
79 const GCNSubtarget &ST = MF.getSubtarget<GCNSubtarget>(); in getVGPRSpillLaneOrTempRegister()
91 ScratchSGPR = findUnusedRegister(MF.getRegInfo(), LiveUnits, RC); in getVGPRSpillLaneOrTempRegister()
98 MFI->allocateSGPRSpillToVGPRLane(MF, FI, /*SpillToPhysVGPRLane=*/true, in getVGPRSpillLaneOrTempRegister()
112 MF.getFrameInfo().RemoveStackObject(FI); in getVGPRSpillLaneOrTempRegister()
136 LiveRegUnits &LiveUnits, MachineFunction &MF, in buildPrologSpill() argument
144 MachineFrameInfo &FrameInfo = MF.getFrameInfo(); in buildPrologSpill()
145 MachinePointerInfo PtrInfo = MachinePointerInfo::getFixedStack(MF, FI); in buildPrologSpill()
[all …]

12345678910>>...47