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 1587 of file GCNSubtarget.h.
Enumerator | |
---|---|
ImplicitBufferPtrID | |
PrivateSegmentBufferID | |
DispatchPtrID | |
QueuePtrID | |
KernargSegmentPtrID | |
DispatchIdID | |
FlatScratchInitID | |
PrivateSegmentSizeID |
Definition at line 1613 of file GCNSubtarget.h.
GCNUserSGPRUsageInfo::GCNUserSGPRUsageInfo | ( | const Function & | F, |
const GCNSubtarget & | ST | ||
) |
Definition at line 1051 of file AMDGPUSubtarget.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 1120 of file AMDGPUSubtarget.cpp.
References assert(), and llvm::AMDGPU::getMaxNumUserSGPRs().
Referenced by llvm::SIMachineFunctionInfo::addPreloadedKernArg().
unsigned GCNUserSGPRUsageInfo::getNumFreeUserSGPRs | ( | ) |
Definition at line 1126 of file AMDGPUSubtarget.cpp.
References llvm::AMDGPU::getMaxNumUserSGPRs().
Referenced by llvm::SITargetLowering::allocatePreloadKernArgSGPRs().
|
inline |
Definition at line 1605 of file GCNSubtarget.h.
|
inline |
Definition at line 1607 of file GCNSubtarget.h.
|
inlinestatic |
Definition at line 1625 of file GCNSubtarget.h.
References DispatchIdID, DispatchPtrID, FlatScratchInitID, ImplicitBufferPtrID, KernargSegmentPtrID, llvm_unreachable, PrivateSegmentBufferID, PrivateSegmentSizeID, and QueuePtrID.
Referenced by GCNUserSGPRUsageInfo().
|
inline |
Definition at line 1599 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateSpecialInputSGPRs(), and GCNUserSGPRUsageInfo().
|
inline |
Definition at line 1593 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateSpecialInputSGPRs(), GCNUserSGPRUsageInfo(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 1601 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 1589 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), GCNUserSGPRUsageInfo(), and llvm::AMDGPUCallLowering::lowerFormalArguments().
|
inline |
Definition at line 1597 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), allocateHSAUserSGPRs(), GCNUserSGPRUsageInfo(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 1591 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), allocateHSAUserSGPRs(), and GCNUserSGPRUsageInfo().
|
inline |
Definition at line 1603 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), and GCNUserSGPRUsageInfo().
|
inline |