Searched refs:MF (Results 1 - 25 of 870) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600MachineFunctionInfo.cpp14 R600MachineFunctionInfo::R600MachineFunctionInfo(const MachineFunction &MF) argument
15 : AMDGPUMachineFunction(MF) { }
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetOptionsImpl.cpp24 bool TargetOptions::DisableFramePointerElim(const MachineFunction &MF) const {
26 if (MF.getSubtarget().getFrameLowering()->keepFramePointer(MF))
29 const Function &F = MF.getFunction();
37 return MF.getFrameInfo().hasCalls();
H A DTargetFrameLoweringImpl.cpp33 bool TargetFrameLowering::enableCalleeSaveSkip(const MachineFunction &MF) const {
34 assert(MF.getFunction().hasFnAttribute(Attribute::NoReturn) &&
35 MF.getFunction().hasFnAttribute(Attribute::NoUnwind) &&
36 !MF.getFunction().hasFnAttribute(Attribute::UWTable));
44 int TargetFrameLowering::getFrameIndexReference(const MachineFunction &MF, argument
46 const MachineFrameInfo &MFI = MF.getFrameInfo();
47 const TargetRegisterInfo *RI = MF.getSubtarget().getRegisterInfo();
52 FrameReg = RI->getFrameRegister(MF);
59 const MachineFunction &MF) const {
60 return MF
63 getCalleeSaves(const MachineFunction &MF, BitVector &CalleeSaves) const argument
76 determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMMachineFunctionInfo.cpp16 ARMFunctionInfo::ARMFunctionInfo(MachineFunction &MF) argument
17 : isThumb(MF.getSubtarget<ARMSubtarget>().isThumb()),
18 hasThumb2(MF.getSubtarget<ARMSubtarget>().hasThumb2()) {}
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFrameLowering.h38 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
42 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
43 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
45 bool hasFP(const MachineFunction &MF) const override;
46 bool hasReservedCallFrame(const MachineFunction &MF) const override;
48 bool needsPrologForEH(const MachineFunction &MF) const;
51 void writeSPToGlobal(unsigned SrcReg, MachineFunction &MF,
57 bool hasBP(const MachineFunction &MF) const;
58 bool needsSPForLocalFrame(const MachineFunction &MF) const;
59 bool needsSP(const MachineFunction &MF) cons
[all...]
H A DWebAssemblyFrameLowering.cpp45 bool WebAssemblyFrameLowering::hasBP(const MachineFunction &MF) const {
47 MF.getSubtarget<WebAssemblySubtarget>().getRegisterInfo();
48 return RegInfo->needsStackRealignment(MF);
53 bool WebAssemblyFrameLowering::hasFP(const MachineFunction &MF) const {
54 const MachineFrameInfo &MFI = MF.getFrameInfo();
63 bool NeedsFixedReference = !hasBP(MF) || HasFixedSizedObjects;
76 const MachineFunction &MF) const {
77 return !MF.getFrameInfo().hasVarSizedObjects();
83 const MachineFunction &MF) const {
84 auto &MFI = MF
125 writeSPToGlobal( unsigned SrcReg, MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator &InsertStore, const DebugLoc &DL) const argument
138 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument
152 emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const argument
225 emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreRegisterInfo.h31 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
33 BitVector getReservedRegs(const MachineFunction &MF) const override;
35 bool requiresRegisterScavenging(const MachineFunction &MF) const override;
37 bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override;
39 bool useFPForScavengingIndex(const MachineFunction &MF) const override;
46 Register getFrameRegister(const MachineFunction &MF) const override;
49 static bool needsFrameMoves(const MachineFunction &MF);
H A DXCoreMachineFunctionInfo.cpp18 bool XCoreFunctionInfo::isLargeFrame(const MachineFunction &MF) const {
20 CachedEStackSize = MF.getFrameInfo().estimateStackSize(MF);
34 int XCoreFunctionInfo::createLRSpillSlot(MachineFunction &MF) { argument
39 const TargetRegisterInfo &TRI = *MF.getSubtarget().getRegisterInfo();
40 MachineFrameInfo &MFI = MF.getFrameInfo();
41 if (! MF.getFunction().isVarArg()) {
52 int XCoreFunctionInfo::createFPSpillSlot(MachineFunction &MF) { argument
57 const TargetRegisterInfo &TRI = *MF.getSubtarget().getRegisterInfo();
58 MachineFrameInfo &MFI = MF
65 createEHSpillSlot(MachineFunction &MF) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcFrameLowering.h28 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
29 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
32 eliminateCallFramePseudoInstr(MachineFunction &MF,
36 bool hasReservedCallFrame(const MachineFunction &MF) const override;
37 bool hasFP(const MachineFunction &MF) const override;
38 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
41 int getFrameIndexReference(const MachineFunction &MF, int FI,
51 void remapRegsForLeafProc(MachineFunction &MF) const;
53 // Returns true if MF is a leaf procedure.
54 bool isLeafProc(MachineFunction &MF) cons
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVMachineFunctionInfo.h25 MachineFunction &MF; member in class:llvm::RISCVMachineFunctionInfo
35 RISCVMachineFunctionInfo(MachineFunction &MF) : MF(MF) {} argument
45 MoveF64FrameIndex = MF.getFrameInfo().CreateStackObject(8, 8, false);
H A DRISCVRegisterInfo.h27 const uint32_t *getCallPreservedMask(const MachineFunction &MF,
30 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
32 BitVector getReservedRegs(const MachineFunction &MF) const override;
33 bool isAsmClobberable(const MachineFunction &MF,
44 Register getFrameRegister(const MachineFunction &MF) const override;
46 bool requiresRegisterScavenging(const MachineFunction &MF) const override {
50 bool requiresFrameIndexScavenging(const MachineFunction &MF) const override {
59 getPointerRegClass(const MachineFunction &MF,
H A DRISCVFrameLowering.h29 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
30 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
32 int getFrameIndexReference(const MachineFunction &MF, int FI,
35 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
38 void processFunctionBeforeFrameFinalized(MachineFunction &MF,
41 bool hasFP(const MachineFunction &MF) const override;
43 bool hasBP(const MachineFunction &MF) const;
45 bool hasReservedCallFrame(const MachineFunction &MF) const override;
47 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
53 uint64_t getFirstSPAdjustAmount(const MachineFunction &MF) cons
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXFrameLowering.cpp30 bool NVPTXFrameLowering::hasFP(const MachineFunction &MF) const { return true; }
32 void NVPTXFrameLowering::emitPrologue(MachineFunction &MF, argument
34 if (MF.getFrameInfo().hasStackObjects()) {
35 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported");
37 MachineRegisterInfo &MR = MF.getRegInfo();
46 // for local address accesses in MF.
48 static_cast<const NVPTXTargetMachine &>(MF.getTarget()).is64Bit();
56 MF.getSubtarget().getInstrInfo()->get(CvtaLocalOpcode),
60 BuildMI(MBB, MI, dl, MF.getSubtarget().getInstrInfo()->get(MovDepotOpcode),
62 .addImm(MF
66 getFrameIndexReference(const MachineFunction &MF, int FI, unsigned &FrameReg) const argument
74 emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const argument
79 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument
[all...]
H A DNVPTXFrameLowering.h24 bool hasFP(const MachineFunction &MF) const override;
25 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
26 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
27 int getFrameIndexReference(const MachineFunction &MF, int FI,
31 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARC/
H A DARCRegisterInfo.h31 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
33 BitVector getReservedRegs(const MachineFunction &MF) const override;
35 bool requiresRegisterScavenging(const MachineFunction &MF) const override;
37 bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override;
39 bool useFPForScavengingIndex(const MachineFunction &MF) const override;
45 const uint32_t *getCallPreservedMask(const MachineFunction &MF,
49 Register getFrameRegister(const MachineFunction &MF) const override;
52 static bool needsFrameMoves(const MachineFunction &MF);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiMachineFunctionInfo.h27 MachineFunction &MF; member in class:llvm::LanaiMachineFunctionInfo
43 explicit LanaiMachineFunctionInfo(MachineFunction &MF) argument
44 : MF(MF), SRetReturnReg(0), GlobalBaseReg(0), VarArgsFrameIndex(0) {}
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430RegisterInfo.h28 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
30 BitVector getReservedRegs(const MachineFunction &MF) const override;
32 getPointerRegClass(const MachineFunction &MF,
40 Register getFrameRegister(const MachineFunction &MF) const override;
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetFrameLowering.h109 /// certain conditions (e.g. stack was adjusted before function \p MF
111 virtual unsigned getStackAlignmentSkew(const MachineFunction &MF) const;
130 assignCalleeSavedSpillSlots(MachineFunction &MF, argument
159 virtual bool enableShrinkWrapping(const MachineFunction &MF) const {
166 virtual bool enableStackSlotScavenging(const MachineFunction &MF) const {
172 virtual bool enableCalleeSaveSkip(const MachineFunction &MF) const;
176 virtual void emitPrologue(MachineFunction &MF,
178 virtual void emitEpilogue(MachineFunction &MF,
182 virtual void inlineStackProbe(MachineFunction &MF, argument
187 virtual void adjustForSegmentedStacks(MachineFunction &MF, argument
192 adjustForHiPEPrologue(MachineFunction &MF, MachineBasicBlock &PrologueMBB) const argument
267 getFrameIndexReferencePreferSP(const MachineFunction &MF, int FI, unsigned &FrameReg, bool IgnoreSPUpdates) const argument
277 getNonLocalFrameIndexReference(const MachineFunction &MF, int FI) const argument
308 processFunctionBeforeFrameFinalized(MachineFunction &MF, RegScavenger *RS = nullptr) const argument
323 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator MI) const argument
338 orderFrameObjects(const MachineFunction &MF, SmallVectorImpl<int> &objectsToAllocate) const argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCMachineFunctionInfo.cpp19 const DataLayout &DL = MF.getDataLayout();
20 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) +
21 Twine(MF.getFunctionNumber()) +
26 const DataLayout &DL = MF.getDataLayout();
27 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) +
29 Twine(MF.getFunctionNumber()));
33 const DataLayout &DL = MF.getDataLayout();
34 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) +
36 Twine(MF.getFunctionNumber()));
40 const DataLayout &DL = MF
[all...]
/freebsd-11-stable/tools/tools/ath/athalq/
H A Dar9300_ds.c39 #define MF(_v, _f) ( !! ((_v) & (_f))) macro
64 MF(txs.status8, AR_tx_done),
66 MF(txs.status8, AR_tx_op_exceeded),
70 MF(txs.status8, AR_tx_bf_bw_mismatch),
71 MF(txs.status8, AR_tx_bf_stream_miss),
76 MF(txs.status8, AR_tx_bf_dest_miss),
77 MF(txs.status8, AR_tx_bf_expired),
78 MF(txs.status8, AR_power_mgmt),
80 MF(txs.status8, AR_tx_fast_ts));
83 MF(tx
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64RegisterInfo.h37 bool isReservedReg(const MachineFunction &MF, unsigned Reg) const;
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,
46 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
48 getCalleeSavedRegsViaCopy(const MachineFunction *MF) const;
49 const uint32_t *getCallPreservedMask(const MachineFunction &MF,
78 const uint32_t *getThisReturnPreservedMask(const MachineFunction &MF,
84 BitVector getReservedRegs(const MachineFunction &MF) cons
[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;
41 int getFrameIndexReference(const MachineFunction &MF, int FI,
43 StackOffset resolveFrameIndexReference(const MachineFunction &MF, int FI,
46 StackOffset resolveFrameOffsetReference(const MachineFunction &MF,
61 bool canUseRedZone(const MachineFunction &MF) const;
63 bool hasFP(const MachineFunction &MF) const override;
64 bool hasReservedCallFrame(const MachineFunction &MF) const override;
66 void determineCalleeSaves(MachineFunction &MF, BitVecto
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86RegisterInfo.h59 bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override;
75 const MachineFunction &MF) const override;
85 getPointerRegClass(const MachineFunction &MF,
97 getGPRsForTailCall(const MachineFunction &MF) const;
100 MachineFunction &MF) const override;
105 getCalleeSavedRegs(const MachineFunction* MF) const override;
107 getCalleeSavedRegsViaCopy(const MachineFunction *MF) const;
108 const uint32_t *getCallPreservedMask(const MachineFunction &MF,
120 BitVector getReservedRegs(const MachineFunction &MF) const override;
124 bool hasBasePointer(const MachineFunction &MF) cons
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelChangeObserver.cpp32 RAIIDelegateInstaller::RAIIDelegateInstaller(MachineFunction &MF, argument
34 : MF(MF), Delegate(Del) {
37 MF.setDelegate(Del);
40 RAIIDelegateInstaller::~RAIIDelegateInstaller() { MF.resetDelegate(Delegate); }
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFFrameLowering.cpp23 bool BPFFrameLowering::hasFP(const MachineFunction &MF) const { return true; }
25 void BPFFrameLowering::emitPrologue(MachineFunction &MF, argument
28 void BPFFrameLowering::emitEpilogue(MachineFunction &MF, argument
31 void BPFFrameLowering::determineCalleeSaves(MachineFunction &MF, argument
34 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS);

Completed in 132 milliseconds

1234567891011>>