| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFrameLowering.cpp | 52 WebAssemblyFrameLowering::getLocalForStackObject(MachineFunction &MF, in getLocalForStackObject() argument 54 MachineFrameInfo &MFI = MF.getFrameInfo(); in getLocalForStackObject() 70 *MF.getSubtarget<WebAssemblySubtarget>().getTargetLowering(); in getLocalForStackObject() 71 WebAssemblyFunctionInfo *FuncInfo = MF.getInfo<WebAssemblyFunctionInfo>(); in getLocalForStackObject() 72 ComputeValueVTs(TLI, MF.getDataLayout(), AI->getAllocatedType(), ValueVTs); in getLocalForStackObject() 91 bool WebAssemblyFrameLowering::hasBP(const MachineFunction &MF) const { in hasBP() 93 MF.getSubtarget<WebAssemblySubtarget>().getRegisterInfo(); in hasBP() 94 return RegInfo->hasStackRealignment(MF); in hasBP() 99 bool WebAssemblyFrameLowering::hasFPImpl(const MachineFunction &MF) const { in hasFPImpl() 100 const MachineFrameInfo &MFI = MF.getFrameInfo(); in hasFPImpl() [all …]
|
| H A D | WebAssemblyFrameLowering.h | 37 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 hasReservedCallFrame(const MachineFunction &MF) const override; 46 DwarfFrameBase getDwarfFrameBase(const MachineFunction &MF) const override; 48 bool needsPrologForEH(const MachineFunction &MF) const; 51 void writeSPToGlobal(unsigned SrcReg, MachineFunction &MF, 58 static std::optional<unsigned> getLocalForStackObject(MachineFunction &MF, 61 static unsigned getSPReg(const MachineFunction &MF); 62 static unsigned getFPReg(const MachineFunction &MF); [all …]
|
| H A D | WebAssemblyLateEHPrepare.cpp | 35 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 addCatchRefsAndThrowRefs(MachineFunction &MF); 41 bool replaceFuncletReturns(MachineFunction &MF); 42 bool removeUnnecessaryUnreachables(MachineFunction &MF); 43 bool restoreStackPointer(MachineFunction &MF); 70 MachineFunction *MF = MI->getParent()->getParent(); in getMatchingEHPad() local [all …]
|
| /freebsd/tools/tools/ath/athalq/ |
| H A D | ar9300_ds.c | 37 #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 D | ar5416_ds.c | 36 #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 D | ar5416_ds_tdma.c | 36 #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/CodeGen/ |
| H A D | TargetFrameLoweringImpl.cpp | 32 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(const 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 D | BasicBlockSections.cpp | 123 bool runOnMachineFunction(MachineFunction &MF) override; 126 bool handleBBSections(MachineFunction &MF); 127 bool handleBBAddrMap(MachineFunction &MF); 147 updateBranches(MachineFunction &MF, in INITIALIZE_PASS_DEPENDENCY() 149 const TargetInstrInfo *TII = MF.getSubtarget().getInstrInfo(); in INITIALIZE_PASS_DEPENDENCY() 151 for (auto &MBB : MF) { in INITIALIZE_PASS_DEPENDENCY() 189 assignSections(MachineFunction &MF, in assignSections() argument 191 assert(MF.hasBBSections() && "BB Sections is not set for function."); in assignSections() 197 for (auto &MBB : MF) { in assignSections() 202 if (MF.getTarget().getBBSectionsType() == llvm::BasicBlockSection::All || in assignSections() [all …]
|
| H A D | PrologEpilogInserter.cpp | 105 void calculateCallFrameInfo(MachineFunction &MF); 106 void calculateSaveRestoreBlocks(MachineFunction &MF); 107 void spillCalleeSavedRegs(MachineFunction &MF); 109 void calculateFrameObjectOffsets(MachineFunction &MF); 110 void replaceFrameIndices(MachineFunction &MF); 111 void replaceFrameIndices(MachineBasicBlock *BB, MachineFunction &MF, 116 bool replaceFrameIndexDebugInstr(MachineFunction &MF, MachineInstr &MI, 120 void replaceFrameIndicesBackward(MachineFunction &MF); 121 void replaceFrameIndicesBackward(MachineBasicBlock *BB, MachineFunction &MF, 124 void insertPrologEpilogCode(MachineFunction &MF); [all …]
|
| H A D | RegUsageInfoCollector.cpp | 46 bool run(MachineFunction &MF); 50 static void computeCalleeSavedRegs(BitVector &SavedRegs, MachineFunction &MF); 70 bool runOnMachineFunction(MachineFunction &MF) override; 91 static bool isCallableFunction(const MachineFunction &MF) { in isCallableFunction() argument 92 switch (MF.getFunction().getCallingConv()) { in isCallableFunction() 108 RegUsageInfoCollectorPass::run(MachineFunction &MF, in run() argument 110 Module &MFA = *MF.getFunction().getParent(); in run() 111 auto *PRUI = MFAM.getResult<ModuleAnalysisManagerMachineFunctionProxy>(MF) in run() 114 RegUsageInfoCollector(*PRUI).run(MF); in run() 118 bool RegUsageInfoCollectorLegacy::runOnMachineFunction(MachineFunction &MF) { in runOnMachineFunction() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64RegisterInfo.cpp | 72 AArch64RegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs() 73 assert(MF && "Invalid MachineFunction pointer."); in getCalleeSavedRegs() 75 if (MF->getFunction().getCallingConv() == CallingConv::GHC) in getCalleeSavedRegs() 79 if (MF->getFunction().getCallingConv() == CallingConv::PreserveNone) in getCalleeSavedRegs() 81 if (MF->getFunction().getCallingConv() == CallingConv::AnyReg) in getCalleeSavedRegs() 84 if (MF->getFunction().getCallingConv() == CallingConv::ARM64EC_Thunk_X64) in getCalleeSavedRegs() 89 if (MF->getSubtarget<AArch64Subtarget>().isTargetDarwin()) in getCalleeSavedRegs() 90 return getDarwinCalleeSavedRegs(MF); in getCalleeSavedRegs() 92 if (MF->getFunction().getCallingConv() == CallingConv::CFGuard_Check) in getCalleeSavedRegs() 94 if (MF->getSubtarget<AArch64Subtarget>().isTargetWindows()) { in getCalleeSavedRegs() [all …]
|
| H A D | AArch64FrameLowering.h | 31 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, 36 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 37 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 45 void emitPacRetPlusLeafHardening(MachineFunction &MF) const; 47 bool enableCFIFixup(const MachineFunction &MF) const override; 49 bool enableFullCFIFixup(const MachineFunction &MF) const override; 53 StackOffset getFrameIndexReference(const MachineFunction &MF, int FI, 55 StackOffset getFrameIndexReferenceFromSP(const MachineFunction &MF, 57 StackOffset resolveFrameIndexReference(const MachineFunction &MF, int FI, 60 StackOffset resolveFrameOffsetReference(const MachineFunction &MF, [all …]
|
| H A D | AArch64RegisterInfo.h | 37 bool isReservedReg(const MachineFunction &MF, MCRegister Reg) const; 38 bool isUserReservedReg(const MachineFunction &MF, MCRegister Reg) const; 39 bool isStrictlyReservedReg(const MachineFunction &MF, MCRegister Reg) const; 40 bool isAnyArgRegReserved(const MachineFunction &MF) const; 41 void emitReservedArgRegCallError(const MachineFunction &MF) const; 43 void UpdateCustomCalleeSavedRegs(MachineFunction &MF) const; 44 void UpdateCustomCallPreservedMask(MachineFunction &MF, 48 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override; 49 const MCPhysReg *getDarwinCalleeSavedRegs(const MachineFunction *MF) const; 51 getCalleeSavedRegsViaCopy(const MachineFunction *MF) const; [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | TargetFrameLowering.h | 153 const MachineFunction &MF) const; 161 virtual bool assignCalleeSavedSpillSlots(MachineFunction &MF, in assignCalleeSavedSpillSlots() argument 166 return assignCalleeSavedSpillSlots(MF, TRI, CSI); in assignCalleeSavedSpillSlots() 170 assignCalleeSavedSpillSlots(MachineFunction &MF, in assignCalleeSavedSpillSlots() argument 199 virtual bool enableShrinkWrapping(const MachineFunction &MF) const { in enableShrinkWrapping() argument 206 virtual bool enableStackSlotScavenging(const MachineFunction &MF) const { in enableStackSlotScavenging() argument 212 virtual bool enableCalleeSaveSkip(const MachineFunction &MF) const; 216 virtual void emitPrologue(MachineFunction &MF, 218 virtual void emitEpilogue(MachineFunction &MF, 233 virtual bool enableCFIFixup(const MachineFunction &MF) const; [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZFrameLowering.h | 32 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/lib/Target/RISCV/ |
| H A D | RISCVFrameLowering.cpp | 100 static void emitSCSPrologue(MachineFunction &MF, MachineBasicBlock &MBB, in emitSCSPrologue() argument 103 const auto &STI = MF.getSubtarget<RISCVSubtarget>(); in emitSCSPrologue() 104 bool HasHWShadowStack = MF.getFunction().hasFnAttribute("hw-shadow-stack") && in emitSCSPrologue() 107 MF.getFunction().hasFnAttribute(Attribute::ShadowCallStack); in emitSCSPrologue() 115 std::vector<CalleeSavedInfo> &CSI = MF.getFrameInfo().getCalleeSavedInfo(); in emitSCSPrologue() 162 static void emitSCSEpilogue(MachineFunction &MF, MachineBasicBlock &MBB, in emitSCSEpilogue() argument 165 const auto &STI = MF.getSubtarget<RISCVSubtarget>(); in emitSCSEpilogue() 166 bool HasHWShadowStack = MF.getFunction().hasFnAttribute("hw-shadow-stack") && in emitSCSEpilogue() 169 MF.getFunction().hasFnAttribute(Attribute::ShadowCallStack); in emitSCSEpilogue() 174 std::vector<CalleeSavedInfo> &CSI = MF.getFrameInfo().getCalleeSavedInfo(); in emitSCSEpilogue() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VEFrameLowering.cpp | 132 void VEFrameLowering::emitPrologueInsns(MachineFunction &MF, in emitPrologueInsns() argument 137 const VEMachineFunctionInfo *FuncInfo = MF.getInfo<VEMachineFunctionInfo>(); in emitPrologueInsns() 160 if (hasGOT(MF)) { in emitPrologueInsns() 172 if (hasBP(MF)) in emitPrologueInsns() 180 void VEFrameLowering::emitEpilogueInsns(MachineFunction &MF, in emitEpilogueInsns() argument 185 const VEMachineFunctionInfo *FuncInfo = MF.getInfo<VEMachineFunctionInfo>(); in emitEpilogueInsns() 196 if (hasBP(MF)) in emitEpilogueInsns() 201 if (hasGOT(MF)) { in emitEpilogueInsns() 223 void VEFrameLowering::emitSPAdjustment(MachineFunction &MF, in emitSPAdjustment() argument 271 void VEFrameLowering::emitSPExtend(MachineFunction &MF, MachineBasicBlock &MBB, in emitSPExtend() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
| H A D | LoongArchFrameLowering.cpp | 34 bool LoongArchFrameLowering::hasFPImpl(const MachineFunction &MF) const { in hasFPImpl() 35 const TargetRegisterInfo *RegInfo = MF.getSubtarget().getRegisterInfo(); in hasFPImpl() 37 const MachineFrameInfo &MFI = MF.getFrameInfo(); in hasFPImpl() 38 return MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFPImpl() 39 RegInfo->hasStackRealignment(MF) || MFI.hasVarSizedObjects() || in hasFPImpl() 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 D | X86FrameLowering.h | 57 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 void spillFPBP(MachineFunction &MF) const override; 108 bool hasReservedCallFrame(const MachineFunction &MF) const override; [all …]
|
| H A D | X86IndirectThunks.cpp | 58 bool mayUseThunk(const MachineFunction &MF) { in mayUseThunk() 59 const auto &STI = MF.getSubtarget<X86Subtarget>(); in mayUseThunk() 64 bool insertThunks(MachineModuleInfo &MMI, MachineFunction &MF, 66 void populateThunk(MachineFunction &MF); 71 bool mayUseThunk(const MachineFunction &MF) { in mayUseThunk() 72 return MF.getSubtarget<X86Subtarget>().useLVIControlFlowIntegrity(); in mayUseThunk() 74 bool insertThunks(MachineModuleInfo &MMI, MachineFunction &MF, in insertThunks() 81 void populateThunk(MachineFunction &MF) { in populateThunk() 82 assert (MF.size() == 1); in populateThunk() 83 MachineBasicBlock *Entry = &MF.front(); in populateThunk() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/ |
| H A D | SparcFrameLowering.cpp | 40 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() 122 if (MFI.adjustsStack() && hasReservedCallFrame(MF)) in emitPrologue() 136 emitSPAdjustment(MF, MBB, MBBI, -NumBytes, SAVErr, SAVEri); in emitPrologue() 138 if (MF.needsFrameMoves()) { in emitPrologue() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMBaseRegisterInfo.cpp | 63 ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs() 64 const ARMSubtarget &STI = MF->getSubtarget<ARMSubtarget>(); in getCalleeSavedRegs() 66 STI.getPushPopSplitVariation(*MF); in getCalleeSavedRegs() 67 const Function &F = MF->getFunction(); in getCalleeSavedRegs() 130 return MF->getInfo<ARMFunctionInfo>()->isSplitCSR() in getCalleeSavedRegs() 148 const MachineFunction *MF) const { in getCalleeSavedRegsViaCopy() 149 assert(MF && "Invalid MachineFunction pointer."); in getCalleeSavedRegsViaCopy() 150 if (MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS && in getCalleeSavedRegsViaCopy() 151 MF->getInfo<ARMFunctionInfo>()->isSplitCSR()) in getCalleeSavedRegsViaCopy() 157 ARMBaseRegisterInfo::getCallPreservedMask(const MachineFunction &MF, in getCallPreservedMask() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsMachineFunction.cpp | 39 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/AMDGPU/ |
| H A D | SIFrameLowering.cpp | 73 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 …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXFrameLowering.cpp | 29 bool NVPTXFrameLowering::hasFPImpl(const MachineFunction &MF) const { in hasFPImpl() 33 void NVPTXFrameLowering::emitPrologue(MachineFunction &MF, in emitPrologue() argument 35 if (MF.getFrameInfo().hasStackObjects()) { in emitPrologue() 36 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported"); in emitPrologue() 38 MachineRegisterInfo &MR = MF.getRegInfo(); in emitPrologue() 41 MF.getSubtarget<NVPTXSubtarget>().getRegisterInfo(); in emitPrologue() 52 static_cast<const NVPTXTargetMachine &>(MF.getTarget()).is64Bit(); in emitPrologue() 57 if (!MR.use_empty(NRI->getFrameRegister(MF))) { in emitPrologue() 60 MF.getSubtarget().getInstrInfo()->get(CvtaLocalOpcode), in emitPrologue() 61 NRI->getFrameRegister(MF)) in emitPrologue() [all …]
|