LLVM  14.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 setNumUsedSgprs (unsigned CC, unsigned Val)
 
void setScratchSize (unsigned CC, unsigned Val)
 
void setFunctionScratchSize (const MachineFunction &MF, unsigned Val)
 
void setFunctionLdsSize (const MachineFunction &MF, unsigned Val)
 
void setFunctionNumUsedVgprs (const MachineFunction &MF, unsigned Val)
 
void setFunctionNumUsedSgprs (const MachineFunction &MF, unsigned Val)
 
void setWave32 (unsigned CC)
 
void toString (std::string &S)
 
bool setFromString (StringRef S)
 
const char * getVendor () const
 
unsigned getType () const
 
void toBlob (unsigned Type, std::string &S)
 
msgpack::DocumentgetMsgPackDoc ()
 
void setLegacy ()
 
void reset ()
 

Detailed Description

Definition at line 24 of file AMDGPUPALMetadata.h.

Member Function Documentation

◆ getMsgPackDoc()

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

Definition at line 123 of file AMDGPUPALMetadata.h.

◆ getRegister()

unsigned AMDGPUPALMetadata::getRegister ( unsigned  Reg)

Definition at line 161 of file AMDGPUPALMetadata.cpp.

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

◆ getType()

unsigned AMDGPUPALMetadata::getType ( ) const

Definition at line 852 of file AMDGPUPALMetadata.cpp.

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

◆ getVendor()

const char * AMDGPUPALMetadata::getVendor ( ) const

◆ readFromIR()

void AMDGPUPALMetadata::readFromIR ( Module M)

◆ reset()

void AMDGPUPALMetadata::reset ( )

◆ setEntryPoint()

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

Definition at line 188 of file AMDGPUPALMetadata.cpp.

◆ setFromBlob()

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

Definition at line 70 of file AMDGPUPALMetadata.cpp.

References llvm::ELF::NT_AMD_PAL_METADATA.

◆ setFromString()

bool AMDGPUPALMetadata::setFromString ( StringRef  S)

◆ setFunctionLdsSize()

void AMDGPUPALMetadata::setFunctionLdsSize ( const MachineFunction MF,
unsigned  Val 
)

Definition at line 247 of file AMDGPUPALMetadata.cpp.

◆ setFunctionNumUsedSgprs()

void AMDGPUPALMetadata::setFunctionNumUsedSgprs ( const MachineFunction MF,
unsigned  Val 
)

Definition at line 261 of file AMDGPUPALMetadata.cpp.

◆ setFunctionNumUsedVgprs()

void AMDGPUPALMetadata::setFunctionNumUsedVgprs ( const MachineFunction MF,
unsigned  Val 
)

Definition at line 254 of file AMDGPUPALMetadata.cpp.

◆ setFunctionScratchSize()

void AMDGPUPALMetadata::setFunctionScratchSize ( const MachineFunction MF,
unsigned  Val 
)

Definition at line 240 of file AMDGPUPALMetadata.cpp.

◆ setLegacy()

void AMDGPUPALMetadata::setLegacy ( )

Definition at line 862 of file AMDGPUPALMetadata.cpp.

References llvm::ELF::NT_AMD_PAL_METADATA.

◆ 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 174 of file AMDGPUPALMetadata.cpp.

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

◆ setRsrc1()

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

Definition at line 138 of file AMDGPUPALMetadata.cpp.

References getRsrc1Reg().

◆ setRsrc2()

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

Definition at line 144 of file AMDGPUPALMetadata.cpp.

References getRsrc1Reg().

◆ setScratchSize()

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

Definition at line 229 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: