/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyFrameLowering.cpp | 46 bool WebAssemblyFrameLowering::hasBP(const MachineFunction &MF) const { in hasBP() 48 MF.getSubtarget<WebAssemblySubtarget>().getRegisterInfo(); in hasBP() 49 return RegInfo->hasStackRealignment(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() 84 const MachineFunction &MF) const { in needsSPForLocalFrame() 85 auto &MFI = MF.getFrameInfo(); in needsSPForLocalFrame() [all …]
|
H A D | WebAssemblyLateEHPrepare.cpp | 34 bool runOnMachineFunction(MachineFunction &MF) override; 35 bool removeUnreachableEHPads(MachineFunction &MF); 36 void recordCatchRetBBs(MachineFunction &MF); 37 bool hoistCatches(MachineFunction &MF); 38 bool addCatchAlls(MachineFunction &MF); 39 bool replaceFuncletReturns(MachineFunction &MF); 40 bool removeUnnecessaryUnreachables(MachineFunction &MF); 41 bool restoreStackPointer(MachineFunction &MF); 68 MachineFunction *MF = MI->getParent()->getParent(); in getMatchingEHPad() local 84 if (MBB == &MF->front()) in getMatchingEHPad() [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 hasFP(const MachineFunction &MF) const override; 45 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, 56 static unsigned getSPReg(const MachineFunction &MF); 57 static unsigned getFPReg(const MachineFunction &MF); [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/ |
H A D | AArch64RegisterInfo.cpp | 66 bool AArch64RegisterInfo::hasSVEArgsOrReturn(const MachineFunction *MF) { in hasSVEArgsOrReturn() argument 67 const Function &F = MF->getFunction(); in hasSVEArgsOrReturn() 75 AArch64RegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs() 76 assert(MF && "Invalid MachineFunction pointer."); in getCalleeSavedRegs() 78 if (MF->getFunction().getCallingConv() == CallingConv::GHC) in getCalleeSavedRegs() 82 if (MF->getFunction().getCallingConv() == CallingConv::AnyReg) in getCalleeSavedRegs() 87 if (MF->getSubtarget<AArch64Subtarget>().isTargetDarwin()) in getCalleeSavedRegs() 88 return getDarwinCalleeSavedRegs(MF); in getCalleeSavedRegs() 90 if (MF->getFunction().getCallingConv() == CallingConv::CFGuard_Check) in getCalleeSavedRegs() 92 if (MF->getSubtarget<AArch64Subtarget>().isTargetWindows()) in getCalleeSavedRegs() [all …]
|
H A D | AArch64FrameLowering.h | 34 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, 39 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 40 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 44 StackOffset getFrameIndexReference(const MachineFunction &MF, int FI, 46 StackOffset resolveFrameIndexReference(const MachineFunction &MF, int FI, 49 StackOffset resolveFrameOffsetReference(const MachineFunction &MF, 65 bool canUseRedZone(const MachineFunction &MF) const; 67 bool hasFP(const MachineFunction &MF) const override; 68 bool hasReservedCallFrame(const MachineFunction &MF) const override; 70 bool hasSwiftExtendedFrame(const MachineFunction &MF) const; [all …]
|
H A D | AArch64RegisterInfo.h | 37 bool isReservedReg(const MachineFunction &MF, MCRegister 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, 45 static bool hasSVEArgsOrReturn(const 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; 52 const uint32_t *getCallPreservedMask(const MachineFunction &MF, [all …]
|
H A D | AArch64FrameLowering.cpp | 202 static int64_t getArgumentStackToRestore(MachineFunction &MF, in getArgumentStackToRestore() argument 212 AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in getArgumentStackToRestore() 233 static bool produceCompactUnwindFrame(MachineFunction &MF); 234 static bool needsWinCFI(const MachineFunction &MF); 235 static StackOffset getSVEStackSize(const MachineFunction &MF); 241 MachineFunction &MF, MachineBasicBlock *Exit) const { in homogeneousPrologEpilog() argument 242 if (!MF.getFunction().hasMinSize()) in homogeneousPrologEpilog() 252 if (needsWinCFI(MF)) in homogeneousPrologEpilog() 255 if (getSVEStackSize(MF)) in homogeneousPrologEpilog() 259 const MachineFrameInfo &MFI = MF.getFrameInfo(); in homogeneousPrologEpilog() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
H A D | TargetFrameLoweringImpl.cpp | 33 bool TargetFrameLowering::enableCalleeSaveSkip(const MachineFunction &MF) const { in enableCalleeSaveSkip() 34 assert(MF.getFunction().hasFnAttribute(Attribute::NoReturn) && in enableCalleeSaveSkip() 35 MF.getFunction().hasFnAttribute(Attribute::NoUnwind) && in enableCalleeSaveSkip() 36 !MF.getFunction().hasFnAttribute(Attribute::UWTable)); in enableCalleeSaveSkip() 45 TargetFrameLowering::getFrameIndexReference(const MachineFunction &MF, int FI, in getFrameIndexReference() argument 47 const MachineFrameInfo &MFI = MF.getFrameInfo(); in getFrameIndexReference() 48 const TargetRegisterInfo *RI = MF.getSubtarget().getRegisterInfo(); in getFrameIndexReference() 53 FrameReg = RI->getFrameRegister(MF); in getFrameIndexReference() 61 const MachineFunction &MF) const { in needsFrameIndexResolution() 62 return MF.getFrameInfo().hasStackObjects(); in needsFrameIndexResolution() [all …]
|
H A D | PrologEpilogInserter.cpp | 97 bool runOnMachineFunction(MachineFunction &MF) override; 124 void calculateCallFrameInfo(MachineFunction &MF); 125 void calculateSaveRestoreBlocks(MachineFunction &MF); 126 void spillCalleeSavedRegs(MachineFunction &MF); 128 void calculateFrameObjectOffsets(MachineFunction &MF); 129 void replaceFrameIndices(MachineFunction &MF); 130 void replaceFrameIndices(MachineBasicBlock *BB, MachineFunction &MF, 132 void insertPrologEpilogCode(MachineFunction &MF); 216 bool PEI::runOnMachineFunction(MachineFunction &MF) { in runOnMachineFunction() argument 218 const Function &F = MF.getFunction(); in runOnMachineFunction() [all …]
|
H A D | BasicBlockSections.cpp | 150 bool runOnMachineFunction(MachineFunction &MF) override; 164 MachineFunction &MF, in updateBranches() argument 166 const TargetInstrInfo *TII = MF.getSubtarget().getInstrInfo(); in updateBranches() 168 for (auto &MBB : MF) { in updateBranches() 198 const MachineFunction &MF, const StringMap<StringRef> FuncAliasMap, in getBBClusterInfoForFunction() argument 202 auto FuncName = MF.getName(); in getBBClusterInfoForFunction() 218 V.resize(MF.getNumBlockIDs()); in getBBClusterInfoForFunction() 221 if (bbClusterInfo.MBBNumber >= MF.getNumBlockIDs()) in getBBClusterInfoForFunction() 238 assignSections(MachineFunction &MF, in assignSections() argument 240 assert(MF.hasBBSections() && "BB Sections is not set for function."); in assignSections() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/RISCV/ |
H A D | RISCVFrameLowering.cpp | 28 static void emitSCSPrologue(MachineFunction &MF, MachineBasicBlock &MBB, in emitSCSPrologue() argument 31 if (!MF.getFunction().hasFnAttribute(Attribute::ShadowCallStack)) in emitSCSPrologue() 34 const auto &STI = MF.getSubtarget<RISCVSubtarget>(); in emitSCSPrologue() 39 std::vector<CalleeSavedInfo> &CSI = MF.getFrameInfo().getCalleeSavedInfo(); in emitSCSPrologue() 46 auto &Ctx = MF.getFunction().getContext(); in emitSCSPrologue() 49 MF.getFunction(), "x18 not reserved by user for Shadow Call Stack."}); in emitSCSPrologue() 53 const auto *RVFI = MF.getInfo<RISCVMachineFunctionInfo>(); in emitSCSPrologue() 54 if (RVFI->useSaveRestoreLibCalls(MF)) { in emitSCSPrologue() 56 MF.getFunction(), in emitSCSPrologue() 77 static void emitSCSEpilogue(MachineFunction &MF, MachineBasicBlock &MBB, in emitSCSEpilogue() argument [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/VE/ |
H A D | VEFrameLowering.cpp | 135 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/ |
H A D | X86FrameLowering.h | 54 void emitStackProbe(MachineFunction &MF, MachineBasicBlock &MBB, 59 void inlineStackProbe(MachineFunction &MF, 73 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 74 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 76 void adjustForSegmentedStacks(MachineFunction &MF, 79 void adjustForHiPEPrologue(MachineFunction &MF, 82 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, 86 assignCalleeSavedSpillSlots(MachineFunction &MF, 101 bool hasFP(const MachineFunction &MF) const override; 102 bool hasReservedCallFrame(const MachineFunction &MF) const override; [all …]
|
H A D | X86IndirectThunks.cpp | 63 bool mayUseThunk(const MachineFunction &MF) { in mayUseThunk() 64 const auto &STI = MF.getSubtarget<X86Subtarget>(); in mayUseThunk() 70 void populateThunk(MachineFunction &MF); 75 bool mayUseThunk(const MachineFunction &MF) { in mayUseThunk() 76 return MF.getSubtarget<X86Subtarget>().useLVIControlFlowIntegrity(); in mayUseThunk() 81 void populateThunk(MachineFunction &MF) { in populateThunk() 82 assert (MF.size() == 1); in populateThunk() 83 MachineBasicBlock *Entry = &MF.front(); in populateThunk() 94 const TargetInstrInfo *TII = MF.getSubtarget<X86Subtarget>().getInstrInfo(); in populateThunk() 95 BuildMI(&MF.front(), DebugLoc(), TII->get(X86::LFENCE)); in populateThunk() [all …]
|
H A D | X86FrameLowering.cpp | 59 bool X86FrameLowering::hasReservedCallFrame(const MachineFunction &MF) const { in hasReservedCallFrame() 60 return !MF.getFrameInfo().hasVarSizedObjects() && in hasReservedCallFrame() 61 !MF.getInfo<X86MachineFunctionInfo>()->getHasPushSequences() && in hasReservedCallFrame() 62 !MF.getInfo<X86MachineFunctionInfo>()->hasPreallocatedCall(); in hasReservedCallFrame() 70 X86FrameLowering::canSimplifyCallFramePseudos(const MachineFunction &MF) const { in canSimplifyCallFramePseudos() 71 return hasReservedCallFrame(MF) || in canSimplifyCallFramePseudos() 72 MF.getInfo<X86MachineFunctionInfo>()->hasPreallocatedCall() || in canSimplifyCallFramePseudos() 73 (hasFP(MF) && !TRI->hasStackRealignment(MF)) || in canSimplifyCallFramePseudos() 74 TRI->hasBasePointer(MF); in canSimplifyCallFramePseudos() 85 X86FrameLowering::needsFrameIndexResolution(const MachineFunction &MF) const { in needsFrameIndexResolution() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/ |
H A D | ARMBaseRegisterInfo.cpp | 67 ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs() 68 const ARMSubtarget &STI = MF->getSubtarget<ARMSubtarget>(); in getCalleeSavedRegs() 69 bool UseSplitPush = STI.splitFramePushPop(*MF); in getCalleeSavedRegs() 75 const Function &F = MF->getFunction(); in getCalleeSavedRegs() 108 return MF->getInfo<ARMFunctionInfo>()->isSplitCSR() in getCalleeSavedRegs() 115 const MachineFunction *MF) const { in getCalleeSavedRegsViaCopy() 116 assert(MF && "Invalid MachineFunction pointer."); in getCalleeSavedRegsViaCopy() 117 if (MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS && in getCalleeSavedRegsViaCopy() 118 MF->getInfo<ARMFunctionInfo>()->isSplitCSR()) in getCalleeSavedRegsViaCopy() 124 ARMBaseRegisterInfo::getCallPreservedMask(const MachineFunction &MF, in getCallPreservedMask() argument [all …]
|
/netbsd-src/external/apache2/llvm/dist/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() 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/ |
H A D | TargetFrameLowering.h | 128 virtual unsigned getStackAlignmentSkew(const MachineFunction &MF) const; 152 virtual bool assignCalleeSavedSpillSlots(MachineFunction &MF, in assignCalleeSavedSpillSlots() argument 157 return assignCalleeSavedSpillSlots(MF, TRI, CSI); in assignCalleeSavedSpillSlots() 161 assignCalleeSavedSpillSlots(MachineFunction &MF, in assignCalleeSavedSpillSlots() argument 190 virtual bool enableShrinkWrapping(const MachineFunction &MF) const { in enableShrinkWrapping() argument 197 virtual bool enableStackSlotScavenging(const MachineFunction &MF) const { in enableStackSlotScavenging() argument 203 virtual bool enableCalleeSaveSkip(const MachineFunction &MF) const; 207 virtual void emitPrologue(MachineFunction &MF, 209 virtual void emitEpilogue(MachineFunction &MF, 224 virtual void inlineStackProbe(MachineFunction &MF, in inlineStackProbe() argument [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
H A D | SIFrameLowering.cpp | 53 static void getVGPRSpillLaneOrTempRegister(MachineFunction &MF, in getVGPRSpillLaneOrTempRegister() argument 58 SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>(); in getVGPRSpillLaneOrTempRegister() 59 MachineFrameInfo &FrameInfo = MF.getFrameInfo(); in getVGPRSpillLaneOrTempRegister() 61 const GCNSubtarget &ST = MF.getSubtarget<GCNSubtarget>(); in getVGPRSpillLaneOrTempRegister() 68 if (MFI->haveFreeLanesForSGPRSpill(MF, 1)) { in getVGPRSpillLaneOrTempRegister() 72 if (!MFI->allocateSGPRSpillToVGPR(MF, NewFI)) in getVGPRSpillLaneOrTempRegister() 86 MF.getRegInfo(), LiveRegs, AMDGPU::SReg_32_XM0_XEXECRegClass, true); in getVGPRSpillLaneOrTempRegister() 92 if (TRI->spillSGPRToVGPR() && MFI->allocateSGPRSpillToVGPR(MF, NewFI)) { in getVGPRSpillLaneOrTempRegister() 103 MF.getFrameInfo().RemoveStackObject(NewFI); in getVGPRSpillLaneOrTempRegister() 120 LivePhysRegs &LiveRegs, MachineFunction &MF, in buildPrologSpill() argument [all …]
|
H A D | SILowerSGPRSpills.cpp | 57 void calculateSaveRestoreBlocks(MachineFunction &MF); 58 bool spillCalleeSavedRegs(MachineFunction &MF); 60 bool runOnMachineFunction(MachineFunction &MF) override; 84 MachineFunction &MF = *SaveBlock.getParent(); in insertCSRSaves() local 85 const TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo(); in insertCSRSaves() 86 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in insertCSRSaves() 87 const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo(); in insertCSRSaves() 91 const MachineRegisterInfo &MRI = MF.getRegInfo(); in insertCSRSaves() 124 MachineFunction &MF = *RestoreBlock.getParent(); in insertCSRRestores() local 125 const TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo(); in insertCSRRestores() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/ |
H A D | MipsMachineFunction.cpp | 31 static const TargetRegisterClass &getGlobalBaseRegClass(MachineFunction &MF) { in getGlobalBaseRegClass() argument 32 auto &STI = static_cast<const MipsSubtarget &>(MF.getSubtarget()); in getGlobalBaseRegClass() 33 auto &TM = static_cast<const MipsTargetMachine &>(MF.getTarget()); in getGlobalBaseRegClass() 47 Register MipsFunctionInfo::getGlobalBaseReg(MachineFunction &MF) { in getGlobalBaseReg() argument 50 MF.getRegInfo().createVirtualRegister(&getGlobalBaseRegClass(MF)); in getGlobalBaseReg() 54 Register MipsFunctionInfo::getGlobalBaseRegForGlobalISel(MachineFunction &MF) { in getGlobalBaseRegForGlobalISel() argument 56 getGlobalBaseReg(MF); in getGlobalBaseRegForGlobalISel() 57 initGlobalBaseReg(MF); in getGlobalBaseRegForGlobalISel() 62 void MipsFunctionInfo::initGlobalBaseReg(MachineFunction &MF) { in initGlobalBaseReg() argument 66 MachineBasicBlock &MBB = MF.front(); in initGlobalBaseReg() [all …]
|
H A D | MipsRegisterInfo.cpp | 47 MipsRegisterInfo::getPointerRegClass(const MachineFunction &MF, in getPointerRegClass() argument 49 MipsABIInfo ABI = MF.getSubtarget<MipsSubtarget>().getABI(); in getPointerRegClass() 68 MachineFunction &MF) const { in getRegPressureLimit() 75 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in getRegPressureLimit() 76 return 28 - TFI->hasFP(MF); in getRegPressureLimit() 93 MipsRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs() 94 const MipsSubtarget &Subtarget = MF->getSubtarget<MipsSubtarget>(); in getCalleeSavedRegs() 95 const Function &F = MF->getFunction(); in getCalleeSavedRegs() 124 MipsRegisterInfo::getCallPreservedMask(const MachineFunction &MF, in getCallPreservedMask() argument 126 const MipsSubtarget &Subtarget = MF.getSubtarget<MipsSubtarget>(); in getCallPreservedMask() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/ |
H A D | SystemZFrameLowering.cpp | 67 assignCalleeSavedSpillSlots(MachineFunction &MF, in assignCalleeSavedSpillSlots() argument 70 SystemZMachineFunctionInfo *ZFI = MF.getInfo<SystemZMachineFunctionInfo>(); in assignCalleeSavedSpillSlots() 71 MachineFrameInfo &MFFrame = MF.getFrameInfo(); in assignCalleeSavedSpillSlots() 72 bool IsVarArg = MF.getFunction().isVarArg(); in assignCalleeSavedSpillSlots() 81 int Offset = getRegSpillOffset(MF, Reg); in assignCalleeSavedSpillSlots() 104 int Offset = getRegSpillOffset(MF, Reg); in assignCalleeSavedSpillSlots() 114 if (usePackedStack(MF)) in assignCalleeSavedSpillSlots() 133 void SystemZFrameLowering::determineCalleeSaves(MachineFunction &MF, in determineCalleeSaves() argument 136 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS); in determineCalleeSaves() 138 MachineFrameInfo &MFFrame = MF.getFrameInfo(); in determineCalleeSaves() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/M68k/ |
H A D | M68kRegisterInfo.cpp | 59 M68kRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs() 64 M68kRegisterInfo::getCallPreservedMask(const MachineFunction &MF, in getCallPreservedMask() argument 70 M68kRegisterInfo::getRegsForTailCall(const MachineFunction &MF) const { in getRegsForTailCall() 121 BitVector M68kRegisterInfo::getReservedRegs(const MachineFunction &MF) const { in getReservedRegs() 122 const M68kFrameLowering *TFI = getFrameLowering(MF); in getReservedRegs() 138 if (MF.getSubtarget<M68kSubtarget>().isRegisterReservedByUser(Reg)) in getReservedRegs() 145 if (TFI->hasFP(MF)) { in getReservedRegs() 150 if (hasBasePointer(MF)) { in getReservedRegs() 151 CallingConv::ID CC = MF.getFunction().getCallingConv(); in getReservedRegs() 152 const uint32_t *RegMask = getCallPreservedMask(MF, CC); in getReservedRegs() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/XCore/ |
H A D | XCoreFrameLowering.cpp | 63 MachineFunction &MF, unsigned DRegNum) { in EmitDefCfaRegister() argument 64 unsigned CFIIndex = MF.addFrameInst( in EmitDefCfaRegister() 74 MachineFunction &MF = *MBB.getParent(); in EmitDefCfaOffset() local 76 MF.addFrameInst(MCCFIInstruction::cfiDefCfaOffset(nullptr, Offset)); in EmitDefCfaOffset() 85 MachineFunction &MF = *MBB.getParent(); in EmitCfiOffset() local 86 unsigned CFIIndex = MF.addFrameInst( in EmitCfiOffset() 178 MachineFunction *MF = MBB.getParent(); in getFrameIndexMMO() local 179 const MachineFrameInfo &MFI = MF->getFrameInfo(); in getFrameIndexMMO() 180 MachineMemOperand *MMO = MF->getMachineMemOperand( in getFrameIndexMMO() 181 MachinePointerInfo::getFixedStack(*MF, FrameIndex), flags, in getFrameIndexMMO() [all …]
|