LLVM  14.0.0git
Classes | Enumerations | Functions | Variables
llvm::AMDGPU::Exp Namespace Reference

Classes

struct  ExpTgt
 

Enumerations

enum  Target : unsigned {
  ET_MRT0 = 0, ET_MRT7 = 7, ET_MRTZ = 8, ET_NULL = 9,
  ET_POS0 = 12, ET_POS3 = 15, ET_POS4 = 16, ET_POS_LAST = ET_POS4,
  ET_PRIM = 20, ET_PARAM0 = 32, ET_PARAM31 = 63, ET_NULL_MAX_IDX = 0,
  ET_MRTZ_MAX_IDX = 0, ET_PRIM_MAX_IDX = 0, ET_MRT_MAX_IDX = 7, ET_POS_MAX_IDX = 4,
  ET_PARAM_MAX_IDX = 31, ET_INVALID = 255
}
 

Functions

bool getTgtName (unsigned Id, StringRef &Name, int &Index)
 
unsigned getTgtId (const StringRef Name)
 
bool isSupportedTgtId (unsigned Id, const MCSubtargetInfo &STI)
 

Variables

static constexpr ExpTgt ExpTgtInfo []
 

Enumeration Type Documentation

◆ Target

enum llvm::AMDGPU::Exp::Target : unsigned
Enumerator
ET_MRT0 
ET_MRT7 
ET_MRTZ 
ET_NULL 
ET_POS0 
ET_POS3 
ET_POS4 
ET_POS_LAST 
ET_PRIM 
ET_PARAM0 
ET_PARAM31 
ET_NULL_MAX_IDX 
ET_MRTZ_MAX_IDX 
ET_PRIM_MAX_IDX 
ET_MRT_MAX_IDX 
ET_POS_MAX_IDX 
ET_PARAM_MAX_IDX 
ET_INVALID 

Definition at line 739 of file SIDefines.h.

Function Documentation

◆ getTgtId()

LLVM_READONLY unsigned llvm::AMDGPU::Exp::getTgtId ( const StringRef  Name)

◆ getTgtName()

bool llvm::AMDGPU::Exp::getTgtName ( unsigned  Id,
StringRef Name,
int Index 
)

Definition at line 1075 of file AMDGPUBaseInfo.cpp.

References ExpTgtInfo, and Index.

◆ isSupportedTgtId()

LLVM_READNONE bool llvm::AMDGPU::Exp::isSupportedTgtId ( unsigned  Id,
const MCSubtargetInfo STI 
)

Definition at line 1109 of file AMDGPUBaseInfo.cpp.

References ET_POS4, ET_PRIM, and llvm::AMDGPU::isGFX10Plus().

Variable Documentation

◆ ExpTgtInfo

constexpr ExpTgt llvm::AMDGPU::Exp::ExpTgtInfo[]
staticconstexpr
Initial value:
= {
{{"null"}, ET_NULL, ET_NULL_MAX_IDX},
{{"mrtz"}, ET_MRTZ, ET_MRTZ_MAX_IDX},
{{"prim"}, ET_PRIM, ET_PRIM_MAX_IDX},
{{"mrt"}, ET_MRT0, ET_MRT_MAX_IDX},
{{"pos"}, ET_POS0, ET_POS_MAX_IDX},
{{"param"}, ET_PARAM0, ET_PARAM_MAX_IDX},
}

Definition at line 1066 of file AMDGPUBaseInfo.cpp.

Referenced by getTgtId(), and getTgtName().

llvm::AMDGPU::Exp::ET_NULL
@ ET_NULL
Definition: SIDefines.h:743
llvm::AMDGPU::Exp::ET_POS0
@ ET_POS0
Definition: SIDefines.h:744
llvm::AMDGPU::Exp::ET_PARAM0
@ ET_PARAM0
Definition: SIDefines.h:749
llvm::AMDGPU::Exp::ET_MRTZ_MAX_IDX
@ ET_MRTZ_MAX_IDX
Definition: SIDefines.h:753
llvm::AMDGPU::Exp::ET_PRIM
@ ET_PRIM
Definition: SIDefines.h:748
llvm::AMDGPU::Exp::ET_PARAM_MAX_IDX
@ ET_PARAM_MAX_IDX
Definition: SIDefines.h:757
llvm::AMDGPU::Exp::ET_MRT0
@ ET_MRT0
Definition: SIDefines.h:740
llvm::AMDGPU::Exp::ET_MRTZ
@ ET_MRTZ
Definition: SIDefines.h:742
llvm::AMDGPU::Exp::ET_POS_MAX_IDX
@ ET_POS_MAX_IDX
Definition: SIDefines.h:756
llvm::AMDGPU::Exp::ET_PRIM_MAX_IDX
@ ET_PRIM_MAX_IDX
Definition: SIDefines.h:754
llvm::AMDGPU::Exp::ET_NULL_MAX_IDX
@ ET_NULL_MAX_IDX
Definition: SIDefines.h:752
llvm::AMDGPU::Exp::ET_MRT_MAX_IDX
@ ET_MRT_MAX_IDX
Definition: SIDefines.h:755