LLVM 19.0.0git
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 setNumUsedAgprs (unsigned CC, unsigned Val)
 
void setNumUsedSgprs (unsigned CC, unsigned Val)
 
void setScratchSize (unsigned CC, unsigned Val)
 
void setFunctionScratchSize (StringRef FnName, unsigned Val)
 
void setFunctionLdsSize (StringRef FnName, unsigned Val)
 
void setFunctionNumUsedVgprs (StringRef FnName, unsigned Val)
 
void setFunctionNumUsedSgprs (StringRef FnName, 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 ()
 
unsigned getPALMajorVersion ()
 
unsigned getPALMinorVersion ()
 
void setHwStage (unsigned CC, StringRef field, unsigned Val)
 
void setHwStage (unsigned CC, StringRef field, bool Val)
 
void setComputeRegisters (StringRef field, unsigned Val)
 
void setComputeRegisters (StringRef field, bool Val)
 
msgpack::DocNoderefComputeRegister (StringRef field)
 
bool checkComputeRegisters (StringRef field, unsigned Val)
 
bool checkComputeRegisters (StringRef field, bool Val)
 
void setGraphicsRegisters (StringRef field, unsigned Val)
 
void setGraphicsRegisters (StringRef field, bool Val)
 
void setGraphicsRegisters (StringRef field1, StringRef field2, unsigned Val)
 
void setGraphicsRegisters (StringRef field1, StringRef field2, bool Val)
 
void reset ()
 

Detailed Description

Definition at line 23 of file AMDGPUPALMetadata.h.

Member Function Documentation

◆ checkComputeRegisters() [1/2]

bool AMDGPUPALMetadata::checkComputeRegisters ( StringRef  field,
bool  Val 
)

Definition at line 965 of file AMDGPUPALMetadata.cpp.

References N, and refComputeRegister().

◆ checkComputeRegisters() [2/2]

bool AMDGPUPALMetadata::checkComputeRegisters ( StringRef  field,
unsigned  Val 
)

Definition at line 959 of file AMDGPUPALMetadata.cpp.

References N, and refComputeRegister().

◆ getMsgPackDoc()

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

Definition at line 131 of file AMDGPUPALMetadata.h.

◆ getPALMajorVersion()

unsigned AMDGPUPALMetadata::getPALMajorVersion ( )

Definition at line 932 of file AMDGPUPALMetadata.cpp.

◆ getPALMinorVersion()

unsigned AMDGPUPALMetadata::getPALMinorVersion ( )

Definition at line 934 of file AMDGPUPALMetadata.cpp.

◆ getRegister()

unsigned AMDGPUPALMetadata::getRegister ( unsigned  Reg)

Definition at line 159 of file AMDGPUPALMetadata.cpp.

References llvm::msgpack::Document::getNode(), N, and llvm::msgpack::UInt.

◆ getType()

unsigned AMDGPUPALMetadata::getType ( ) const

Definition at line 892 of file AMDGPUPALMetadata.cpp.

Referenced by llvm::AMDGPUTargetELFStreamer::finish().

◆ getVendor()

const char * AMDGPUPALMetadata::getVendor ( ) const

◆ readFromIR()

void AMDGPUPALMetadata::readFromIR ( Module M)

◆ refComputeRegister()

msgpack::DocNode * AMDGPUPALMetadata::refComputeRegister ( StringRef  field)

Definition at line 953 of file AMDGPUPALMetadata.cpp.

References I.

Referenced by checkComputeRegisters().

◆ reset()

void AMDGPUPALMetadata::reset ( )

◆ setComputeRegisters() [1/2]

void AMDGPUPALMetadata::setComputeRegisters ( StringRef  field,
bool  Val 
)

Definition at line 949 of file AMDGPUPALMetadata.cpp.

◆ setComputeRegisters() [2/2]

void AMDGPUPALMetadata::setComputeRegisters ( StringRef  field,
unsigned  Val 
)

Definition at line 945 of file AMDGPUPALMetadata.cpp.

◆ setEntryPoint()

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

Definition at line 186 of file AMDGPUPALMetadata.cpp.

References CC, llvm::msgpack::Document::getNode(), and Name.

◆ setFromBlob()

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

Definition at line 69 of file AMDGPUPALMetadata.cpp.

References llvm::ELF::NT_AMD_PAL_METADATA.

◆ setFromString()

bool AMDGPUPALMetadata::setFromString ( StringRef  S)

◆ setFunctionLdsSize()

void AMDGPUPALMetadata::setFunctionLdsSize ( StringRef  FnName,
unsigned  Val 
)

Definition at line 250 of file AMDGPUPALMetadata.cpp.

References llvm::msgpack::Document::getNode().

◆ setFunctionNumUsedSgprs()

void AMDGPUPALMetadata::setFunctionNumUsedSgprs ( StringRef  FnName,
unsigned  Val 
)

Definition at line 263 of file AMDGPUPALMetadata.cpp.

References llvm::msgpack::Document::getNode().

◆ setFunctionNumUsedVgprs()

void AMDGPUPALMetadata::setFunctionNumUsedVgprs ( StringRef  FnName,
unsigned  Val 
)

Definition at line 256 of file AMDGPUPALMetadata.cpp.

References llvm::msgpack::Document::getNode().

◆ setFunctionScratchSize()

void AMDGPUPALMetadata::setFunctionScratchSize ( StringRef  FnName,
unsigned  Val 
)

Definition at line 243 of file AMDGPUPALMetadata.cpp.

References llvm::msgpack::Document::getNode().

◆ setGraphicsRegisters() [1/4]

void AMDGPUPALMetadata::setGraphicsRegisters ( StringRef  field,
bool  Val 
)

Definition at line 975 of file AMDGPUPALMetadata.cpp.

◆ setGraphicsRegisters() [2/4]

void AMDGPUPALMetadata::setGraphicsRegisters ( StringRef  field,
unsigned  Val 
)

Definition at line 971 of file AMDGPUPALMetadata.cpp.

◆ setGraphicsRegisters() [3/4]

void AMDGPUPALMetadata::setGraphicsRegisters ( StringRef  field1,
StringRef  field2,
bool  Val 
)

Definition at line 984 of file AMDGPUPALMetadata.cpp.

References llvm::msgpack::DocNode::getMap().

◆ setGraphicsRegisters() [4/4]

void AMDGPUPALMetadata::setGraphicsRegisters ( StringRef  field1,
StringRef  field2,
unsigned  Val 
)

Definition at line 979 of file AMDGPUPALMetadata.cpp.

References llvm::msgpack::DocNode::getMap().

◆ setHwStage() [1/2]

void AMDGPUPALMetadata::setHwStage ( unsigned  CC,
StringRef  field,
bool  Val 
)

Definition at line 941 of file AMDGPUPALMetadata.cpp.

References CC.

◆ setHwStage() [2/2]

void AMDGPUPALMetadata::setHwStage ( unsigned  CC,
StringRef  field,
unsigned  Val 
)

Definition at line 937 of file AMDGPUPALMetadata.cpp.

References CC.

◆ setLegacy()

void AMDGPUPALMetadata::setLegacy ( )

Definition at line 902 of file AMDGPUPALMetadata.cpp.

References llvm::ELF::NT_AMD_PAL_METADATA.

◆ setNumUsedAgprs()

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

Definition at line 211 of file AMDGPUPALMetadata.cpp.

References CC.

◆ setNumUsedSgprs()

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

◆ setNumUsedVgprs()

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

◆ setRegister()

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

◆ setRsrc1()

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

Definition at line 136 of file AMDGPUPALMetadata.cpp.

References CC, getRsrc1Reg(), and setRegister().

◆ setRsrc2()

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

Definition at line 142 of file AMDGPUPALMetadata.cpp.

References CC, getRsrc1Reg(), and setRegister().

◆ setScratchSize()

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

◆ 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: