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

#include "Target/AMDGPU/AMDGPUArgumentUsageInfo.h"

Collaboration diagram for llvm::ArgDescriptor:
Collaboration graph

Public Member Functions

constexpr 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 constexpr ArgDescriptor createRegister (Register Reg, unsigned Mask=~0u)
static constexpr ArgDescriptor createStack (unsigned Offset, unsigned Mask=~0u)
static constexpr ArgDescriptor createArg (const ArgDescriptor &Arg, unsigned Mask)


struct AMDGPUFunctionArgInfo
class AMDGPUArgumentUsageInfo

Detailed Description

Definition at line 23 of file AMDGPUArgumentUsageInfo.h.

Constructor & Destructor Documentation

◆ ArgDescriptor()

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

Definition at line 40 of file AMDGPUArgumentUsageInfo.h.

Member Function Documentation

◆ createArg()

static constexpr ArgDescriptor llvm::ArgDescriptor::createArg ( const ArgDescriptor Arg,
unsigned  Mask 

◆ createRegister()

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

◆ createStack()

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

◆ getMask()

unsigned llvm::ArgDescriptor::getMask ( ) const

Definition at line 81 of file AMDGPUArgumentUsageInfo.h.

◆ getRegister()

MCRegister llvm::ArgDescriptor::getRegister ( ) const

◆ getStackOffset()

unsigned llvm::ArgDescriptor::getStackOffset ( ) const

Definition at line 76 of file AMDGPUArgumentUsageInfo.h.

References assert(), and StackOffset.

◆ isMasked()

bool llvm::ArgDescriptor::isMasked ( ) const

◆ isRegister()

bool llvm::ArgDescriptor::isRegister ( ) const

◆ isSet()

bool llvm::ArgDescriptor::isSet ( ) const

Definition at line 59 of file AMDGPUArgumentUsageInfo.h.

Referenced by operator bool().

◆ operator bool()

llvm::ArgDescriptor::operator bool ( ) const

Definition at line 63 of file AMDGPUArgumentUsageInfo.h.

References isSet().

◆ print()

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

Friends And Related Function Documentation

◆ AMDGPUArgumentUsageInfo

friend class AMDGPUArgumentUsageInfo

Definition at line 26 of file AMDGPUArgumentUsageInfo.h.

◆ AMDGPUFunctionArgInfo

friend struct AMDGPUFunctionArgInfo

Definition at line 25 of file AMDGPUArgumentUsageInfo.h.

Member Data Documentation

◆ Reg

MCRegister llvm::ArgDescriptor::Reg

Definition at line 29 of file AMDGPUArgumentUsageInfo.h.

Referenced by createRegister(), and getRegister().

◆ StackOffset

unsigned llvm::ArgDescriptor::StackOffset

Definition at line 30 of file AMDGPUArgumentUsageInfo.h.

Referenced by getStackOffset().

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