LLVM 20.0.0git
|
#include "Target/AMDGPU/GCNSubtarget.h"
Public Types | |
enum | UserSGPRID : unsigned { ImplicitBufferPtrID = 0 , PrivateSegmentBufferID = 1 , DispatchPtrID = 2 , QueuePtrID = 3 , KernargSegmentPtrID = 4 , DispatchIdID = 5 , FlatScratchInitID = 6 , PrivateSegmentSizeID = 7 } |
Public Member Functions | |
bool | hasImplicitBufferPtr () const |
bool | hasPrivateSegmentBuffer () const |
bool | hasDispatchPtr () const |
bool | hasQueuePtr () const |
bool | hasKernargSegmentPtr () const |
bool | hasDispatchID () const |
bool | hasFlatScratchInit () const |
bool | hasPrivateSegmentSize () const |
unsigned | getNumKernargPreloadSGPRs () const |
unsigned | getNumUsedUserSGPRs () const |
unsigned | getNumFreeUserSGPRs () |
void | allocKernargPreloadSGPRs (unsigned NumSGPRs) |
GCNUserSGPRUsageInfo (const Function &F, const GCNSubtarget &ST) | |
Static Public Member Functions | |
static unsigned | getNumUserSGPRForField (UserSGPRID ID) |
Definition at line 1661 of file GCNSubtarget.h.
Enumerator | |
---|---|
ImplicitBufferPtrID | |
PrivateSegmentBufferID | |
DispatchPtrID | |
QueuePtrID | |
KernargSegmentPtrID | |
DispatchIdID | |
FlatScratchInitID | |
PrivateSegmentSizeID |
Definition at line 1687 of file GCNSubtarget.h.
GCNUserSGPRUsageInfo::GCNUserSGPRUsageInfo | ( | const Function & | F, |
const GCNSubtarget & | ST | ||
) |
Definition at line 715 of file GCNSubtarget.cpp.
References llvm::CallingConv::AMDGPU_KERNEL, CC, DispatchIdID, DispatchPtrID, F, FlatScratchInitID, getNumUserSGPRForField(), HasCalls, hasDispatchID(), hasDispatchPtr(), hasFlatScratchInit(), hasImplicitBufferPtr(), hasKernargSegmentPtr(), hasPrivateSegmentBuffer(), hasPrivateSegmentSize(), hasQueuePtr(), ImplicitBufferPtrID, llvm::AMDGPU::isEntryFunctionCC(), llvm::AMDGPU::isGraphics(), KernargSegmentPtrID, PrivateSegmentBufferID, PrivateSegmentSizeID, QueuePtrID, and llvm::CallingConv::SPIR_KERNEL.
void GCNUserSGPRUsageInfo::allocKernargPreloadSGPRs | ( | unsigned | NumSGPRs | ) |
Definition at line 784 of file GCNSubtarget.cpp.
References assert(), and llvm::AMDGPU::getMaxNumUserSGPRs().
Referenced by llvm::SIMachineFunctionInfo::addPreloadedKernArg().
unsigned GCNUserSGPRUsageInfo::getNumFreeUserSGPRs | ( | ) |
Definition at line 790 of file GCNSubtarget.cpp.
References llvm::AMDGPU::getMaxNumUserSGPRs().
Referenced by llvm::SITargetLowering::allocatePreloadKernArgSGPRs().
|
inline |
Definition at line 1679 of file GCNSubtarget.h.
|
inline |
Definition at line 1681 of file GCNSubtarget.h.
|
inlinestatic |
Definition at line 1699 of file GCNSubtarget.h.
References DispatchIdID, DispatchPtrID, FlatScratchInitID, ImplicitBufferPtrID, KernargSegmentPtrID, llvm_unreachable, PrivateSegmentBufferID, PrivateSegmentSizeID, and QueuePtrID.
Referenced by GCNUserSGPRUsageInfo().
|
inline |
Definition at line 1673 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateSpecialInputSGPRs(), and GCNUserSGPRUsageInfo().
|
inline |
Definition at line 1667 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateSpecialInputSGPRs(), GCNUserSGPRUsageInfo(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 1675 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), allocateHSAUserSGPRs(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), GCNUserSGPRUsageInfo(), llvm::GCNSubtarget::getReservedNumSGPRs(), llvm::AMDGPUCallLowering::lowerFormalArguments(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 1663 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), GCNUserSGPRUsageInfo(), and llvm::AMDGPUCallLowering::lowerFormalArguments().
|
inline |
Definition at line 1671 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), allocateHSAUserSGPRs(), GCNUserSGPRUsageInfo(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 1665 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), allocateHSAUserSGPRs(), and GCNUserSGPRUsageInfo().
|
inline |
Definition at line 1677 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), and GCNUserSGPRUsageInfo().
|
inline |