Home
last modified time | relevance | path

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

12345678910>>...82

/external/llvm/lib/Target/AArch64/
DAArch64RegisterInfo.cpp41 AArch64RegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs()
42 assert(MF && "Invalid MachineFunction pointer."); in getCalleeSavedRegs()
43 if (MF->getFunction()->getCallingConv() == CallingConv::GHC) in getCalleeSavedRegs()
47 if (MF->getFunction()->getCallingConv() == CallingConv::AnyReg) in getCalleeSavedRegs()
49 if (MF->getFunction()->getCallingConv() == CallingConv::CXX_FAST_TLS) in getCalleeSavedRegs()
50 return MF->getInfo<AArch64FunctionInfo>()->isSplitCSR() ? in getCalleeSavedRegs()
53 if (MF->getSubtarget<AArch64Subtarget>().getTargetLowering() in getCalleeSavedRegs()
55 MF->getFunction()->getAttributes().hasAttrSomewhere( in getCalleeSavedRegs()
58 if (MF->getFunction()->getCallingConv() == CallingConv::PreserveMost) in getCalleeSavedRegs()
65 const MachineFunction *MF) const { in getCalleeSavedRegsViaCopy()
[all …]
DAArch64FrameLowering.cpp119 bool AArch64FrameLowering::canUseRedZone(const MachineFunction &MF) const { in canUseRedZone()
124 if (MF.getFunction()->hasFnAttribute(Attribute::NoRedZone)) in canUseRedZone()
127 const MachineFrameInfo *MFI = MF.getFrameInfo(); in canUseRedZone()
128 const AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in canUseRedZone()
131 return !(MFI->hasCalls() || hasFP(MF) || NumBytes > 128); in canUseRedZone()
136 bool AArch64FrameLowering::hasFP(const MachineFunction &MF) const { in hasFP()
137 const MachineFrameInfo *MFI = MF.getFrameInfo(); in hasFP()
138 const TargetRegisterInfo *RegInfo = MF.getSubtarget().getRegisterInfo(); in hasFP()
141 MF.getTarget().Options.DisableFramePointerElim(MF)) || in hasFP()
144 RegInfo->needsStackRealignment(MF); in hasFP()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64RegisterInfo.cpp43 AArch64RegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs()
44 assert(MF && "Invalid MachineFunction pointer."); in getCalleeSavedRegs()
45 if (MF->getFunction().getCallingConv() == CallingConv::GHC) in getCalleeSavedRegs()
49 if (MF->getFunction().getCallingConv() == CallingConv::AnyReg) in getCalleeSavedRegs()
51 if (MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS) in getCalleeSavedRegs()
52 return MF->getInfo<AArch64FunctionInfo>()->isSplitCSR() ? in getCalleeSavedRegs()
55 if (MF->getSubtarget<AArch64Subtarget>().getTargetLowering() in getCalleeSavedRegs()
57 MF->getFunction().getAttributes().hasAttrSomewhere( in getCalleeSavedRegs()
60 if (MF->getFunction().getCallingConv() == CallingConv::PreserveMost) in getCalleeSavedRegs()
67 const MachineFunction *MF) const { in getCalleeSavedRegsViaCopy()
[all …]
DAArch64FrameLowering.cpp159 static unsigned estimateRSStackSizeLimit(MachineFunction &MF) { in estimateRSStackSizeLimit() argument
163 for (MachineBasicBlock &MBB : MF) { in estimateRSStackSizeLimit()
184 bool AArch64FrameLowering::canUseRedZone(const MachineFunction &MF) const { in canUseRedZone()
189 if (MF.getFunction().hasFnAttribute(Attribute::NoRedZone)) in canUseRedZone()
192 const MachineFrameInfo &MFI = MF.getFrameInfo(); in canUseRedZone()
193 const AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in canUseRedZone()
196 return !(MFI.hasCalls() || hasFP(MF) || NumBytes > 128); in canUseRedZone()
201 bool AArch64FrameLowering::hasFP(const MachineFunction &MF) const { in hasFP()
202 const MachineFrameInfo &MFI = MF.getFrameInfo(); in hasFP()
203 const TargetRegisterInfo *RegInfo = MF.getSubtarget().getRegisterInfo(); in hasFP()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DTargetFrameLoweringImpl.cpp34 bool TargetFrameLowering::noFramePointerElim(const MachineFunction &MF) const { in noFramePointerElim()
35 auto Attr = MF.getFunction().getFnAttribute("no-frame-pointer-elim"); in noFramePointerElim()
39 bool TargetFrameLowering::enableCalleeSaveSkip(const MachineFunction &MF) const { in enableCalleeSaveSkip()
40 assert(MF.getFunction().hasFnAttribute(Attribute::NoReturn) && in enableCalleeSaveSkip()
41 MF.getFunction().hasFnAttribute(Attribute::NoUnwind) && in enableCalleeSaveSkip()
42 !MF.getFunction().hasFnAttribute(Attribute::UWTable)); in enableCalleeSaveSkip()
50 int TargetFrameLowering::getFrameIndexReference(const MachineFunction &MF, in getFrameIndexReference() argument
52 const MachineFrameInfo &MFI = MF.getFrameInfo(); in getFrameIndexReference()
53 const TargetRegisterInfo *RI = MF.getSubtarget().getRegisterInfo(); in getFrameIndexReference()
58 FrameReg = RI->getFrameRegister(MF); in getFrameIndexReference()
[all …]
DPrologEpilogInserter.cpp92 bool runOnMachineFunction(MachineFunction &MF) override;
119 void calculateCallFrameInfo(MachineFunction &MF);
120 void calculateSaveRestoreBlocks(MachineFunction &MF);
121 void spillCalleeSavedRegs(MachineFunction &MF);
123 void calculateFrameObjectOffsets(MachineFunction &MF);
124 void replaceFrameIndices(MachineFunction &MF);
125 void replaceFrameIndices(MachineBasicBlock *BB, MachineFunction &MF,
127 void insertPrologEpilogCode(MachineFunction &MF);
170 bool PEI::runOnMachineFunction(MachineFunction &MF) { in runOnMachineFunction() argument
171 const Function &F = MF.getFunction(); in runOnMachineFunction()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/
DWebAssemblyFrameLowering.cpp46 const MachineFunction &MF) const { in hasBP()
48 MF.getSubtarget<WebAssemblySubtarget>().getRegisterInfo(); in hasBP()
49 return RegInfo->needsStackRealignment(MF); in hasBP()
54 bool WebAssemblyFrameLowering::hasFP(const MachineFunction &MF) const { in hasFP()
55 const MachineFrameInfo &MFI = MF.getFrameInfo(); in hasFP()
64 bool NeedsFixedReference = !hasBP(MF) || HasFixedSizedObjects; in hasFP()
77 const MachineFunction &MF) const { in hasReservedCallFrame()
78 return !MF.getFrameInfo().hasVarSizedObjects(); in hasReservedCallFrame()
85 bool WebAssemblyFrameLowering::needsSP(const MachineFunction &MF, in needsSP() argument
87 return MFI.getStackSize() || MFI.adjustsStack() || hasFP(MF); in needsSP()
[all …]
DWebAssemblyLateEHPrepare.cpp32 bool runOnMachineFunction(MachineFunction &MF) override;
34 bool replaceFuncletReturns(MachineFunction &MF);
35 bool hoistCatches(MachineFunction &MF);
36 bool addCatchAlls(MachineFunction &MF);
37 bool addRethrows(MachineFunction &MF);
38 bool ensureSingleBBTermPads(MachineFunction &MF);
39 bool mergeTerminatePads(MachineFunction &MF);
40 bool addCatchAllTerminatePads(MachineFunction &MF);
63 MachineFunction *MF = MI->getParent()->getParent(); in GetMatchingEHPad() local
79 if (MBB == &MF->front()) in GetMatchingEHPad()
[all …]
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyFrameLowering.cpp42 bool WebAssemblyFrameLowering::hasFP(const MachineFunction &MF) const { in hasFP()
43 const MachineFrameInfo *MFI = MF.getFrameInfo(); in hasFP()
45 MF.getSubtarget<WebAssemblySubtarget>().getRegisterInfo(); in hasFP()
48 RegInfo->needsStackRealignment(MF); in hasFP()
57 const MachineFunction &MF) const { in hasReservedCallFrame()
58 return !MF.getFrameInfo()->hasVarSizedObjects(); in hasReservedCallFrame()
65 bool WebAssemblyFrameLowering::needsSP(const MachineFunction &MF, in needsSP() argument
67 return MFI.getStackSize() || MFI.adjustsStack() || hasFP(MF); in needsSP()
74 const MachineFunction &MF, const MachineFrameInfo &MFI) const { in needsSPWriteback() argument
75 assert(needsSP(MF, MFI)); in needsSPWriteback()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/MI/
DLiveIntervalTest.cpp85 bool runOnMachineFunction(MachineFunction &MF) override { in runOnMachineFunction()
87 T(MF, LIS); in runOnMachineFunction()
88 EXPECT_TRUE(MF.verify(this)); in runOnMachineFunction()
102 static MachineInstr &getMI(MachineFunction &MF, unsigned At, in getMI() argument
104 MachineBasicBlock &MBB = *MF.getBlockNumbered(BlockNum); in getMI()
119 static void testHandleMove(MachineFunction &MF, LiveIntervals &LIS, in testHandleMove() argument
121 MachineInstr &FromInstr = getMI(MF, From, BlockNum); in testHandleMove()
122 MachineInstr &ToInstr = getMI(MF, To, BlockNum); in testHandleMove()
170 )MIR", [](MachineFunction &MF, LiveIntervals &LIS) { in TEST() argument
171 testHandleMove(MF, LIS, 2, 1); in TEST()
[all …]
/external/llvm/lib/Target/Sparc/
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()
92 *static_cast<const SparcInstrInfo *>(MF.getSubtarget().getInstrInfo()); in emitPrologue()
94 *static_cast<const SparcRegisterInfo *>(MF.getSubtarget().getRegisterInfo()); in emitPrologue()
99 bool NeedsStackRealignment = RegInfo.needsStackRealignment(MF); in emitPrologue()
107 report_fatal_error("Function \"" + Twine(MF.getName()) + "\" required " in emitPrologue()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/RISCV/
DRISCVFrameLowering.cpp25 bool RISCVFrameLowering::hasFP(const MachineFunction &MF) const { in hasFP()
26 const TargetRegisterInfo *RegInfo = MF.getSubtarget().getRegisterInfo(); in hasFP()
28 const MachineFrameInfo &MFI = MF.getFrameInfo(); in hasFP()
29 return MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP()
30 RegInfo->needsStackRealignment(MF) || MFI.hasVarSizedObjects() || in hasFP()
35 void RISCVFrameLowering::determineFrameLayout(MachineFunction &MF) const { in determineFrameLayout()
36 MachineFrameInfo &MFI = MF.getFrameInfo(); in determineFrameLayout()
43 uint64_t StackAlign = RI->needsStackRealignment(MF) ? MFI.getMaxAlignment() in determineFrameLayout()
94 void RISCVFrameLowering::emitPrologue(MachineFunction &MF, in emitPrologue() argument
96 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported"); in emitPrologue()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMBaseRegisterInfo.cpp66 ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs()
67 const ARMSubtarget &STI = MF->getSubtarget<ARMSubtarget>(); in getCalleeSavedRegs()
68 bool UseSplitPush = STI.splitFramePushPop(*MF); in getCalleeSavedRegs()
74 const Function &F = MF->getFunction(); in getCalleeSavedRegs()
105 return MF->getInfo<ARMFunctionInfo>()->isSplitCSR() in getCalleeSavedRegs()
112 const MachineFunction *MF) const { in getCalleeSavedRegsViaCopy()
113 assert(MF && "Invalid MachineFunction pointer."); in getCalleeSavedRegsViaCopy()
114 if (MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS && in getCalleeSavedRegsViaCopy()
115 MF->getInfo<ARMFunctionInfo>()->isSplitCSR()) in getCalleeSavedRegsViaCopy()
121 ARMBaseRegisterInfo::getCallPreservedMask(const MachineFunction &MF, in getCallPreservedMask() argument
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/
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.needsStackRealignment(MF); in emitPrologue()
108 report_fatal_error("Function \"" + Twine(MF.getName()) + "\" required " in emitPrologue()
140 if (MFI.adjustsStack() && hasReservedCallFrame(MF)) in emitPrologue()
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DCodePlacementOpt.cpp41 virtual bool runOnMachineFunction(MachineFunction &MF);
55 void Splice(MachineFunction &MF,
59 bool EliminateUnconditionalJumpsToTop(MachineFunction &MF,
61 bool MoveDiscontiguousLoopBlocks(MachineFunction &MF,
63 bool OptimizeIntraLoopEdgesInLoopNest(MachineFunction &MF, MachineLoop *L);
64 bool OptimizeIntraLoopEdges(MachineFunction &MF);
65 bool AlignLoops(MachineFunction &MF);
66 bool AlignLoop(MachineFunction &MF, MachineLoop *L, unsigned Align);
133 void CodePlacementOpt::Splice(MachineFunction &MF, in Splice() argument
137 assert(Begin != MF.begin() && End != MF.begin() && InsertPt != MF.begin() && in Splice()
[all …]
/external/llvm/unittests/MI/
DLiveIntervalTest.cpp90 bool runOnMachineFunction(MachineFunction &MF) override { in runOnMachineFunction()
92 T(MF, LIS); in runOnMachineFunction()
93 EXPECT_TRUE(MF.verify(this)); in runOnMachineFunction()
111 static void testHandleMove(MachineFunction &MF, LiveIntervals &LIS, in testHandleMove() argument
113 MachineBasicBlock &MBB = *MF.getBlockNumbered(BlockNum); in testHandleMove()
171 [](MachineFunction &MF, LiveIntervals &LIS) { in TEST() argument
172 testHandleMove(MF, LIS, 2, 1); in TEST()
182 [](MachineFunction &MF, LiveIntervals &LIS) { in TEST() argument
183 testHandleMove(MF, LIS, 2, 1); in TEST()
193 [](MachineFunction &MF, LiveIntervals &LIS) { in TEST() argument
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DTargetFrameLowering.h102 virtual unsigned getStackAlignmentSkew(const MachineFunction &MF) const;
121 assignCalleeSavedSpillSlots(MachineFunction &MF, in assignCalleeSavedSpillSlots() argument
150 virtual bool enableShrinkWrapping(const MachineFunction &MF) const { in enableShrinkWrapping() argument
157 virtual bool enableStackSlotScavenging(const MachineFunction &MF) const { in enableStackSlotScavenging() argument
163 virtual bool enableCalleeSaveSkip(const MachineFunction &MF) const;
167 virtual void emitPrologue(MachineFunction &MF,
169 virtual void emitEpilogue(MachineFunction &MF,
173 virtual void inlineStackProbe(MachineFunction &MF, in inlineStackProbe() argument
178 virtual void adjustForSegmentedStacks(MachineFunction &MF, in adjustForSegmentedStacks() argument
183 virtual void adjustForHiPEPrologue(MachineFunction &MF, in adjustForHiPEPrologue() argument
[all …]
/external/llvm/lib/Target/ARM/
DARMBaseRegisterInfo.cpp61 ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs()
62 const ARMSubtarget &STI = MF->getSubtarget<ARMSubtarget>(); in getCalleeSavedRegs()
69 const Function *F = MF->getFunction(); in getCalleeSavedRegs()
95 return MF->getInfo<ARMFunctionInfo>()->isSplitCSR() in getCalleeSavedRegs()
102 const MachineFunction *MF) const { in getCalleeSavedRegsViaCopy()
103 assert(MF && "Invalid MachineFunction pointer."); in getCalleeSavedRegsViaCopy()
104 if (MF->getFunction()->getCallingConv() == CallingConv::CXX_FAST_TLS && in getCalleeSavedRegsViaCopy()
105 MF->getInfo<ARMFunctionInfo>()->isSplitCSR()) in getCalleeSavedRegsViaCopy()
111 ARMBaseRegisterInfo::getCallPreservedMask(const MachineFunction &MF, in getCallPreservedMask() argument
113 const ARMSubtarget &STI = MF.getSubtarget<ARMSubtarget>(); in getCallPreservedMask()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86FrameLowering.h54 void emitStackProbe(MachineFunction &MF, MachineBasicBlock &MBB,
59 void inlineStackProbe(MachineFunction &MF,
68 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
69 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
71 void adjustForSegmentedStacks(MachineFunction &MF,
74 void adjustForHiPEPrologue(MachineFunction &MF,
77 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
81 assignCalleeSavedSpillSlots(MachineFunction &MF,
95 bool hasFP(const MachineFunction &MF) const override;
96 bool hasReservedCallFrame(const MachineFunction &MF) const override;
[all …]
/external/llvm/lib/CodeGen/
DTargetFrameLoweringImpl.cpp32 bool TargetFrameLowering::noFramePointerElim(const MachineFunction &MF) const { in noFramePointerElim()
33 auto Attr = MF.getFunction()->getFnAttribute("no-frame-pointer-elim"); in noFramePointerElim()
41 int TargetFrameLowering::getFrameIndexReference(const MachineFunction &MF, in getFrameIndexReference() argument
43 const MachineFrameInfo *MFI = MF.getFrameInfo(); in getFrameIndexReference()
44 const TargetRegisterInfo *RI = MF.getSubtarget().getRegisterInfo(); in getFrameIndexReference()
49 FrameReg = RI->getFrameRegister(MF); in getFrameIndexReference()
56 const MachineFunction &MF) const { in needsFrameIndexResolution()
57 return MF.getFrameInfo()->hasStackObjects(); in needsFrameIndexResolution()
60 void TargetFrameLowering::determineCalleeSaves(MachineFunction &MF, in determineCalleeSaves() argument
63 const TargetRegisterInfo &TRI = *MF.getSubtarget().getRegisterInfo(); in determineCalleeSaves()
[all …]
/external/llvm/include/llvm/Target/
DTargetFrameLowering.h102 virtual unsigned getStackAlignmentSkew(const MachineFunction &MF) const;
121 assignCalleeSavedSpillSlots(MachineFunction &MF, in assignCalleeSavedSpillSlots() argument
150 virtual bool enableShrinkWrapping(const MachineFunction &MF) const { in enableShrinkWrapping() argument
157 virtual bool enableStackSlotScavenging(const MachineFunction &MF) const { in enableStackSlotScavenging() argument
163 virtual void emitPrologue(MachineFunction &MF,
165 virtual void emitEpilogue(MachineFunction &MF,
169 virtual void inlineStackProbe(MachineFunction &MF, in inlineStackProbe() argument
174 virtual void adjustForSegmentedStacks(MachineFunction &MF, in adjustForSegmentedStacks() argument
179 virtual void adjustForHiPEPrologue(MachineFunction &MF, in adjustForHiPEPrologue() argument
185 adjustForFrameAllocatePrologue(MachineFunction &MF, in adjustForFrameAllocatePrologue() argument
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/CodeGen/
DMachineInstrTest.cpp40 void emitPrologue(MachineFunction &MF, in emitPrologue() argument
42 void emitEpilogue(MachineFunction &MF, in emitEpilogue() argument
44 bool hasFP(const MachineFunction &MF) const override { return false; } in hasFP()
104 auto MF = createMachineFunction(); in TEST() local
120 auto MI1 = MF->CreateMachineInstr(MCID, DebugLoc()); in TEST()
121 MI1->addOperand(*MF, MachineOperand::CreateReg(VirtualDef1, /*isDef*/ true)); in TEST()
122 MI1->addOperand(*MF, MachineOperand::CreateReg(VirtualUse, /*isDef*/ false)); in TEST()
124 auto MI2 = MF->CreateMachineInstr(MCID, DebugLoc()); in TEST()
125 MI2->addOperand(*MF, MachineOperand::CreateReg(VirtualDef2, /*isDef*/ true)); in TEST()
126 MI2->addOperand(*MF, MachineOperand::CreateReg(VirtualUse, /*isDef*/ false)); in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DSIFrameLowering.cpp27 const MachineFunction &MF) { in getAllSGPR128() argument
29 ST.getMaxNumSGPRs(MF) / 4); in getAllSGPR128()
33 const MachineFunction &MF) { in getAllSGPRs() argument
35 ST.getMaxNumSGPRs(MF)); in getAllSGPRs()
39 MachineFunction &MF, in emitFlatScratchInit() argument
43 const SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>(); in emitFlatScratchInit()
63 MachineRegisterInfo &MRI = MF.getRegInfo(); in emitFlatScratchInit()
105 MachineFunction &MF) const { in getReservedPrivateSegmentBufferReg()
106 MachineRegisterInfo &MRI = MF.getRegInfo(); in getReservedPrivateSegmentBufferReg()
115 ScratchRsrcReg != TRI->reservedPrivateSegmentBufferReg(MF)) in getReservedPrivateSegmentBufferReg()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMFrameLowering.cpp33 bool ARMFrameLowering::hasFP(const MachineFunction &MF) const { in hasFP()
34 const TargetRegisterInfo *RegInfo = MF.getTarget().getRegisterInfo(); in hasFP()
40 const MachineFrameInfo *MFI = MF.getFrameInfo(); in hasFP()
42 return ((DisableFramePointerElim(MF) && MFI->hasCalls()) || in hasFP()
43 RegInfo->needsStackRealignment(MF) || in hasFP()
53 bool ARMFrameLowering::hasReservedCallFrame(const MachineFunction &MF) const { in hasReservedCallFrame()
54 const MachineFrameInfo *FFI = MF.getFrameInfo(); in hasReservedCallFrame()
63 return !MF.getFrameInfo()->hasVarSizedObjects(); in hasReservedCallFrame()
71 ARMFrameLowering::canSimplifyCallFramePseudos(const MachineFunction &MF) const { in canSimplifyCallFramePseudos()
72 return hasReservedCallFrame(MF) || MF.getFrameInfo()->hasVarSizedObjects(); in canSimplifyCallFramePseudos()
[all …]
/external/llvm/lib/Target/X86/
DX86FrameLowering.h54 MachineInstr *emitStackProbe(MachineFunction &MF, MachineBasicBlock &MBB,
59 void inlineStackProbe(MachineFunction &MF,
68 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
69 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
71 void adjustForSegmentedStacks(MachineFunction &MF,
74 void adjustForHiPEPrologue(MachineFunction &MF,
77 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
81 assignCalleeSavedSpillSlots(MachineFunction &MF,
95 bool hasFP(const MachineFunction &MF) const override;
96 bool hasReservedCallFrame(const MachineFunction &MF) const override;
[all …]

12345678910>>...82