Home
last modified time | relevance | path

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

12345678910>>...49

/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 …]
DAArch64RegisterInfo.h34 bool isReservedReg(const MachineFunction &MF, unsigned Reg) const;
37 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
39 getCalleeSavedRegsViaCopy(const MachineFunction *MF) const override;
40 const uint32_t *getCallPreservedMask(const MachineFunction &MF,
62 const uint32_t *getThisReturnPreservedMask(const MachineFunction &MF,
65 BitVector getReservedRegs(const MachineFunction &MF) const override;
67 getPointerRegClass(const MachineFunction &MF,
72 bool requiresRegisterScavenging(const MachineFunction &MF) const override;
73 bool useFPForScavengingIndex(const MachineFunction &MF) const override;
74 bool requiresFrameIndexScavenging(const MachineFunction &MF) const override;
[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/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/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/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/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 …]
DStackMapLivenessAnalysis.cpp71 bool runOnMachineFunction(MachineFunction &MF) override;
75 bool calculateLiveness(MachineFunction &MF);
78 void addLiveOutSetToMI(MachineFunction &MF, MachineInstr &MI);
82 uint32_t *createRegisterMask(MachineFunction &MF) const;
106 bool StackMapLiveness::runOnMachineFunction(MachineFunction &MF) { in runOnMachineFunction() argument
110 DEBUG(dbgs() << "********** COMPUTING STACKMAP LIVENESS: " << MF.getName() in runOnMachineFunction()
112 TRI = MF.getSubtarget().getRegisterInfo(); in runOnMachineFunction()
116 if (!MF.getFrameInfo()->hasPatchPoint()) { in runOnMachineFunction()
120 return calculateLiveness(MF); in runOnMachineFunction()
124 bool StackMapLiveness::calculateLiveness(MachineFunction &MF) { in calculateLiveness() argument
[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/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/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 …]
DX86RegisterInfo.cpp82 X86RegisterInfo::trackLivenessAfterRegAlloc(const MachineFunction &MF) const { in trackLivenessAfterRegAlloc()
119 const MachineFunction &MF) const { in getLargestLegalSuperClass()
157 X86RegisterInfo::getPointerRegClass(const MachineFunction &MF, in getPointerRegClass() argument
159 const X86Subtarget &Subtarget = MF.getSubtarget<X86Subtarget>(); in getPointerRegClass()
172 const X86FrameLowering *TFI = getFrameLowering(MF); in getPointerRegClass()
173 return TFI->hasFP(MF) && TFI->Uses64BitFramePtr in getPointerRegClass()
193 return getGPRsForTailCall(MF); in getPointerRegClass()
198 X86RegisterInfo::getGPRsForTailCall(const MachineFunction &MF) const { in getGPRsForTailCall()
199 const Function *F = MF.getFunction(); in getGPRsForTailCall()
224 MachineFunction &MF) const { in getRegPressureLimit()
[all …]
DX86FrameLowering.cpp52 bool X86FrameLowering::hasReservedCallFrame(const MachineFunction &MF) const { in hasReservedCallFrame()
53 return !MF.getFrameInfo()->hasVarSizedObjects() && in hasReservedCallFrame()
54 !MF.getInfo<X86MachineFunctionInfo>()->getHasPushSequences(); in hasReservedCallFrame()
62 X86FrameLowering::canSimplifyCallFramePseudos(const MachineFunction &MF) const { in canSimplifyCallFramePseudos()
63 return hasReservedCallFrame(MF) || in canSimplifyCallFramePseudos()
64 (hasFP(MF) && !TRI->needsStackRealignment(MF)) || in canSimplifyCallFramePseudos()
65 TRI->hasBasePointer(MF); in canSimplifyCallFramePseudos()
76 X86FrameLowering::needsFrameIndexResolution(const MachineFunction &MF) const { in needsFrameIndexResolution()
77 return MF.getFrameInfo()->hasStackObjects() || in needsFrameIndexResolution()
78 MF.getInfo<X86MachineFunctionInfo>()->getHasPushSequences(); in needsFrameIndexResolution()
[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/MSP430/
DMSP430FrameLowering.cpp29 bool MSP430FrameLowering::hasFP(const MachineFunction &MF) const { in hasFP()
30 const MachineFrameInfo *MFI = MF.getFrameInfo(); in hasFP()
32 return (MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP()
33 MF.getFrameInfo()->hasVarSizedObjects() || in hasFP()
37 bool MSP430FrameLowering::hasReservedCallFrame(const MachineFunction &MF) const { in hasReservedCallFrame()
38 return !MF.getFrameInfo()->hasVarSizedObjects(); in hasReservedCallFrame()
41 void MSP430FrameLowering::emitPrologue(MachineFunction &MF, in emitPrologue() argument
43 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported"); in emitPrologue()
44 MachineFrameInfo *MFI = MF.getFrameInfo(); in emitPrologue()
45 MSP430MachineFunctionInfo *MSP430FI = MF.getInfo<MSP430MachineFunctionInfo>(); in emitPrologue()
[all …]
/external/llvm/lib/Target/Mips/
DMipsRegisterInfo.cpp50 MipsRegisterInfo::getPointerRegClass(const MachineFunction &MF, in getPointerRegClass() argument
52 MipsABIInfo ABI = MF.getSubtarget<MipsSubtarget>().getABI(); in getPointerRegClass()
72 MachineFunction &MF) const { in getRegPressureLimit()
79 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in getRegPressureLimit()
80 return 28 - TFI->hasFP(MF); in getRegPressureLimit()
97 MipsRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs()
98 const MipsSubtarget &Subtarget = MF->getSubtarget<MipsSubtarget>(); in getCalleeSavedRegs()
99 const Function *F = MF->getFunction(); in getCalleeSavedRegs()
128 MipsRegisterInfo::getCallPreservedMask(const MachineFunction &MF, in getCallPreservedMask() argument
130 const MipsSubtarget &Subtarget = MF.getSubtarget<MipsSubtarget>(); in getCallPreservedMask()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCRegisterInfo.cpp86 PPCRegisterInfo::getPointerRegClass(const MachineFunction &MF, unsigned Kind) in getPointerRegClass() argument
102 PPCRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs()
103 const PPCSubtarget &Subtarget = MF->getSubtarget<PPCSubtarget>(); in getCalleeSavedRegs()
104 if (MF->getFunction()->getCallingConv() == CallingConv::AnyReg) { in getCalleeSavedRegs()
119 if (TM.isPPC64() && MF->getInfo<PPCFunctionInfo>()->isSplitCSR()) in getCalleeSavedRegs()
123 bool SaveR2 = MF->getRegInfo().isAllocatable(PPC::X2); in getCalleeSavedRegs()
135 PPCRegisterInfo::getCalleeSavedRegsViaCopy(const MachineFunction *MF) const { in getCalleeSavedRegsViaCopy()
136 assert(MF && "Invalid MachineFunction pointer."); in getCalleeSavedRegsViaCopy()
137 const PPCSubtarget &Subtarget = MF->getSubtarget<PPCSubtarget>(); in getCalleeSavedRegsViaCopy()
142 if (MF->getFunction()->getCallingConv() != CallingConv::CXX_FAST_TLS) in getCalleeSavedRegsViaCopy()
[all …]
DPPCMachineFunctionInfo.cpp21 const DataLayout &DL = MF.getDataLayout(); in getPICOffsetSymbol()
22 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) + in getPICOffsetSymbol()
23 Twine(MF.getFunctionNumber()) + in getPICOffsetSymbol()
28 const DataLayout &DL = MF.getDataLayout(); in getGlobalEPSymbol()
29 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) + in getGlobalEPSymbol()
31 Twine(MF.getFunctionNumber())); in getGlobalEPSymbol()
35 const DataLayout &DL = MF.getDataLayout(); in getLocalEPSymbol()
36 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) + in getLocalEPSymbol()
38 Twine(MF.getFunctionNumber())); in getLocalEPSymbol()
42 const DataLayout &DL = MF.getDataLayout(); in getTOCOffsetSymbol()
[all …]
/external/llvm/lib/Target/NVPTX/
DNVPTXReplaceImageHandles.cpp37 bool runOnMachineFunction(MachineFunction &MF) override;
44 void replaceImageHandle(MachineOperand &Op, MachineFunction &MF);
45 bool findIndexForHandle(MachineOperand &Op, MachineFunction &MF,
55 bool NVPTXReplaceImageHandles::runOnMachineFunction(MachineFunction &MF) { in runOnMachineFunction() argument
59 for (MachineFunction::iterator BI = MF.begin(), BE = MF.end(); BI != BE; in runOnMachineFunction()
80 MachineFunction &MF = *MI.getParent()->getParent(); in processInstr() local
87 replaceImageHandle(TexHandle, MF); in processInstr()
91 replaceImageHandle(SampHandle, MF); in processInstr()
102 replaceImageHandle(SurfHandle, MF); in processInstr()
109 replaceImageHandle(SurfHandle, MF); in processInstr()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/MBlaze/
DMBlazeFrameLowering.cpp43 static void replaceFrameIndexes(MachineFunction &MF, in replaceFrameIndexes() argument
45 MachineFrameInfo *MFI = MF.getFrameInfo(); in replaceFrameIndexes()
46 MBlazeFunctionInfo *MBlazeFI = MF.getInfo<MBlazeFunctionInfo>(); in replaceFrameIndexes()
56 for (MachineFunction::iterator MB=MF.begin(), ME=MF.end(); MB!=ME; ++MB) { in replaceFrameIndexes()
87 static void analyzeFrameIndexes(MachineFunction &MF) { in analyzeFrameIndexes() argument
90 MachineFrameInfo *MFI = MF.getFrameInfo(); in analyzeFrameIndexes()
91 MBlazeFunctionInfo *MBlazeFI = MF.getInfo<MBlazeFunctionInfo>(); in analyzeFrameIndexes()
92 const MachineRegisterInfo &MRI = MF.getRegInfo(); in analyzeFrameIndexes()
100 MachineBasicBlock *MBB = MF.getBlockNumbered(0); in analyzeFrameIndexes()
211 replaceFrameIndexes(MF, FrameRelocate); in analyzeFrameIndexes()
[all …]
/external/llvm/lib/Target/SystemZ/
DSystemZFrameLowering.cpp65 void SystemZFrameLowering::determineCalleeSaves(MachineFunction &MF, in determineCalleeSaves() argument
68 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS); in determineCalleeSaves()
70 MachineFrameInfo *MFFrame = MF.getFrameInfo(); in determineCalleeSaves()
71 const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo(); in determineCalleeSaves()
72 bool HasFP = hasFP(MF); in determineCalleeSaves()
73 SystemZMachineFunctionInfo *MFI = MF.getInfo<SystemZMachineFunctionInfo>(); in determineCalleeSaves()
74 bool IsVarArg = MF.getFunction()->isVarArg(); in determineCalleeSaves()
85 if (!MF.getMMI().getLandingPads().empty()) { in determineCalleeSaves()
104 const MCPhysReg *CSRegs = TRI->getCalleeSavedRegs(&MF); in determineCalleeSaves()
139 MachineFunction &MF = *MBB.getParent(); in spillCalleeSavedRegisters() local
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/Blackfin/
DBlackfinFrameLowering.cpp28 bool BlackfinFrameLowering::hasFP(const MachineFunction &MF) const { in hasFP()
29 const MachineFrameInfo *MFI = MF.getFrameInfo(); in hasFP()
30 return DisableFramePointerElim(MF) || in hasFP()
36 hasReservedCallFrame(const MachineFunction &MF) const { in hasReservedCallFrame()
43 void BlackfinFrameLowering::emitPrologue(MachineFunction &MF) const { in emitPrologue()
44 MachineBasicBlock &MBB = MF.front(); // Prolog goes in entry BB in emitPrologue()
46 MachineFrameInfo *MFI = MF.getFrameInfo(); in emitPrologue()
48 static_cast<const BlackfinRegisterInfo*>(MF.getTarget().getRegisterInfo()); in emitPrologue()
50 *static_cast<const BlackfinInstrInfo*>(MF.getTarget().getInstrInfo()); in emitPrologue()
60 if (!hasFP(MF)) { in emitPrologue()
[all …]
/external/llvm/lib/Target/XCore/
DXCoreFrameLowering.cpp177 MachineFunction *MF = MBB.getParent(); in getFrameIndexMMO() local
178 const MachineFrameInfo &MFI = *MF->getFrameInfo(); in getFrameIndexMMO()
179 MachineMemOperand *MMO = MF->getMachineMemOperand( in getFrameIndexMMO()
180 MachinePointerInfo::getFixedStack(*MF, FrameIndex), flags, in getFrameIndexMMO()
217 bool XCoreFrameLowering::hasFP(const MachineFunction &MF) const { in hasFP()
218 return MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP()
219 MF.getFrameInfo()->hasVarSizedObjects(); in hasFP()
222 void XCoreFrameLowering::emitPrologue(MachineFunction &MF, in emitPrologue() argument
224 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported"); in emitPrologue()
226 MachineFrameInfo *MFI = MF.getFrameInfo(); in emitPrologue()
[all …]
/external/llvm/include/llvm/CodeGen/
DMachineInstrBuilder.h48 MachineFunction *MF; variable
51 MachineInstrBuilder() : MF(nullptr), MI(nullptr) {} in MachineInstrBuilder()
55 MachineInstrBuilder(MachineFunction &F, MachineInstr *I) : MF(&F), MI(I) {} in MachineInstrBuilder()
57 : MF(&F), MI(&*I) {} in MachineInstrBuilder()
73 MI->addOperand(*MF, MachineOperand::CreateReg(RegNo,
88 MI->addOperand(*MF, MachineOperand::CreateImm(Val)); in addImm()
93 MI->addOperand(*MF, MachineOperand::CreateCImm(Val)); in addCImm()
98 MI->addOperand(*MF, MachineOperand::CreateFPImm(Val)); in addFPImm()
104 MI->addOperand(*MF, MachineOperand::CreateMBB(MBB, TargetFlags));
109 MI->addOperand(*MF, MachineOperand::CreateFI(Idx)); in addFrameIndex()
[all …]

12345678910>>...49