LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::ArgDescriptor Struct Reference

#include "Target/AMDGPU/AMDGPUArgumentUsageInfo.h"

Inheritance diagram for llvm::ArgDescriptor:
Inheritance graph
[legend]

Public Member Functions

 ArgDescriptor (unsigned Val=0, unsigned Mask=~0u, bool IsStack=false, bool IsSet=false)
 
bool isSet () const
 
 operator bool () const
 
bool isRegister () const
 
MCRegister getRegister () const
 
unsigned getStackOffset () const
 
unsigned getMask () const
 
bool isMasked () const
 
void print (raw_ostream &OS, const TargetRegisterInfo *TRI=nullptr) const
 

Static Public Member Functions

static ArgDescriptor createRegister (Register Reg, unsigned Mask=~0u)
 
static ArgDescriptor createStack (unsigned Offset, unsigned Mask=~0u)
 
static ArgDescriptor createArg (const ArgDescriptor &Arg, unsigned Mask)
 

Friends

struct AMDGPUFunctionArgInfo
 
class AMDGPUArgumentUsageInfo
 

Detailed Description

Definition at line 24 of file AMDGPUArgumentUsageInfo.h.

Constructor & Destructor Documentation

◆ ArgDescriptor()

llvm::ArgDescriptor::ArgDescriptor ( unsigned  Val = 0,
unsigned  Mask = ~0u,
bool  IsStack = false,
bool  IsSet = false 
)
inline

Definition at line 41 of file AMDGPUArgumentUsageInfo.h.

Member Function Documentation

◆ createArg()

static ArgDescriptor llvm::ArgDescriptor::createArg ( const ArgDescriptor Arg,
unsigned  Mask 
)
inlinestatic

◆ createRegister()

static ArgDescriptor llvm::ArgDescriptor::createRegister ( Register  Reg,
unsigned  Mask = ~0u 
)
inlinestatic

◆ createStack()

static ArgDescriptor llvm::ArgDescriptor::createStack ( unsigned  Offset,
unsigned  Mask = ~0u 
)
inlinestatic

◆ getMask()

unsigned llvm::ArgDescriptor::getMask ( ) const
inline

◆ getRegister()

MCRegister llvm::ArgDescriptor::getRegister ( ) const
inline

◆ getStackOffset()

unsigned llvm::ArgDescriptor::getStackOffset ( ) const
inline

Definition at line 74 of file AMDGPUArgumentUsageInfo.h.

References assert(), and StackOffset.

Referenced by llvm::AMDGPUTargetLowering::loadInputValue().

◆ isMasked()

bool llvm::ArgDescriptor::isMasked ( ) const
inline

◆ isRegister()

bool llvm::ArgDescriptor::isRegister ( ) const
inline

◆ isSet()

bool llvm::ArgDescriptor::isSet ( ) const
inline

Definition at line 57 of file AMDGPUArgumentUsageInfo.h.

Referenced by operator bool().

◆ operator bool()

llvm::ArgDescriptor::operator bool ( ) const
inlineexplicit

Definition at line 61 of file AMDGPUArgumentUsageInfo.h.

References isSet().

◆ print()

void llvm::ArgDescriptor::print ( raw_ostream OS,
const TargetRegisterInfo TRI = nullptr 
) const

Referenced by llvm::operator<<().

Friends And Related Function Documentation

◆ AMDGPUArgumentUsageInfo

friend class AMDGPUArgumentUsageInfo
friend

Definition at line 27 of file AMDGPUArgumentUsageInfo.h.

◆ AMDGPUFunctionArgInfo

friend struct AMDGPUFunctionArgInfo
friend

Definition at line 26 of file AMDGPUArgumentUsageInfo.h.

Member Data Documentation

◆ Reg

MCRegister llvm::ArgDescriptor::Reg

Definition at line 30 of file AMDGPUArgumentUsageInfo.h.

Referenced by createArg(), createRegister(), and getRegister().

◆ StackOffset

unsigned llvm::ArgDescriptor::StackOffset

Definition at line 31 of file AMDGPUArgumentUsageInfo.h.

Referenced by getStackOffset().


The documentation for this struct was generated from the following file: