LLVM  9.0.0svn
Public Member Functions | List of all members
llvm::AMDGPUPALMetadata Class Reference

#include "Target/AMDGPU/Utils/AMDGPUPALMetadata.h"

Public Member Functions

void readFromIR (Module &M)
 
bool setFromBlob (unsigned Type, StringRef Blob)
 
void setRsrc1 (unsigned CC, unsigned Val)
 
void setRsrc2 (unsigned CC, unsigned Val)
 
void setSpiPsInputEna (unsigned Val)
 
void setSpiPsInputAddr (unsigned Val)
 
unsigned getRegister (unsigned Reg)
 
void setRegister (unsigned Reg, unsigned Val)
 
void setEntryPoint (unsigned CC, StringRef Name)
 
void setNumUsedVgprs (unsigned CC, unsigned Val)
 
void setNumUsedSgprs (unsigned CC, unsigned Val)
 
void setScratchSize (unsigned CC, unsigned Val)
 
void setWave32 (unsigned CC)
 
void toString (std::string &S)
 
bool setFromString (StringRef S)
 
const chargetVendor () const
 
unsigned getType () const
 
void toBlob (unsigned Type, std::string &S)
 
msgpack::DocumentgetMsgPackDoc ()
 
void setLegacy ()
 

Detailed Description

Definition at line 28 of file AMDGPUPALMetadata.h.

Member Function Documentation

◆ getMsgPackDoc()

msgpack::Document* llvm::AMDGPUPALMetadata::getMsgPackDoc ( )
inline

Definition at line 108 of file AMDGPUPALMetadata.h.

References setLegacy().

◆ getRegister()

unsigned AMDGPUPALMetadata::getRegister ( unsigned  Reg)

Definition at line 158 of file AMDGPUPALMetadata.cpp.

References N, and llvm::msgpack::UInt.

◆ getType()

unsigned AMDGPUPALMetadata::getType ( ) const

◆ getVendor()

const char * AMDGPUPALMetadata::getVendor ( ) const

◆ readFromIR()

void AMDGPUPALMetadata::readFromIR ( Module M)

◆ setEntryPoint()

void AMDGPUPALMetadata::setEntryPoint ( unsigned  CC,
StringRef  Name 
)

Definition at line 185 of file AMDGPUPALMetadata.cpp.

Referenced by getRsrcReg().

◆ setFromBlob()

bool AMDGPUPALMetadata::setFromBlob ( unsigned  Type,
StringRef  Blob 
)

◆ setFromString()

bool AMDGPUPALMetadata::setFromString ( StringRef  S)

◆ setLegacy()

void AMDGPUPALMetadata::setLegacy ( )

Definition at line 720 of file AMDGPUPALMetadata.cpp.

References llvm::ELF::NT_AMD_AMDGPU_PAL_METADATA.

Referenced by getMsgPackDoc().

◆ setNumUsedSgprs()

void AMDGPUPALMetadata::setNumUsedSgprs ( unsigned  CC,
unsigned  Val 
)

◆ setNumUsedVgprs()

void AMDGPUPALMetadata::setNumUsedVgprs ( unsigned  CC,
unsigned  Val 
)

◆ setRegister()

void AMDGPUPALMetadata::setRegister ( unsigned  Reg,
unsigned  Val 
)

Definition at line 171 of file AMDGPUPALMetadata.cpp.

References N, and llvm::msgpack::UInt.

◆ setRsrc1()

void AMDGPUPALMetadata::setRsrc1 ( unsigned  CC,
unsigned  Val 
)

Definition at line 135 of file AMDGPUPALMetadata.cpp.

References getRsrc1Reg().

◆ setRsrc2()

void AMDGPUPALMetadata::setRsrc2 ( unsigned  CC,
unsigned  Val 
)

Definition at line 141 of file AMDGPUPALMetadata.cpp.

References getRsrc1Reg().

◆ setScratchSize()

void AMDGPUPALMetadata::setScratchSize ( unsigned  CC,
unsigned  Val 
)

Definition at line 226 of file AMDGPUPALMetadata.cpp.

References getScratchSizeKey().

◆ setSpiPsInputAddr()

void AMDGPUPALMetadata::setSpiPsInputAddr ( unsigned  Val)

◆ setSpiPsInputEna()

void AMDGPUPALMetadata::setSpiPsInputEna ( unsigned  Val)

◆ setWave32()

void AMDGPUPALMetadata::setWave32 ( unsigned  CC)

◆ toBlob()

void AMDGPUPALMetadata::toBlob ( unsigned  Type,
std::string &  S 
)

◆ toString()

void AMDGPUPALMetadata::toString ( std::string &  S)

The documentation for this class was generated from the following files: