|
LLVM 22.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 1871 of file GCNSubtarget.h.
| Enumerator | |
|---|---|
| ImplicitBufferPtrID | |
| PrivateSegmentBufferID | |
| DispatchPtrID | |
| QueuePtrID | |
| KernargSegmentPtrID | |
| DispatchIdID | |
| FlatScratchInitID | |
| PrivateSegmentSizeID | |
Definition at line 1897 of file GCNSubtarget.h.
| GCNUserSGPRUsageInfo::GCNUserSGPRUsageInfo | ( | const Function & | F, |
| const GCNSubtarget & | ST ) |
Definition at line 690 of file GCNSubtarget.cpp.
References llvm::CallingConv::AMDGPU_KERNEL, DispatchIdID, DispatchPtrID, F, FlatScratchInitID, getNumUserSGPRForField(), hasDispatchID(), hasDispatchPtr(), hasFlatScratchInit(), hasImplicitBufferPtr(), hasKernargSegmentPtr(), hasPrivateSegmentBuffer(), hasPrivateSegmentSize(), hasQueuePtr(), if(), ImplicitBufferPtrID, llvm::AMDGPU::isEntryFunctionCC(), llvm::AMDGPU::isGraphics(), KernargSegmentPtrID, PrivateSegmentBufferID, PrivateSegmentSizeID, QueuePtrID, and llvm::CallingConv::SPIR_KERNEL.
| void GCNUserSGPRUsageInfo::allocKernargPreloadSGPRs | ( | unsigned | NumSGPRs | ) |
Definition at line 754 of file GCNSubtarget.cpp.
References assert(), and llvm::AMDGPU::getMaxNumUserSGPRs().
| unsigned GCNUserSGPRUsageInfo::getNumFreeUserSGPRs | ( | ) |
Definition at line 760 of file GCNSubtarget.cpp.
References llvm::AMDGPU::getMaxNumUserSGPRs().
Referenced by llvm::SITargetLowering::allocatePreloadKernArgSGPRs().
|
inline |
Definition at line 1889 of file GCNSubtarget.h.
|
inline |
Definition at line 1891 of file GCNSubtarget.h.
|
inlinestatic |
Definition at line 1909 of file GCNSubtarget.h.
References DispatchIdID, DispatchPtrID, FlatScratchInitID, ImplicitBufferPtrID, KernargSegmentPtrID, llvm_unreachable, PrivateSegmentBufferID, PrivateSegmentSizeID, and QueuePtrID.
Referenced by GCNUserSGPRUsageInfo().
|
inline |
Definition at line 1883 of file GCNSubtarget.h.
Referenced by allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateSpecialInputSGPRs(), and GCNUserSGPRUsageInfo().
|
inline |
Definition at line 1877 of file GCNSubtarget.h.
Referenced by allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateSpecialInputSGPRs(), GCNUserSGPRUsageInfo(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 1885 of file GCNSubtarget.h.
Referenced by allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateHSAUserSGPRs(), llvm::AMDGPUResourceUsageAnalysisImpl::analyzeResourceUsage(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), GCNUserSGPRUsageInfo(), llvm::GCNSubtarget::getReservedNumSGPRs(), llvm::SITargetLowering::LowerFormalArguments(), and llvm::AMDGPUCallLowering::lowerFormalArguments().
|
inline |
Definition at line 1873 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::allocateHSAUserSGPRs(), GCNUserSGPRUsageInfo(), and llvm::AMDGPUCallLowering::lowerFormalArguments().
|
inline |
Definition at line 1881 of file GCNSubtarget.h.
Referenced by allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateHSAUserSGPRs(), GCNUserSGPRUsageInfo(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 1875 of file GCNSubtarget.h.
Referenced by allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateHSAUserSGPRs(), and GCNUserSGPRUsageInfo().
|
inline |
Definition at line 1887 of file GCNSubtarget.h.
Referenced by allocateHSAUserSGPRs(), llvm::SITargetLowering::allocateHSAUserSGPRs(), and GCNUserSGPRUsageInfo().
|
inline |