#include "AMDGPUPALMetadata.h"
#include "AMDGPUPTNote.h"
#include "SIDefines.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Module.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/Support/AMDGPUMetadata.h"
#include "llvm/Support/EndianStream.h"
usingnamespacellvm;
usingnamespacellvm::AMDGPU;
void AMDGPUPALMetadata::readFromIR(Module &M) { … }
bool AMDGPUPALMetadata::setFromBlob(unsigned Type, StringRef Blob) { … }
bool AMDGPUPALMetadata::setFromLegacyBlob(StringRef Blob) { … }
bool AMDGPUPALMetadata::setFromMsgPackBlob(StringRef Blob) { … }
static unsigned getRsrc1Reg(CallingConv::ID CC) { … }
static unsigned getScratchSizeKey(CallingConv::ID CC) { … }
void AMDGPUPALMetadata::setRsrc1(CallingConv::ID CC, unsigned Val) { … }
void AMDGPUPALMetadata::setRsrc1(CallingConv::ID CC, const MCExpr *Val,
MCContext &Ctx) { … }
void AMDGPUPALMetadata::setRsrc2(CallingConv::ID CC, unsigned Val) { … }
void AMDGPUPALMetadata::setRsrc2(CallingConv::ID CC, const MCExpr *Val,
MCContext &Ctx) { … }
void AMDGPUPALMetadata::setSpiPsInputEna(unsigned Val) { … }
void AMDGPUPALMetadata::setSpiPsInputAddr(unsigned Val) { … }
unsigned AMDGPUPALMetadata::getRegister(unsigned Reg) { … }
void AMDGPUPALMetadata::setRegister(unsigned Reg, unsigned Val) { … }
void AMDGPUPALMetadata::setRegister(unsigned Reg, const MCExpr *Val,
MCContext &Ctx) { … }
void AMDGPUPALMetadata::setEntryPoint(unsigned CC, StringRef Name) { … }
void AMDGPUPALMetadata::setNumUsedVgprs(CallingConv::ID CC, unsigned Val) { … }
void AMDGPUPALMetadata::setNumUsedVgprs(CallingConv::ID CC, const MCExpr *Val,
MCContext &Ctx) { … }
void AMDGPUPALMetadata::setNumUsedAgprs(CallingConv::ID CC, unsigned Val) { … }
void AMDGPUPALMetadata::setNumUsedAgprs(unsigned CC, const MCExpr *Val) { … }
void AMDGPUPALMetadata::setNumUsedSgprs(CallingConv::ID CC, unsigned Val) { … }
void AMDGPUPALMetadata::setNumUsedSgprs(unsigned CC, const MCExpr *Val,
MCContext &Ctx) { … }
void AMDGPUPALMetadata::setScratchSize(CallingConv::ID CC, unsigned Val) { … }
void AMDGPUPALMetadata::setScratchSize(unsigned CC, const MCExpr *Val,
MCContext &Ctx) { … }
void AMDGPUPALMetadata::setFunctionScratchSize(StringRef FnName, unsigned Val) { … }
void AMDGPUPALMetadata::setFunctionLdsSize(StringRef FnName, unsigned Val) { … }
void AMDGPUPALMetadata::setFunctionNumUsedVgprs(StringRef FnName,
unsigned Val) { … }
void AMDGPUPALMetadata::setFunctionNumUsedVgprs(StringRef FnName,
const MCExpr *Val) { … }
void AMDGPUPALMetadata::setFunctionNumUsedSgprs(StringRef FnName,
unsigned Val) { … }
void AMDGPUPALMetadata::setFunctionNumUsedSgprs(StringRef FnName,
const MCExpr *Val) { … }
void AMDGPUPALMetadata::setWave32(unsigned CC) { … }
static const char *getRegisterName(unsigned RegNum) { … }
void AMDGPUPALMetadata::toString(std::string &String) { … }
void AMDGPUPALMetadata::toBlob(unsigned Type, std::string &Blob) { … }
void AMDGPUPALMetadata::toLegacyBlob(std::string &Blob) { … }
void AMDGPUPALMetadata::toMsgPackBlob(std::string &Blob) { … }
bool AMDGPUPALMetadata::setFromString(StringRef S) { … }
msgpack::DocNode &AMDGPUPALMetadata::refRegisters() { … }
msgpack::MapDocNode AMDGPUPALMetadata::getRegisters() { … }
msgpack::DocNode &AMDGPUPALMetadata::refShaderFunctions() { … }
msgpack::MapDocNode AMDGPUPALMetadata::getShaderFunctions() { … }
msgpack::MapDocNode AMDGPUPALMetadata::getShaderFunction(StringRef Name) { … }
msgpack::DocNode &AMDGPUPALMetadata::refComputeRegisters() { … }
msgpack::MapDocNode AMDGPUPALMetadata::getComputeRegisters() { … }
msgpack::DocNode &AMDGPUPALMetadata::refGraphicsRegisters() { … }
msgpack::MapDocNode AMDGPUPALMetadata::getGraphicsRegisters() { … }
static const char *getStageName(CallingConv::ID CC) { … }
msgpack::DocNode &AMDGPUPALMetadata::refHwStage() { … }
msgpack::MapDocNode AMDGPUPALMetadata::getHwStage(unsigned CC) { … }
const char *AMDGPUPALMetadata::getVendor() const { … }
unsigned AMDGPUPALMetadata::getType() const { … }
bool AMDGPUPALMetadata::isLegacy() const { … }
void AMDGPUPALMetadata::setLegacy() { … }
void AMDGPUPALMetadata::reset() { … }
bool AMDGPUPALMetadata::resolvedAllMCExpr() { … }
unsigned AMDGPUPALMetadata::getPALVersion(unsigned idx) { … }
unsigned AMDGPUPALMetadata::getPALMajorVersion() { … }
unsigned AMDGPUPALMetadata::getPALMinorVersion() { … }
void AMDGPUPALMetadata::setHwStage(unsigned CC, StringRef field, unsigned Val) { … }
void AMDGPUPALMetadata::setHwStage(unsigned CC, StringRef field, bool Val) { … }
void AMDGPUPALMetadata::setHwStage(unsigned CC, StringRef field,
msgpack::Type Type, const MCExpr *Val) { … }
void AMDGPUPALMetadata::setComputeRegisters(StringRef field, unsigned Val) { … }
void AMDGPUPALMetadata::setComputeRegisters(StringRef field, bool Val) { … }
msgpack::DocNode *AMDGPUPALMetadata::refComputeRegister(StringRef field) { … }
bool AMDGPUPALMetadata::checkComputeRegisters(StringRef field, unsigned Val) { … }
bool AMDGPUPALMetadata::checkComputeRegisters(StringRef field, bool Val) { … }
void AMDGPUPALMetadata::setGraphicsRegisters(StringRef field, unsigned Val) { … }
void AMDGPUPALMetadata::setGraphicsRegisters(StringRef field, bool Val) { … }
void AMDGPUPALMetadata::setGraphicsRegisters(StringRef field1, StringRef field2,
unsigned Val) { … }
void AMDGPUPALMetadata::setGraphicsRegisters(StringRef field1, StringRef field2,
bool Val) { … }