|
LLVM
10.0.0
|
This class keeps track of the SPI_SP_INPUT_ADDR config register, which tells the hardware which interpolation parameters to load. More...
#include "Target/AMDGPU/SIMachineFunctionInfo.h"
Classes | |
| struct | SGPRSpillVGPRCSR |
| struct | SpilledReg |
| struct | VGPRSpillToAGPR |
Public Attributes | |
| SparseBitVector | WWMReservedRegs |
| unsigned | SGPRForFPSaveRestoreCopy = 0 |
| If this is set, an SGPR used for save/restore of the register used for the frame pointer. More... | |
| Optional< int > | FramePointerSaveIndex |
Friends | |
| class | GCNTargetMachine |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::MachineFunctionInfo | |
| template<typename Ty > | |
| static Ty * | create (BumpPtrAllocator &Allocator, MachineFunction &MF) |
| Factory function: default behavior is to call new using the supplied allocator. More... | |
Protected Attributes inherited from llvm::AMDGPUMachineFunction | |
| uint64_t | ExplicitKernArgSize |
| Align | MaxKernArgAlign |
| unsigned | LDSSize |
| Number of bytes in the LDS that are being used. More... | |
| AMDGPU::SIModeRegisterDefaults | Mode |
| bool | IsEntryFunction |
| bool | NoSignedZerosFPMath |
| bool | MemoryBound |
| bool | WaveLimiter |
This class keeps track of the SPI_SP_INPUT_ADDR config register, which tells the hardware which interpolation parameters to load.
Definition at line 323 of file SIMachineFunctionInfo.h.
| SIMachineFunctionInfo::SIMachineFunctionInfo | ( | const MachineFunction & | MF | ) |
Definition at line 29 of file SIMachineFunctionInfo.cpp.
References llvm::CallingConv::AMDGPU_GS, llvm::CallingConv::AMDGPU_HS, llvm::CallingConv::AMDGPU_KERNEL, llvm::CallingConv::AMDGPU_PS, llvm::GCNSubtarget::computeOccupancy(), llvm::StringRef::consumeInteger(), llvm::ArgDescriptor::createRegister(), llvm::StringRef::empty(), F(), llvm::AMDGPUSubtarget::getAlignmentForImplicitArgPtr(), llvm::AMDGPUSubtarget::getFlatWorkGroupSizes(), llvm::MachineFunction::getFrameInfo(), llvm::MachineFunction::getFunction(), llvm::GCNSubtarget::getGeneration(), llvm::AMDGPU::getInitialPSInputAddr(), llvm::AMDGPUMachineFunction::getLDSSize(), llvm::MachineFrameInfo::getObjectIndexBegin(), llvm::MachineFrameInfo::getObjectIndexEnd(), llvm::MachineFunction::getSubtarget(), llvm::Attribute::getValueAsString(), llvm::AMDGPUSubtarget::getWavesPerEU(), llvm::AMDGPUSubtarget::GFX9, llvm::GCNSubtarget::hasFlatAddressSpace(), hasNonSpillStackObjects(), llvm::MachineFrameInfo::hasStackObjects(), llvm::AMDGPUSubtarget::isAmdHsaOrMesa(), llvm::AMDGPUMachineFunction::isEntryFunction(), llvm::GCNSubtarget::isMesaGfxShader(), llvm::MachineFrameInfo::isSpillSlotObjectIndex(), llvm::max(), llvm::AMDGPUMachineFunction::MaxKernArgAlign, llvm::AMDGPUFunctionArgInfo::PrivateSegmentBuffer, llvm::AMDGPUFunctionArgInfo::PrivateSegmentWaveByteOffset, llvm::CallingConv::SPIR_KERNEL, and llvm::ARM_MB::ST.
| unsigned SIMachineFunctionInfo::addDispatchID | ( | const SIRegisterInfo & | TRI | ) |
Definition at line 218 of file SIMachineFunctionInfo.cpp.
References llvm::ArgDescriptor::createRegister(), llvm::AMDGPUFunctionArgInfo::DispatchID, and llvm::ArgDescriptor::getRegister().
Referenced by allocateHSAUserSGPRs(), and llvm::SITargetLowering::allocateHSAUserSGPRs().
| unsigned SIMachineFunctionInfo::addDispatchPtr | ( | const SIRegisterInfo & | TRI | ) |
Definition at line 196 of file SIMachineFunctionInfo.cpp.
References llvm::ArgDescriptor::createRegister(), llvm::AMDGPUFunctionArgInfo::DispatchPtr, and llvm::ArgDescriptor::getRegister().
Referenced by allocateHSAUserSGPRs(), and llvm::SITargetLowering::allocateHSAUserSGPRs().
| unsigned SIMachineFunctionInfo::addFlatScratchInit | ( | const SIRegisterInfo & | TRI | ) |
Definition at line 225 of file SIMachineFunctionInfo.cpp.
References llvm::ArgDescriptor::createRegister(), llvm::AMDGPUFunctionArgInfo::FlatScratchInit, and llvm::ArgDescriptor::getRegister().
Referenced by allocateHSAUserSGPRs(), and llvm::SITargetLowering::allocateHSAUserSGPRs().
| unsigned SIMachineFunctionInfo::addImplicitBufferPtr | ( | const SIRegisterInfo & | TRI | ) |
Definition at line 232 of file SIMachineFunctionInfo.cpp.
References llvm::ArgDescriptor::createRegister(), llvm::ArgDescriptor::getRegister(), and llvm::AMDGPUFunctionArgInfo::ImplicitBufferPtr.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), and llvm::AMDGPUCallLowering::lowerFormalArguments().
| unsigned SIMachineFunctionInfo::addKernargSegmentPtr | ( | const SIRegisterInfo & | TRI | ) |
Definition at line 210 of file SIMachineFunctionInfo.cpp.
References llvm::ArgDescriptor::createRegister(), llvm::ArgDescriptor::getRegister(), and llvm::AMDGPUFunctionArgInfo::KernargSegmentPtr.
Referenced by allocateHSAUserSGPRs(), and llvm::SITargetLowering::allocateHSAUserSGPRs().
| unsigned SIMachineFunctionInfo::addPrivateSegmentBuffer | ( | const SIRegisterInfo & | TRI | ) |
Definition at line 187 of file SIMachineFunctionInfo.cpp.
References llvm::ArgDescriptor::createRegister(), llvm::ArgDescriptor::getRegister(), and llvm::AMDGPUFunctionArgInfo::PrivateSegmentBuffer.
Referenced by allocateHSAUserSGPRs(), and llvm::SITargetLowering::allocateHSAUserSGPRs().
|
inline |
Definition at line 580 of file SIMachineFunctionInfo.h.
References llvm::ArgDescriptor::createRegister(), llvm::ArgDescriptor::getRegister(), and llvm::AMDGPUFunctionArgInfo::PrivateSegmentWaveByteOffset.
Referenced by llvm::SITargetLowering::allocateSystemSGPRs().
| unsigned SIMachineFunctionInfo::addQueuePtr | ( | const SIRegisterInfo & | TRI | ) |
Definition at line 203 of file SIMachineFunctionInfo.cpp.
References llvm::ArgDescriptor::createRegister(), llvm::ArgDescriptor::getRegister(), and llvm::AMDGPUFunctionArgInfo::QueuePtr.
Referenced by allocateHSAUserSGPRs(), and llvm::SITargetLowering::allocateHSAUserSGPRs().
|
inline |
Definition at line 787 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIRegisterInfo::spillSGPR().
|
inline |
Definition at line 791 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIRegisterInfo::eliminateFrameIndex().
|
inline |
Definition at line 543 of file SIMachineFunctionInfo.h.
References llvm::ArgDescriptor::createRegister(), llvm::ArgDescriptor::getRegister(), and llvm::AMDGPUFunctionArgInfo::WorkGroupIDX.
Referenced by llvm::SITargetLowering::allocateSystemSGPRs().
|
inline |
Definition at line 549 of file SIMachineFunctionInfo.h.
References llvm::ArgDescriptor::createRegister(), llvm::ArgDescriptor::getRegister(), and llvm::AMDGPUFunctionArgInfo::WorkGroupIDY.
Referenced by llvm::SITargetLowering::allocateSystemSGPRs().
|
inline |
Definition at line 555 of file SIMachineFunctionInfo.h.
References llvm::ArgDescriptor::createRegister(), llvm::ArgDescriptor::getRegister(), and llvm::AMDGPUFunctionArgInfo::WorkGroupIDZ.
Referenced by llvm::SITargetLowering::allocateSystemSGPRs().
|
inline |
Definition at line 561 of file SIMachineFunctionInfo.h.
References llvm::ArgDescriptor::createRegister(), llvm::ArgDescriptor::getRegister(), and llvm::AMDGPUFunctionArgInfo::WorkGroupInfo.
Referenced by llvm::SITargetLowering::allocateSystemSGPRs().
| bool SIMachineFunctionInfo::allocateSGPRSpillToVGPR | ( | MachineFunction & | MF, |
| int | FI | ||
| ) |
Reserve a slice of a VGPR to support spilling for FrameIndex FI.
Definition at line 260 of file SIMachineFunctionInfo.cpp.
References assert(), llvm::MachineFrameInfo::CreateSpillStackObject(), llvm::MachineRegisterInfo::getCalleeSavedRegs(), llvm::MachineFunction::getFrameInfo(), llvm::MachineFrameInfo::getObjectSize(), llvm::MachineFunction::getRegInfo(), llvm::GCNSubtarget::getRegisterInfo(), llvm::MachineFunction::getSubtarget(), llvm::AMDGPUSubtarget::getWavefrontSize(), llvm::MachineFrameInfo::hasCalls(), I, isCalleeSavedReg(), llvm::AMDGPUMachineFunction::isEntryFunction(), MRI, Size, llvm::ARM_MB::ST, and TRI.
Referenced by llvm::SIFrameLowering::determineCalleeSaves(), and insertCSRRestores().
| bool SIMachineFunctionInfo::allocateVGPRSpillToAGPR | ( | MachineFunction & | MF, |
| int | FI, | ||
| bool | isAGPRtoVGPR | ||
| ) |
Reserve AGPRs or VGPRs to support spilling for FrameIndex FI.
Either AGPR is spilled to VGPR to vice versa. Returns true if a FI can be eliminated completely.
Definition at line 323 of file SIMachineFunctionInfo.cpp.
References assert(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::SmallVectorTemplateCommon< T >::end(), llvm::find_if(), llvm::Function::getCallingConv(), llvm::SIRegisterInfo::getCallPreservedMask(), llvm::MachineFunction::getFrameInfo(), llvm::MachineFunction::getFunction(), llvm::MachineFrameInfo::getObjectSize(), llvm::MachineFunction::getRegInfo(), llvm::GCNSubtarget::getRegisterInfo(), llvm::TargetRegisterClass::getRegisters(), llvm::MachineFunction::getSubtarget(), llvm::GCNSubtarget::hasMAIInsts(), I, llvm::MachineRegisterInfo::isAllocatable(), llvm::MachineRegisterInfo::isPhysRegUsed(), llvm::MachineFrameInfo::isSpillSlotObjectIndex(), MRI, llvm::BitVector::push_back(), Reg, llvm::BitVector::resize(), llvm::BitVector::set(), llvm::BitVector::setBitsInMask(), Size, llvm::ARM_MB::ST, and TRI.
Referenced by insertCSRRestores().
|
inline |
Definition at line 677 of file SIMachineFunctionInfo.h.
Referenced by findMemSDNode(), and llvm::AMDGPULegalizerInfo::legalizeAddrSpaceCast().
Definition at line 501 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIRegisterInfo::getReservedRegs(), and insertCSRRestores().
|
inline |
Definition at line 655 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::allocateSpecialInputSGPRs(), llvm::AMDGPULegalizerInfo::getSegmentAperture(), llvm::SITargetLowering::LowerFormalArguments(), and llvm::SITargetLowering::passSpecialInputs().
|
inline |
Definition at line 659 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 875 of file SIMachineFunctionInfo.h.
References assert().
Referenced by llvm::SITargetLowering::getTgtMemIntrinsic().
|
inline |
Definition at line 525 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::isEligibleForTailCallOptimization().
Definition at line 825 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 712 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIFrameLowering::assignCalleeSavedSpillSlots(), llvm::SIFrameLowering::emitEpilogue(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::SIFrameLowering::emitPrologue(), llvm::SITargetLowering::finalizeLowering(), llvm::SIRegisterInfo::getFrameRegister(), llvm::SIRegisterInfo::getReservedRegs(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), and llvm::SIRegisterInfo::spillSGPR().
|
inline |
Definition at line 681 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 673 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIFrameLowering::emitEntryFunctionPrologue().
|
inline |
Definition at line 893 of file SIMachineFunctionInfo.h.
References TII.
Referenced by llvm::SITargetLowering::getTgtMemIntrinsic().
|
inline |
Definition at line 884 of file SIMachineFunctionInfo.h.
References assert().
Referenced by llvm::SITargetLowering::getTgtMemIntrinsic().
|
inline |
Definition at line 743 of file SIMachineFunctionInfo.h.
References llvm::ArgDescriptor::getRegister(), and llvm::AMDGPUFunctionArgInfo::ImplicitBufferPtr.
Referenced by llvm::SIFrameLowering::emitEntryFunctionPrologue().
|
inline |
Definition at line 871 of file SIMachineFunctionInfo.h.
Referenced by hasAnyNonFlatUseOfReg().
|
inline |
Definition at line 835 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIInstrInfo::calculateLDSSpillAddress(), and hasAnyNonFlatUseOfReg().
|
inline |
Definition at line 851 of file SIMachineFunctionInfo.h.
Referenced by hasAnyNonFlatUseOfReg(), and limitOccupancy().
|
inline |
Definition at line 906 of file SIMachineFunctionInfo.h.
Referenced by llvm::GCNScheduleDAGMILive::schedule(), llvm::GCNIterativeScheduler::scheduleILP(), and llvm::GCNIterativeScheduler::scheduleLegacyMaxOccupancy().
|
inline |
Definition at line 830 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 846 of file SIMachineFunctionInfo.h.
Referenced by llvm::GCNScheduleDAGMILive::schedule().
|
inline |
Definition at line 689 of file SIMachineFunctionInfo.h.
Referenced by buildEpilogReload(), and llvm::GCNSubtarget::getMaxNumSGPRs().
|
inline |
Definition at line 779 of file SIMachineFunctionInfo.h.
References llvm::AMDGPU::HSAMD::Kernel::CodeProps::Key::NumSpilledSGPRs.
Referenced by getRsrcReg().
|
inline |
Definition at line 783 of file SIMachineFunctionInfo.h.
References llvm::AMDGPU::HSAMD::Kernel::CodeProps::Key::NumSpilledVGPRs.
Referenced by getRsrcReg().
|
inline |
Definition at line 685 of file SIMachineFunctionInfo.h.
Referenced by hasAnyNonFlatUseOfReg().
|
inline |
Definition at line 902 of file SIMachineFunctionInfo.h.
Referenced by llvm::GCNScheduleDAGMILive::schedule(), and llvm::GCNIterativeScheduler::scheduleMinReg().
|
inline |
Definition at line 668 of file SIMachineFunctionInfo.h.
References Arg, llvm::AMDGPUFunctionArgInfo::getPreloadedValue(), and Register.
Referenced by buildEpilogReload(), llvm::SIInstrInfo::calculateLDSSpillAddress(), llvm::AMDGPUCallLowering::lowerReturn(), and reservePrivateMemoryRegs().
|
inline |
Definition at line 664 of file SIMachineFunctionInfo.h.
References llvm::AMDGPUFunctionArgInfo::getPreloadedValue().
Referenced by llvm::SITargetLowering::isTypeDesirableForOp(), llvm::AMDGPULegalizerInfo::legalizeImplicitArgPtr(), and llvm::AMDGPULegalizerInfo::legalizePreloadedArgIntrin().
|
inline |
Definition at line 693 of file SIMachineFunctionInfo.h.
References llvm::ArgDescriptor::getRegister(), and llvm::AMDGPUFunctionArgInfo::PrivateSegmentWaveByteOffset.
Referenced by llvm::SITargetLowering::allocateSystemSGPRs().
|
inline |
Definition at line 795 of file SIMachineFunctionInfo.h.
Referenced by getRsrcReg(), llvm::AMDGPUCallLowering::lowerFormalArguments(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 799 of file SIMachineFunctionInfo.h.
Referenced by getRsrcReg(), llvm::AMDGPUCallLowering::lowerFormalArguments(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 739 of file SIMachineFunctionInfo.h.
References llvm::ArgDescriptor::getRegister(), and llvm::AMDGPUFunctionArgInfo::QueuePtr.
Referenced by llvm::SITargetLowering::shouldEmitPCReloc().
|
inline |
Returns the physical register reserved for use as the resource descriptor for scratch accesses.
Definition at line 699 of file SIMachineFunctionInfo.h.
Referenced by buildEpilogReload(), llvm::SIFrameLowering::emitEpilogue(), llvm::SIFrameLowering::emitPrologue(), llvm::SITargetLowering::finalizeLowering(), llvm::SIInstrInfo::getMemOperandWithOffset(), llvm::SIRegisterInfo::getReservedRegs(), isStackPtrRelative(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::SITargetLowering::LowerCall(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SIRegisterInfo::restoreSGPR(), llvm::SIRegisterInfo::spillSGPR(), and llvm::SIInstrInfo::storeRegToStackSlot().
|
inline |
Definition at line 708 of file SIMachineFunctionInfo.h.
Referenced by buildEpilogReload(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::SITargetLowering::finalizeLowering(), llvm::SIRegisterInfo::getReservedRegs(), isStackPtrRelative(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), and llvm::SIRegisterInfo::spillSGPR().
|
inline |
Definition at line 497 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::emitEpilogue(), llvm::SIFrameLowering::emitPrologue(), and insertCSRRestores().
|
inline |
Definition at line 491 of file SIMachineFunctionInfo.h.
References llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::find(), I, and llvm::makeArrayRef().
Referenced by llvm::SIFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::emitEpilogue(), llvm::SIFrameLowering::emitPrologue(), llvm::SIRegisterInfo::restoreSGPR(), and llvm::SIRegisterInfo::spillSGPR().
|
inline |
Definition at line 730 of file SIMachineFunctionInfo.h.
Referenced by buildEpilogReload(), llvm::SIFrameLowering::determineCalleeSavesSGPR(), llvm::SIFrameLowering::eliminateCallFramePseudoInstr(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::SIFrameLowering::emitEpilogue(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::SIFrameLowering::emitPrologue(), llvm::SITargetLowering::finalizeLowering(), llvm::SIRegisterInfo::getFrameRegister(), llvm::SIRegisterInfo::getReservedRegs(), isStackPtrRelative(), llvm::SIInstrInfo::loadRegFromStackSlot(), reservePrivateMemoryRegs(), llvm::SIRegisterInfo::restoreSGPR(), llvm::SIRegisterInfo::spillSGPR(), and llvm::SIInstrInfo::storeRegToStackSlot().
|
inline |
Definition at line 522 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIInstrInfo::calculateLDSSpillAddress().
Definition at line 505 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIRegisterInfo::getReservedRegs(), and insertCSRRestores().
|
inline |
Definition at line 509 of file SIMachineFunctionInfo.h.
References llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::find(), and I.
Referenced by spillVGPRtoAGPR().
Definition at line 841 of file SIMachineFunctionInfo.h.
Referenced by llvm::GCNSubtarget::getMaxNumSGPRs(), and llvm::GCNSubtarget::getMaxNumVGPRs().
Dim's work group ID. Definition at line 856 of file SIMachineFunctionInfo.h.
References assert(), llvm::ArgDescriptor::getRegister(), llvm_unreachable, llvm::AMDGPUFunctionArgInfo::WorkGroupIDX, llvm::AMDGPUFunctionArgInfo::WorkGroupIDY, and llvm::AMDGPUFunctionArgInfo::WorkGroupIDZ.
|
inline |
Definition at line 521 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIInstrInfo::calculateLDSSpillAddress().
|
inline |
Definition at line 607 of file SIMachineFunctionInfo.h.
Referenced by allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateSpecialInputSGPRs(), and llvm::AMDGPUAsmPrinter::doFinalization().
|
inline |
|
inline |
Definition at line 611 of file SIMachineFunctionInfo.h.
Referenced by allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateHSAUserSGPRs(), llvm::AMDGPUAsmPrinter::doFinalization(), getLoadExtOrTrunc(), llvm::GCNSubtarget::getReservedNumSGPRs(), getSPDenormModeValue(), hasAnyNonFlatUseOfReg(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 647 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::allocateSpecialInputSGPRs().
|
inline |
Definition at line 651 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), and llvm::AMDGPUCallLowering::lowerFormalArguments().
|
inline |
|
inline |
Definition at line 763 of file SIMachineFunctionInfo.h.
Referenced by SIMachineFunctionInfo().
|
inline |
Definition at line 591 of file SIMachineFunctionInfo.h.
Referenced by allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateHSAUserSGPRs(), and llvm::AMDGPUAsmPrinter::doFinalization().
|
inline |
Definition at line 631 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::allocateSystemSGPRs().
|
inline |
Definition at line 599 of file SIMachineFunctionInfo.h.
Referenced by allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateSpecialInputSGPRs(), and llvm::AMDGPUAsmPrinter::doFinalization().
|
inline |
Definition at line 747 of file SIMachineFunctionInfo.h.
Referenced by insertCSRRestores().
|
inline |
Definition at line 755 of file SIMachineFunctionInfo.h.
Referenced by insertCSRRestores().
|
inline |
Definition at line 615 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::allocateSpecialInputSGPRs(), llvm::SITargetLowering::allocateSystemSGPRs(), hasAnyNonFlatUseOfReg(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 619 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::allocateSpecialInputSGPRs(), llvm::SITargetLowering::allocateSystemSGPRs(), hasAnyNonFlatUseOfReg(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 623 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::allocateSpecialInputSGPRs(), llvm::SITargetLowering::allocateSystemSGPRs(), hasAnyNonFlatUseOfReg(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 627 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::allocateSystemSGPRs(), hasAnyNonFlatUseOfReg(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 635 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::allocateSpecialEntryInputVGPRs(), llvm::SITargetLowering::allocateSpecialInputVGPRs(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 639 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::allocateSpecialEntryInputVGPRs(), llvm::SITargetLowering::allocateSpecialInputVGPRs(), hasAnyNonFlatUseOfReg(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 643 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::allocateSpecialEntryInputVGPRs(), llvm::SITargetLowering::allocateSpecialInputVGPRs(), hasAnyNonFlatUseOfReg(), and llvm::SITargetLowering::LowerFormalArguments().
| bool SIMachineFunctionInfo::haveFreeLanesForSGPRSpill | ( | const MachineFunction & | MF, |
| unsigned | NumNeed | ||
| ) | const |
returns true if NumLanes slots are available in VGPRs already used for SGPR spilling.
Definition at line 252 of file SIMachineFunctionInfo.cpp.
References llvm::MachineFunction::getSubtarget(), llvm::AMDGPUSubtarget::getWavefrontSize(), and llvm::ARM_MB::ST.
Referenced by llvm::SIFrameLowering::determineCalleeSaves().
|
inline |
Definition at line 919 of file SIMachineFunctionInfo.h.
Referenced by llvm::GCNIterativeScheduler::tryMaximizeOccupancy().
| bool SIMachineFunctionInfo::initializeBaseYamlFields | ( | const yaml::SIMachineFunctionInfo & | YamlMFI | ) |
Definition at line 500 of file SIMachineFunctionInfo.cpp.
References llvm::assumeAligned(), llvm::yaml::SIMachineFunctionInfo::ExplicitKernArgSize, llvm::yaml::SIMachineFunctionInfo::HighBitsOf32BitAddress, llvm::yaml::SIMachineFunctionInfo::IsEntryFunction, llvm::yaml::SIMachineFunctionInfo::LDSSize, llvm::yaml::SIMachineFunctionInfo::MaxKernArgAlign, llvm::yaml::SIMachineFunctionInfo::MemoryBound, llvm::yaml::SIMachineFunctionInfo::NoSignedZerosFPMath, and llvm::yaml::SIMachineFunctionInfo::WaveLimiter.
Referenced by llvm::GCNTargetMachine::parseMachineFunctionInfo().
Definition at line 803 of file SIMachineFunctionInfo.h.
Referenced by llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), and processShaderInputArgs().
|
inline |
Definition at line 771 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIFrameLowering::emitEpilogue(), and hasAnyNonFlatUseOfReg().
| void SIMachineFunctionInfo::limitOccupancy | ( | const MachineFunction & | MF | ) |
Definition at line 180 of file SIMachineFunctionInfo.cpp.
References llvm::MachineFunction::getFunction(), llvm::AMDGPUMachineFunction::getLDSSize(), getMaxWavesPerEU(), llvm::AMDGPUSubtarget::getOccupancyWithLocalMemSize(), llvm::MachineFunction::getSubtarget(), and llvm::ARM_MB::ST.
Referenced by llvm::SITargetLowering::finalizeLowering(), and llvm::GCNScheduleDAGMILive::schedule().
|
inline |
Definition at line 914 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 807 of file SIMachineFunctionInfo.h.
Referenced by llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), and processShaderInputArgs().
|
inline |
Definition at line 811 of file SIMachineFunctionInfo.h.
Referenced by llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), and processShaderInputArgs().
| void SIMachineFunctionInfo::removeDeadFrameIndices | ( | MachineFrameInfo & | MFI | ) |
Definition at line 388 of file SIMachineFunctionInfo.cpp.
References assert(), llvm::TargetStackID::Default, llvm::numbers::e, FramePointerSaveIndex, llvm::MachineFrameInfo::getObjectIndexBegin(), llvm::MachineFrameInfo::getObjectIndexEnd(), llvm::MachineFrameInfo::RemoveStackObject(), and llvm::MachineFrameInfo::setStackID().
Referenced by llvm::SIFrameLowering::processFunctionBeforeFrameFinalized().
|
inline |
Definition at line 460 of file SIMachineFunctionInfo.h.
References llvm::SparseBitVector< ElementSize >::set().
Referenced by llvm::createSIPreAllocateWWMRegsPass().
|
inline |
Definition at line 815 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIInstrInfo::insertReturn(), llvm::AMDGPUCallLowering::lowerReturn(), and llvm::SITargetLowering::LowerReturn().
|
inline |
Definition at line 529 of file SIMachineFunctionInfo.h.
References TRI.
Referenced by llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 716 of file SIMachineFunctionInfo.h.
Referenced by buildEpilogReload(), and reservePrivateMemoryRegs().
Definition at line 767 of file SIMachineFunctionInfo.h.
Referenced by reservePrivateMemoryRegs().
Definition at line 751 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIInstrInfo::loadRegFromStackSlot(), and llvm::SIInstrInfo::storeRegToStackSlot().
Definition at line 759 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIInstrInfo::storeRegToStackSlot().
|
inline |
Definition at line 819 of file SIMachineFunctionInfo.h.
Referenced by llvm::AMDGPUCallLowering::lowerReturn(), and llvm::SITargetLowering::LowerReturn().
Definition at line 775 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIFrameLowering::emitPrologue().
|
inline |
Definition at line 587 of file SIMachineFunctionInfo.h.
References llvm::ArgDescriptor::createRegister(), and llvm::AMDGPUFunctionArgInfo::PrivateSegmentWaveByteOffset.
Referenced by llvm::SITargetLowering::allocateSystemSGPRs().
|
inline |
Definition at line 703 of file SIMachineFunctionInfo.h.
Referenced by buildEpilogReload(), and reservePrivateMemoryRegs().
|
inline |
Definition at line 734 of file SIMachineFunctionInfo.h.
Referenced by buildEpilogReload(), and reservePrivateMemoryRegs().
|
inline |
Definition at line 721 of file SIMachineFunctionInfo.h.
Referenced by buildEpilogReload(), and reservePrivateMemoryRegs().
|
inline |
Definition at line 523 of file SIMachineFunctionInfo.h.
References Reg.
Referenced by llvm::SIInstrInfo::calculateLDSSpillAddress().
|
inline |
Definition at line 568 of file SIMachineFunctionInfo.h.
References Arg, and llvm::AMDGPUFunctionArgInfo::WorkItemIDX.
Referenced by llvm::SITargetLowering::allocateSpecialEntryInputVGPRs(), and llvm::SITargetLowering::allocateSpecialInputVGPRs().
|
inline |
Definition at line 572 of file SIMachineFunctionInfo.h.
References Arg, and llvm::AMDGPUFunctionArgInfo::WorkItemIDY.
Referenced by llvm::SITargetLowering::allocateSpecialEntryInputVGPRs(), and llvm::SITargetLowering::allocateSpecialInputVGPRs().
|
inline |
Definition at line 576 of file SIMachineFunctionInfo.h.
References Arg, and llvm::AMDGPUFunctionArgInfo::WorkItemIDZ.
Referenced by llvm::SITargetLowering::allocateSpecialEntryInputVGPRs(), and llvm::SITargetLowering::allocateSpecialInputVGPRs().
|
friend |
Definition at line 324 of file SIMachineFunctionInfo.h.
| Optional<int> llvm::SIMachineFunctionInfo::FramePointerSaveIndex |
Definition at line 484 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::emitEpilogue(), llvm::SIFrameLowering::emitPrologue(), and removeDeadFrameIndices().
| unsigned llvm::SIMachineFunctionInfo::SGPRForFPSaveRestoreCopy = 0 |
If this is set, an SGPR used for save/restore of the register used for the frame pointer.
Definition at line 483 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIFrameLowering::assignCalleeSavedSpillSlots(), llvm::SIFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::emitEpilogue(), and llvm::SIFrameLowering::emitPrologue().
| SparseBitVector llvm::SIMachineFunctionInfo::WWMReservedRegs |
Definition at line 458 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIRegisterInfo::getReservedRegs().
1.8.13