LLVM 22.0.0git
llvm::GCNUserSGPRUsageInfo Class Reference

#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)

Detailed Description

Definition at line 1854 of file GCNSubtarget.h.

Member Enumeration Documentation

◆ UserSGPRID

Enumerator
ImplicitBufferPtrID 
PrivateSegmentBufferID 
DispatchPtrID 
QueuePtrID 
KernargSegmentPtrID 
DispatchIdID 
FlatScratchInitID 
PrivateSegmentSizeID 

Definition at line 1880 of file GCNSubtarget.h.

Constructor & Destructor Documentation

◆ GCNUserSGPRUsageInfo()

Member Function Documentation

◆ allocKernargPreloadSGPRs()

void GCNUserSGPRUsageInfo::allocKernargPreloadSGPRs ( unsigned NumSGPRs)

Definition at line 755 of file GCNSubtarget.cpp.

References assert(), and llvm::AMDGPU::getMaxNumUserSGPRs().

◆ getNumFreeUserSGPRs()

unsigned GCNUserSGPRUsageInfo::getNumFreeUserSGPRs ( )

◆ getNumKernargPreloadSGPRs()

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

Definition at line 1872 of file GCNSubtarget.h.

◆ getNumUsedUserSGPRs()

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

Definition at line 1874 of file GCNSubtarget.h.

◆ getNumUserSGPRForField()

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

◆ hasDispatchID()

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

◆ hasDispatchPtr()

◆ hasFlatScratchInit()

◆ 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()


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