Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
llvm::AMDGPUPALMetadata Class Reference

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

Public Types

using RegisterExprMap = DenseMap<unsigned, const MCExpr *>

Public Member Functions

void readFromIR (Module &M)
bool setFromBlob (unsigned Type, StringRef Blob)
void setRsrc1 (unsigned CC, unsigned Val)
void setRsrc1 (unsigned CC, const MCExpr *Val, MCContext &Ctx)
void setRsrc2 (unsigned CC, unsigned Val)
void setRsrc2 (unsigned CC, const MCExpr *Val, MCContext &Ctx)
void setSpiPsInputEna (unsigned Val)
void setSpiPsInputAddr (unsigned Val)
unsigned getRegister (unsigned Reg)
void setRegister (unsigned Reg, unsigned Val)
void setRegister (unsigned Reg, const MCExpr *Val, MCContext &Ctx)
void setEntryPoint (unsigned CC, StringRef Name)
void setNumUsedVgprs (unsigned CC, unsigned Val)
void setNumUsedVgprs (unsigned CC, const MCExpr *Val, MCContext &Ctx)
void setNumUsedAgprs (unsigned CC, unsigned Val)
void setNumUsedAgprs (unsigned CC, const MCExpr *Val)
void setNumUsedSgprs (unsigned CC, unsigned Val)
void setNumUsedSgprs (unsigned CC, const MCExpr *Val, MCContext &Ctx)
void setScratchSize (unsigned CC, unsigned Val)
void setScratchSize (unsigned CC, const MCExpr *Val, MCContext &Ctx)
void setFunctionScratchSize (StringRef FnName, unsigned Val)
void setFunctionLdsSize (StringRef FnName, unsigned Val)
void setFunctionNumUsedVgprs (StringRef FnName, unsigned Val)
void setFunctionNumUsedVgprs (StringRef FnName, const MCExpr *Val)
void setFunctionNumUsedSgprs (StringRef FnName, unsigned Val)
void setFunctionNumUsedSgprs (StringRef FnName, const MCExpr *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 ()
VersionTuple getPALVersion ()
void updateHwStageMaximum (unsigned CC, StringRef field, unsigned Val)
void setHwStage (unsigned CC, StringRef field, unsigned Val)
void setHwStage (unsigned CC, StringRef field, bool Val)
void setHwStage (unsigned CC, StringRef field, msgpack::Type Type, const MCExpr *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 ()
bool resolvedAllMCExpr ()

Detailed Description

Definition at line 25 of file AMDGPUPALMetadata.h.

Member Typedef Documentation

◆ RegisterExprMap

Member Function Documentation

◆ checkComputeRegisters() [1/2]

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

Definition at line 1109 of file AMDGPUPALMetadata.cpp.

References N, and refComputeRegister().

◆ checkComputeRegisters() [2/2]

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

Definition at line 1103 of file AMDGPUPALMetadata.cpp.

References N, and refComputeRegister().

◆ getMsgPackDoc()

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

Definition at line 150 of file AMDGPUPALMetadata.h.

◆ getPALMajorVersion()

unsigned AMDGPUPALMetadata::getPALMajorVersion ( )

Definition at line 1056 of file AMDGPUPALMetadata.cpp.

References getPALVersion().

◆ getPALMinorVersion()

unsigned AMDGPUPALMetadata::getPALMinorVersion ( )

Definition at line 1058 of file AMDGPUPALMetadata.cpp.

References getPALVersion().

◆ getPALVersion()

VersionTuple AMDGPUPALMetadata::getPALVersion ( )

◆ getRegister()

unsigned AMDGPUPALMetadata::getRegister ( unsigned Reg)

Definition at line 194 of file AMDGPUPALMetadata.cpp.

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

◆ getType()

unsigned AMDGPUPALMetadata::getType ( ) const

Definition at line 1010 of file AMDGPUPALMetadata.cpp.

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

◆ getVendor()

const char * AMDGPUPALMetadata::getVendor ( ) const

◆ readFromIR()

◆ refComputeRegister()

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

Definition at line 1097 of file AMDGPUPALMetadata.cpp.

References I.

Referenced by checkComputeRegisters(), and checkComputeRegisters().

◆ reset()

void AMDGPUPALMetadata::reset ( )

◆ resolvedAllMCExpr()

bool AMDGPUPALMetadata::resolvedAllMCExpr ( )

Definition at line 1034 of file AMDGPUPALMetadata.cpp.

◆ setComputeRegisters() [1/2]

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

Definition at line 1093 of file AMDGPUPALMetadata.cpp.

◆ setComputeRegisters() [2/2]

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

Definition at line 1089 of file AMDGPUPALMetadata.cpp.

Referenced by EmitPALMetadataCommon().

◆ setEntryPoint()

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

◆ setFromBlob()

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

Definition at line 94 of file AMDGPUPALMetadata.cpp.

References llvm::ELF::NT_AMD_PAL_METADATA.

◆ setFromString()

◆ setFunctionLdsSize()

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

Definition at line 376 of file AMDGPUPALMetadata.cpp.

◆ setFunctionNumUsedSgprs() [1/2]

void AMDGPUPALMetadata::setFunctionNumUsedSgprs ( StringRef FnName,
const MCExpr * Val )

Definition at line 401 of file AMDGPUPALMetadata.cpp.

References llvm::msgpack::UInt.

◆ setFunctionNumUsedSgprs() [2/2]

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

Definition at line 395 of file AMDGPUPALMetadata.cpp.

◆ setFunctionNumUsedVgprs() [1/2]

void AMDGPUPALMetadata::setFunctionNumUsedVgprs ( StringRef FnName,
const MCExpr * Val )

Definition at line 388 of file AMDGPUPALMetadata.cpp.

References llvm::msgpack::UInt.

◆ setFunctionNumUsedVgprs() [2/2]

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

Definition at line 382 of file AMDGPUPALMetadata.cpp.

◆ setFunctionScratchSize()

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

Definition at line 369 of file AMDGPUPALMetadata.cpp.

◆ setGraphicsRegisters() [1/4]

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

Definition at line 1119 of file AMDGPUPALMetadata.cpp.

◆ setGraphicsRegisters() [2/4]

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

Definition at line 1115 of file AMDGPUPALMetadata.cpp.

◆ setGraphicsRegisters() [3/4]

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

Definition at line 1128 of file AMDGPUPALMetadata.cpp.

◆ setGraphicsRegisters() [4/4]

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

Definition at line 1123 of file AMDGPUPALMetadata.cpp.

◆ setHwStage() [1/3]

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

Definition at line 1080 of file AMDGPUPALMetadata.cpp.

◆ setHwStage() [2/3]

void AMDGPUPALMetadata::setHwStage ( unsigned CC,
StringRef field,
msgpack::Type Type,
const MCExpr * Val )

Definition at line 1084 of file AMDGPUPALMetadata.cpp.

◆ setHwStage() [3/3]

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

◆ setLegacy()

void AMDGPUPALMetadata::setLegacy ( )

Definition at line 1020 of file AMDGPUPALMetadata.cpp.

References llvm::ELF::NT_AMD_PAL_METADATA.

◆ setNumUsedAgprs() [1/2]

void AMDGPUPALMetadata::setNumUsedAgprs ( unsigned CC,
const MCExpr * Val )

Definition at line 312 of file AMDGPUPALMetadata.cpp.

References setHwStage(), and llvm::msgpack::UInt.

◆ setNumUsedAgprs() [2/2]

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

Definition at line 308 of file AMDGPUPALMetadata.cpp.

◆ setNumUsedSgprs() [1/2]

◆ setNumUsedSgprs() [2/2]

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

◆ setNumUsedVgprs() [1/2]

◆ setNumUsedVgprs() [2/2]

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

◆ setRegister() [1/2]

void AMDGPUPALMetadata::setRegister ( unsigned Reg,
const MCExpr * Val,
MCContext & Ctx )

◆ setRegister() [2/2]

◆ setRsrc1() [1/2]

void AMDGPUPALMetadata::setRsrc1 ( unsigned CC,
const MCExpr * Val,
MCContext & Ctx )

Definition at line 165 of file AMDGPUPALMetadata.cpp.

References getRsrc1Reg(), and setRegister().

◆ setRsrc1() [2/2]

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

Definition at line 161 of file AMDGPUPALMetadata.cpp.

References getRsrc1Reg(), and setRegister().

◆ setRsrc2() [1/2]

void AMDGPUPALMetadata::setRsrc2 ( unsigned CC,
const MCExpr * Val,
MCContext & Ctx )

Definition at line 176 of file AMDGPUPALMetadata.cpp.

References getRsrc1Reg(), and setRegister().

◆ setRsrc2() [2/2]

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

Definition at line 172 of file AMDGPUPALMetadata.cpp.

References getRsrc1Reg(), and setRegister().

◆ setScratchSize() [1/2]

void AMDGPUPALMetadata::setScratchSize ( unsigned CC,
const MCExpr * Val,
MCContext & Ctx )

◆ setScratchSize() [2/2]

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

Definition at line 347 of file AMDGPUPALMetadata.cpp.

References getScratchSizeKey(), and setRegister().

◆ setSpiPsInputAddr()

void AMDGPUPALMetadata::setSpiPsInputAddr ( unsigned Val)

◆ setSpiPsInputEna()

void AMDGPUPALMetadata::setSpiPsInputEna ( unsigned Val)

◆ setWave32()

◆ toBlob()

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

◆ toString()

◆ updateHwStageMaximum()

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

Definition at line 1065 of file AMDGPUPALMetadata.cpp.

Referenced by EmitPALMetadataCommon().


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