LLVM 24.0.0git
llvm::PISA Namespace Reference

Classes

struct  BoolOptionTableEntry
struct  DataType
class  DataTypes
struct  EnumOptionEntry
struct  FunctionDeclaration
struct  FunctionDeclParam
struct  FunctionDirectiveAndName
struct  FunctionParameter
struct  FunctionSignature
struct  GlobalVariableDcls
struct  HeaderDcl
struct  KernelAttribute
struct  KernelParameter
struct  LocalVariableDcls
struct  RegDcls
class  RegEncoder
class  RegManager
struct  TypeInfo
struct  VariableDcl
struct  VariableDclInit
struct  VariableInit

Typedefs

using LocalVariableDcl = VariableDcl
using GlobalVariableDcl = VariableDclInit

Enumerations

enum  OperandType : unsigned { OPERAND_NEGATE = MCOI::OPERAND_FIRST_TARGET , OPERAND_SWIZZLE }
enum  LinkageTy { DEFAULT , EXPORT , IMPORT }
enum class  StorageSpace : unsigned {
  GENERIC , GLOBAL , CONSTANT , SHARED ,
  PRIVATE
}
enum class  KernelAttributeType { REQD_WORK_GROUP_SIZE , VEC_TYPE_HINT }
enum class  Swizzle : unsigned {
  X , Y , Z , W ,
  XYZW , XY , ZW , NONE
}
enum class  LdCacheCtrl : unsigned {
  Default = 0 , L1c = 1 , L1uc = 2 , L1s = 3 ,
  L2c = 4 , L2uc = 5 , L3c = 6 , L3uc = 7 ,
  ri = 8
}
enum class  StCacheCtrl : unsigned {
  Default = 0 , L1uc = 1 , L1wb = 2 , L1wt = 3 ,
  L1s = 4 , L2uc = 5 , L2wb = 6 , L3uc = 7 ,
  L3wb = 8
}
enum class  AtomCacheCtrl : unsigned { Default = 0 , uc = 2 , L2wb = 4 , L3wb = 3 }

Functions

StringRef getLinkageTyName (LinkageTy Linkage)
StorageSpace mapAddrSpaceToStorageSpace (unsigned AS)
std::optional< unsigned > getCacheCtrlFromMMRA (const Instruction &I)
void setCacheCtrlMMRA (Instruction &I, unsigned Value)
void copyCacheCtrlMMRA (const Instruction &From, Instruction &To)
static const MachineOperand & getMO (const MachineInstr &MI, PISA::OpName Name)
static const TargetRegisterClass * getSubRegClass (const PISARegisterInfo &RI, MachineRegisterInfo &MRI, MachineOperand &MO)
std::tuple< MachineInstr *, unsigned > getDefIgnoringBitcasts (Register Reg, const MachineRegisterInfo &MRI, bool NoVectors)

Variables

constexpr unsigned SimdSize = 32

Typedef Documentation

◆ GlobalVariableDcl

◆ LocalVariableDcl

Enumeration Type Documentation

◆ AtomCacheCtrl

enum class llvm::PISA::AtomCacheCtrl : unsigned
strong
Enumerator
Default 
uc 
L2wb 
L3wb 

Definition at line 53 of file PISADefines.h.

◆ KernelAttributeType

Enumerator
REQD_WORK_GROUP_SIZE 
VEC_TYPE_HINT 

Definition at line 45 of file PISATargetStreamer.h.

◆ LdCacheCtrl

enum class llvm::PISA::LdCacheCtrl : unsigned
strong
Enumerator
Default 
L1c 
L1uc 
L1s 
L2c 
L2uc 
L3c 
L3uc 
ri 

Definition at line 29 of file PISADefines.h.

◆ LinkageTy

Enumerator
DEFAULT 
EXPORT 
IMPORT 

Definition at line 33 of file PISATargetStreamer.h.

◆ OperandType

Enumerator
OPERAND_NEGATE 
OPERAND_SWIZZLE 

Definition at line 37 of file PISAMCTargetDesc.h.

◆ StCacheCtrl

enum class llvm::PISA::StCacheCtrl : unsigned
strong
Enumerator
Default 
L1uc 
L1wb 
L1wt 
L1s 
L2uc 
L2wb 
L3uc 
L3wb 

Definition at line 41 of file PISADefines.h.

◆ StorageSpace

enum class llvm::PISA::StorageSpace : unsigned
strong
Enumerator
GENERIC 
GLOBAL 
CONSTANT 
SHARED 
PRIVATE 

Definition at line 36 of file PISATargetStreamer.h.

◆ Swizzle

enum class llvm::PISA::Swizzle : unsigned
strong
Enumerator
X 
Y 
Z 
W 
XYZW 
XY 
ZW 
NONE 

Definition at line 24 of file PISADefines.h.

Function Documentation

◆ copyCacheCtrlMMRA()

void llvm::PISA::copyCacheCtrlMMRA ( const Instruction & From,
Instruction & To )

Definition at line 75 of file PISACacheCtrlMMRA.cpp.

References getCacheCtrlFromMMRA(), and setCacheCtrlMMRA().

◆ getCacheCtrlFromMMRA()

std::optional< unsigned > llvm::PISA::getCacheCtrlFromMMRA ( const Instruction & I)

◆ getDefIgnoringBitcasts()

std::tuple< MachineInstr *, unsigned > llvm::PISA::getDefIgnoringBitcasts ( Register Reg,
const MachineRegisterInfo & MRI,
bool NoVectors )

◆ getLinkageTyName()

StringRef llvm::PISA::getLinkageTyName ( PISA::LinkageTy Linkage)

Definition at line 82 of file PISATargetStreamer.cpp.

References DEFAULT, EXPORT, IMPORT, and llvm_unreachable.

◆ getMO()

const MachineOperand & llvm::PISA::getMO ( const MachineInstr & MI,
PISA::OpName Name )
static

Definition at line 72 of file PISAInstrInfo.cpp.

References assert(), and MI.

Referenced by llvm::PISAInstrInfo::analyzeBranch().

◆ getSubRegClass()

const TargetRegisterClass * llvm::PISA::getSubRegClass ( const PISARegisterInfo & RI,
MachineRegisterInfo & MRI,
MachineOperand & MO )
static

◆ mapAddrSpaceToStorageSpace()

◆ setCacheCtrlMMRA()

Variable Documentation

◆ SimdSize

unsigned llvm::PISA::SimdSize = 32
constexpr

Definition at line 25 of file PISADefines.h.