LLVM: llvm::GCNUserSGPRUsageInfo Class Reference (original) (raw)

#include "[Target/AMDGPU/GCNSubtarget.h](GCNSubtarget%5F8h%5Fsource.html)"

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)

Definition at line 1912 of file GCNSubtarget.h.

UserSGPRID

Enumerator
ImplicitBufferPtrID
PrivateSegmentBufferID
DispatchPtrID
QueuePtrID
KernargSegmentPtrID
DispatchIdID
FlatScratchInitID
PrivateSegmentSizeID

Definition at line 1938 of file GCNSubtarget.h.

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.

allocKernargPreloadSGPRs()

void GCNUserSGPRUsageInfo::allocKernargPreloadSGPRs ( unsigned NumSGPRs )

getNumFreeUserSGPRs()

unsigned GCNUserSGPRUsageInfo::getNumFreeUserSGPRs ( )

getNumKernargPreloadSGPRs()

unsigned llvm::GCNUserSGPRUsageInfo::getNumKernargPreloadSGPRs ( ) const inline

getNumUsedUserSGPRs()

unsigned llvm::GCNUserSGPRUsageInfo::getNumUsedUserSGPRs ( ) const inline

getNumUserSGPRForField()

unsigned llvm::GCNUserSGPRUsageInfo::getNumUserSGPRForField ( UserSGPRID ID) inlinestatic

hasDispatchID()

bool llvm::GCNUserSGPRUsageInfo::hasDispatchID ( ) const inline

hasDispatchPtr()

bool llvm::GCNUserSGPRUsageInfo::hasDispatchPtr ( ) const inline

hasFlatScratchInit()

bool llvm::GCNUserSGPRUsageInfo::hasFlatScratchInit ( ) const inline

hasImplicitBufferPtr()

bool llvm::GCNUserSGPRUsageInfo::hasImplicitBufferPtr ( ) const inline

hasKernargSegmentPtr()

bool llvm::GCNUserSGPRUsageInfo::hasKernargSegmentPtr ( ) const inline

hasPrivateSegmentBuffer()

bool llvm::GCNUserSGPRUsageInfo::hasPrivateSegmentBuffer ( ) const inline

hasPrivateSegmentSize()

bool llvm::GCNUserSGPRUsageInfo::hasPrivateSegmentSize ( ) const inline

hasQueuePtr()

bool llvm::GCNUserSGPRUsageInfo::hasQueuePtr ( ) const inline

The documentation for this class was generated from the following files: