/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | PrologEpilogInserter.cpp | 225 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in runOnMachineFunction() local 250 TFI->processFunctionBeforeFrameFinalized(MF, RS); in runOnMachineFunction() 269 TFI->processFunctionBeforeFrameIndicesReplaced(MF, RS); in runOnMachineFunction() 273 if (TFI->needsFrameIndexResolution(MF)) { in runOnMachineFunction() 295 uint64_t Threshold = TFI->getStackThreshold(); in runOnMachineFunction() 345 TFI->emitRemarks(MF, ORE); in runOnMachineFunction() 359 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in calculateCallFrameInfo() local 381 if (TFI->canSimplifyCallFramePseudos(MF)) { in calculateCallFrameInfo() 387 TFI->eliminateCallFramePseudoInstr(MF, *I->getParent(), I); in calculateCallFrameInfo() 461 const TargetFrameLowering *TFI = F.getSubtarget().getFrameLowering(); in assignCalleeSavedSpillSlots() local [all …]
|
H A D | LocalStackSlotAllocation.cpp | 208 const TargetFrameLowering &TFI = *Fn.getSubtarget().getFrameLowering(); in calculateFrameObjectOffsets() local 210 TFI.getStackGrowthDirection() == TargetFrameLowering::StackGrowsDown; in calculateFrameObjectOffsets() 233 if (TFI.isStackIdSafeForLocalArea(MFI.getStackID(StackProtectorFI))) in calculateFrameObjectOffsets() 243 if (!TFI.isStackIdSafeForLocalArea(MFI.getStackID(i))) in calculateFrameObjectOffsets() 279 if (!TFI.isStackIdSafeForLocalArea(MFI.getStackID(i))) in calculateFrameObjectOffsets() 313 const TargetFrameLowering &TFI = *Fn.getSubtarget().getFrameLowering(); in insertFrameReferenceRegisters() local 315 TFI.getStackGrowthDirection() == TargetFrameLowering::StackGrowsDown; in insertFrameReferenceRegisters()
|
H A D | ShrinkWrap.cpp | 180 const TargetFrameLowering *TFI = in getCurrentCSRs() local 183 TFI->determineCalleeSaves(*MachineFunc, SavedRegs, RS); in getCurrentCSRs() 652 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in postShrinkWrapping() local 655 !TFI->canUseAsPrologue(*NewSave)) in postShrinkWrapping() 665 if (!TFI->canUseAsEpilogue(*NewRestore)) { in postShrinkWrapping() 886 const TargetFrameLowering *TFI = in performShrinkWrapping() local 898 ((TargetCanUseSaveAsPrologue = TFI->canUseAsPrologue(*Save)) && in performShrinkWrapping() 899 TFI->canUseAsEpilogue(*Restore))) in performShrinkWrapping() 977 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in isShrinkWrapEnabled() local 981 return TFI->enableShrinkWrapping(MF) && in isShrinkWrapEnabled()
|
H A D | MachineFrameInfo.cpp | 138 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in estimateStackSize() local 166 if (adjustsStack() && TFI->hasReservedCallFrame(MF)) in estimateStackSize() 177 StackAlign = TFI->getStackAlign(); in estimateStackSize() 179 StackAlign = TFI->getTransientStackAlign(); in estimateStackSize()
|
H A D | GCRootLowering.cpp | 301 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in FindStackOffsets() local 302 assert(TFI && "TargetRegisterInfo not available!"); in FindStackOffsets() 312 auto FrameOffset = TFI->getFrameIndexReference(MF, RI->Num, FrameReg); in FindStackOffsets()
|
H A D | RegUsageInfoCollector.cpp | 199 const TargetFrameLowering &TFI = *MF.getSubtarget().getFrameLowering(); in computeCalleeSavedRegs() local 204 TFI.getCalleeSaves(MF, SavedRegs); in computeCalleeSavedRegs()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXPrologEpilogPass.cpp | 54 const TargetFrameLowering &TFI = *STI.getFrameLowering(); in runOnMachineFunction() local 77 TFI.getFrameIndexReference(MF, Op.getIndex(), Reg); in runOnMachineFunction() 99 TFI.emitPrologue(MF, MF.front()); in runOnMachineFunction() 104 TFI.emitEpilogue(MF, *I); in runOnMachineFunction() 141 const TargetFrameLowering &TFI = *Fn.getSubtarget().getFrameLowering(); in calculateFrameObjectOffsets() local 145 TFI.getStackGrowthDirection() == TargetFrameLowering::StackGrowsDown; in calculateFrameObjectOffsets() 153 int LocalAreaOffset = TFI.getOffsetOfLocalArea(); in calculateFrameObjectOffsets() 228 if (!TFI.targetHandlesStackFrameRounding()) { in calculateFrameObjectOffsets() 232 if (MFI.adjustsStack() && TFI.hasReservedCallFrame(Fn)) in calculateFrameObjectOffsets() 243 StackAlign = TFI.getStackAlign(); in calculateFrameObjectOffsets() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/ |
H A D | MSP430RegisterInfo.cpp | 39 const MSP430FrameLowering *TFI = getFrameLowering(*MF); in getCalleeSavedRegs() local 64 if (TFI->hasFP(*MF)) in getCalleeSavedRegs() 75 const MSP430FrameLowering *TFI = getFrameLowering(MF); in getReservedRegs() local 88 if (TFI->hasFP(MF)) { in getReservedRegs() 111 const MSP430FrameLowering *TFI = getFrameLowering(MF); in eliminateFrameIndex() local 115 unsigned BasePtr = (TFI->hasFP(MF) ? MSP430::R4 : MSP430::SP); in eliminateFrameIndex() 121 if (!TFI->hasFP(MF)) in eliminateFrameIndex() 162 const MSP430FrameLowering *TFI = getFrameLowering(MF); 163 return TFI->hasFP(MF) ? MSP430::R4 : MSP430::SP; 159 const MSP430FrameLowering *TFI = getFrameLowering(MF); getFrameRegister() local
|
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
H A D | M68kRegisterInfo.cpp | 123 const M68kFrameLowering *TFI = getFrameLowering(MF); in getReservedRegs() local 146 if (TFI->hasFP(MF)) { in getReservedRegs() 170 const M68kFrameLowering *TFI = getFrameLowering(MF); in eliminateFrameIndex() local 191 BasePtr = (TFI->hasFP(MF) ? FramePtr : StackPtr); in eliminateFrameIndex() 201 FIOffset = MFI.getObjectOffset(FIndex) - TFI->getOffsetOfLocalArea(); in eliminateFrameIndex() 204 TFI->getFrameIndexReference(MF, FIndex, IgnoredFrameReg).getFixed(); in eliminateFrameIndex() 263 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in getFrameRegister() local 264 return TFI->hasFP(MF) ? FramePtr : StackPtr; in getFrameRegister()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
H A D | LoongArchRegisterInfo.cpp | 87 const LoongArchFrameLowering *TFI = getFrameLowering(MF); in getReservedRegs() 95 if (TFI->hasFP(MF)) in getReservedRegs() 99 if (TFI->hasBP(MF)) in getReservedRegs() 108 const TargetFrameLowering *TFI = getFrameLowering(MF); in getFrameRegister() 109 return TFI->hasFP(MF) ? LoongArch::R22 : LoongArch::R3; in getFrameRegister() 130 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in eliminateFrameIndex() 138 TFI->getFrameIndexReference(MF, FrameIndex, FrameReg) + in eliminateFrameIndex() 204 const LoongArchFrameLowering *TFI = getFrameLowering(MF); 213 if (TFI->hasReservedCallFrame(MF)) 86 const LoongArchFrameLowering *TFI = getFrameLowering(MF); getReservedRegs() local 107 const TargetFrameLowering *TFI = getFrameLowering(MF); getFrameRegister() local 129 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); eliminateFrameIndex() local
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMBaseRegisterInfo.cpp | 202 const ARMFrameLowering *TFI = getFrameLowering(MF); in getReservedRegs() local 210 if (TFI->isFPReserved(MF)) in getReservedRegs() 243 const ARMFrameLowering *TFI = getFrameLowering(MF); in isInlineAsmReadOnlyReg() local 247 if (TFI->isFPReserved(MF)) in isInlineAsmReadOnlyReg() 302 const ARMFrameLowering *TFI = getFrameLowering(MF); in getRegPressureLimit() local 312 ? TFI->hasFP(MF) : true; in getRegPressureLimit() 317 ? TFI->hasFP(MF) : true; in getRegPressureLimit() 419 const ARMFrameLowering *TFI = getFrameLowering(MF); in hasBasePointer() local 424 if (hasStackRealignment(MF) && !TFI->hasReservedCallFrame(MF)) in hasBasePointer() 448 if (AFI->isThumb1OnlyFunction() && !TFI->hasReservedCallFrame(MF)) in hasBasePointer() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/ |
H A D | XtensaRegisterInfo.cpp | 48 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in getReservedRegs() local 51 if (TFI->hasFP(MF)) { in getReservedRegs() 131 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in getFrameRegister() local 132 return TFI->hasFP(MF) ? Xtensa::A15 : Xtensa::SP; in getFrameRegister()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreRegisterInfo.cpp | 226 const XCoreFrameLowering *TFI = getFrameLowering(*MF); in getCalleeSavedRegs() local 227 if (TFI->hasFP(*MF)) in getCalleeSavedRegs() 234 const XCoreFrameLowering *TFI = getFrameLowering(MF); in getReservedRegs() local 240 if (TFI->hasFP(MF)) { in getReservedRegs() 269 const XCoreFrameLowering *TFI = getFrameLowering(MF); in eliminateFrameIndex() local 305 if (TFI->hasFP(MF)) { in eliminateFrameIndex() 324 const XCoreFrameLowering *TFI = getFrameLowering(MF); in getFrameRegister() local 326 return TFI->hasFP(MF) ? XCore::R10 : XCore::SP; in getFrameRegister()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86RegisterInfo.cpp | 196 const X86FrameLowering *TFI = getFrameLowering(MF); in getPointerRegClass() local 197 return TFI->hasFP(MF) && TFI->Uses64BitFramePtr in getPointerRegClass() 264 const X86FrameLowering *TFI = getFrameLowering(MF); in getRegPressureLimit() local 266 unsigned FPDiff = TFI->hasFP(MF) ? 1 : 0; in getRegPressureLimit() 538 const X86FrameLowering *TFI = getFrameLowering(MF); in getReservedRegs() local 561 if (TFI->hasFP(MF)) { in getReservedRegs() 719 const X86FrameLowering &TFI = *getFrameLowering(MF); in isFixedRegister() local 720 if (TFI.hasFP(MF) && TRI.isSuperOrSubRegisterEq(X86::RBP, PhysReg)) in isFixedRegister() 893 const X86FrameLowering *TFI = getFrameLowering(MF); in eliminateFrameIndex() local 904 TFI->getFrameIndexReferenceSP(MF, FrameIndex, BasePtr, 0).getFixed(); in eliminateFrameIndex() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsRegisterInfo.cpp | 75 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in getRegPressureLimit() local 76 return 28 - TFI->hasFP(MF); in getRegPressureLimit() 273 const TargetFrameLowering *TFI = Subtarget.getFrameLowering(); in getFrameRegister() local 278 return TFI->hasFP(MF) ? Mips::S0 : Mips::SP; in getFrameRegister() 280 return TFI->hasFP(MF) ? (IsN64 ? Mips::FP_64 : Mips::FP) : in getFrameRegister()
|
H A D | Mips16RegisterInfo.cpp | 102 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in eliminateFI() local 103 if (TFI->hasFP(MF)) { in eliminateFI()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64RegisterInfo.cpp | 428 const AArch64FrameLowering *TFI = getFrameLowering(MF); in getStrictlyReservedRegs() local 435 if (TFI->hasFP(MF) || TT.isOSDarwin()) in getStrictlyReservedRegs() 692 const AArch64FrameLowering *TFI = getFrameLowering(MF); in getFrameRegister() local 693 return TFI->hasFP(MF) ? AArch64::FP : AArch64::SP; in getFrameRegister() 716 const AArch64FrameLowering &TFI = *getFrameLowering(MF); in useFPForScavengingIndex() local 721 return TFI.hasFP(MF) && !hasStackRealignment(MF) && !AFI->getStackSizeSVE(); in useFPForScavengingIndex() 765 const AArch64FrameLowering *TFI = getFrameLowering(MF); in needsFrameBaseReg() local 786 if (TFI->hasFP(MF) && isFrameOffsetLegal(MI, AArch64::FP, FPOffset)) in needsFrameBaseReg() 926 const AArch64FrameLowering *TFI = getFrameLowering(MF); in eliminateFrameIndex() local 937 TFI->resolveFrameIndexReference(MF, FrameIndex, FrameReg, in eliminateFrameIndex() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/ |
H A D | CSKYRegisterInfo.cpp | 41 const TargetFrameLowering *TFI = getFrameLowering(MF); in getFrameRegister() local 42 return TFI->hasFP(MF) ? CSKY::R8 : CSKY::R14; in getFrameRegister() 46 const CSKYFrameLowering *TFI = getFrameLowering(MF); in getReservedRegs() local 52 if (TFI->hasBP(MF)) in getReservedRegs() 55 if (TFI->hasFP(MF)) in getReservedRegs()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | SILowerSGPRSpills.cpp | 91 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in insertCSRSaves() local 97 if (!TFI->spillCalleeSavedRegisters(SaveBlock, I, CSI, TRI)) { in insertCSRSaves() 134 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in insertCSRRestores() local 143 if (!TFI->restoreCalleeSavedRegisters(RestoreBlock, I, CSI, TRI)) { in insertCSRRestores() 214 const SIFrameLowering *TFI = ST.getFrameLowering(); in spillCalleeSavedRegs() local 220 TFI->determineCalleeSavesSGPR(MF, SavedRegs, RS); in spillCalleeSavedRegs()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/ |
H A D | ARCRegisterInfo.cpp | 173 const ARCFrameLowering *TFI = getFrameLowering(MF); in eliminateFrameIndex() local 210 if (!TFI->hasFP(MF)) { in eliminateFrameIndex() 226 const ARCFrameLowering *TFI = getFrameLowering(MF); in getFrameRegister() local 227 return TFI->hasFP(MF) ? ARC::FP : ARC::SP; in getFrameRegister()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZRegisterInfo.cpp | 260 const SystemZFrameLowering *TFI = getFrameLowering(MF); in getReservedRegs() local 263 if (TFI->hasFP(MF)) in getReservedRegs() 293 const SystemZFrameLowering *TFI = getFrameLowering(MF); in eliminateFrameIndex() local 300 (TFI->getFrameIndexReference(MF, FrameIndex, BasePtr).getFixed() + in eliminateFrameIndex() 312 Ops, TFI->getFrameIndexReference(MF, FrameIndex, BasePtr).getFixed()); in eliminateFrameIndex() 433 const SystemZFrameLowering *TFI = getFrameLowering(MF); in shouldCoalesce() 437 return TFI->hasFP(MF) ? Regs->getFramePointerRegister() in shouldCoalesce() 451 const SystemZFrameLowering *TFI = getFrameLowering(MF); getFrameRegister() local
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/ |
H A D | AVRRegisterInfo.cpp | 155 const TargetFrameLowering *TFI = TM.getSubtargetImpl()->getFrameLowering(); in eliminateFrameIndex() local 161 Offset += MFI.getStackSize() - TFI->getOffsetOfLocalArea() + 1; in eliminateFrameIndex() 287 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in getFrameRegister() local 288 if (TFI->hasFP(MF)) { in getFrameRegister()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | WinException.cpp | 346 const TargetFrameLowering &TFI = *Asm->MF->getSubtarget().getFrameLowering(); in getFrameIndexOffset() local 350 TFI.getFrameIndexReferencePreferSP(*Asm->MF, FrameIndex, UnusedReg, in getFrameIndexOffset() 362 StackOffset Offset = TFI.getFrameIndexReference(*Asm->MF, FrameIndex, UnusedReg); in getFrameIndexOffset() 836 const TargetFrameLowering *TFI = MF->getSubtarget().getFrameLowering(); in emitCXXFrameHandler3Table() local 837 ParentFrameOffset = TFI->getWinEHParentFrameOffset(*MF); in emitCXXFrameHandler3Table() 979 const TargetFrameLowering *TFI = Asm->MF->getSubtarget().getFrameLowering(); in emitEHRegistrationOffsetLabel() local 980 Offset = TFI->getNonLocalFrameIndexReference(*Asm->MF, FI).getFixed(); in emitEHRegistrationOffsetLabel() 1042 const TargetFrameLowering *TFI = MF->getSubtarget().getFrameLowering(); in emitExceptHandlerTable() local 1045 TFI->getFrameIndexReference(*MF, SSPIdx, UnusedReg).getFixed(); in emitExceptHandlerTable() 1053 const TargetFrameLowering *TFI = MF->getSubtarget().getFrameLowering(); in emitExceptHandlerTable() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyRegisterInfo.cpp | 149 const WebAssemblyFrameLowering *TFI = getFrameLowering(MF); in getFrameRegister() local 150 return Regs[TFI->hasFP(MF)][TT.isArch64Bit()]; in getFrameRegister()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/ |
H A D | LanaiISelDAGToDAG.cpp | 358 SDValue TFI = CurDAG->getTargetFrameIndex(FI, VT); in selectFrameIndex() local 361 CurDAG->SelectNodeTo(Node, Opc, VT, TFI, Imm); in selectFrameIndex() 364 ReplaceNode(Node, CurDAG->getMachineNode(Opc, DL, VT, TFI, Imm)); in selectFrameIndex()
|