LLVM 20.0.0git
Public Types | Public Member Functions | Static Public Member Functions | List of all members
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 1661 of file GCNSubtarget.h.

Member Enumeration Documentation

◆ UserSGPRID

Enumerator
ImplicitBufferPtrID 
PrivateSegmentBufferID 
DispatchPtrID 
QueuePtrID 
KernargSegmentPtrID 
DispatchIdID 
FlatScratchInitID 
PrivateSegmentSizeID 

Definition at line 1687 of file GCNSubtarget.h.

Constructor & Destructor Documentation

◆ GCNUserSGPRUsageInfo()

GCNUserSGPRUsageInfo::GCNUserSGPRUsageInfo ( const Function F,
const GCNSubtarget ST 
)

Member Function Documentation

◆ allocKernargPreloadSGPRs()

void GCNUserSGPRUsageInfo::allocKernargPreloadSGPRs ( unsigned  NumSGPRs)

◆ getNumFreeUserSGPRs()

unsigned GCNUserSGPRUsageInfo::getNumFreeUserSGPRs ( )

◆ getNumKernargPreloadSGPRs()

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

Definition at line 1679 of file GCNSubtarget.h.

◆ getNumUsedUserSGPRs()

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

Definition at line 1681 of file GCNSubtarget.h.

◆ getNumUserSGPRForField()

static 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: