83 std::unique_ptr<MCStreamer> &&Streamer) {
95 std::unique_ptr<MCStreamer> Streamer)
101 return "AMDGPU Assembly Printer";
154 getAmdKernelCode(KernelCode, CurrentProgramInfo, *
MF);
189 CallGraphResourceInfo.clear();
194 void AMDGPUAsmPrinter::emitCommonFunctionComments(
206 CurrentProgramInfo = SIProgramInfo();
226 getSIProgramInfo(CurrentProgramInfo, MF);
228 auto I = CallGraphResourceInfo.insert(
229 std::make_pair(MF.
getFunction(), SIFunctionResourceInfo()));
230 SIFunctionResourceInfo &Info =
I.first->second;
231 assert(
I.second &&
"should only be called once per function");
232 Info = analyzeResourceUsage(MF);
236 EmitProgramInfoSI(MF, CurrentProgramInfo);
239 EmitProgramInfoR600(MF);
255 OutStreamer->emitRawComment(
" Function info:",
false);
256 SIFunctionResourceInfo &Info = CallGraphResourceInfo[MF.
getFunction()];
257 emitCommonFunctionComments(
260 Info.PrivateSegmentSize,
261 getFunctionCodeSize(MF));
265 OutStreamer->emitRawComment(
" Kernel info:",
false);
266 emitCommonFunctionComments(CurrentProgramInfo.NumVGPR,
267 CurrentProgramInfo.NumSGPR,
268 CurrentProgramInfo.ScratchSize,
269 getFunctionCodeSize(MF));
272 " FloatMode: " +
Twine(CurrentProgramInfo.FloatMode),
false);
274 " IeeeMode: " +
Twine(CurrentProgramInfo.IEEEMode),
false);
276 " LDSByteSize: " +
Twine(CurrentProgramInfo.LDSSize) +
277 " bytes/workgroup (compile time only)",
false);
280 " SGPRBlocks: " +
Twine(CurrentProgramInfo.SGPRBlocks),
false);
282 " VGPRBlocks: " +
Twine(CurrentProgramInfo.VGPRBlocks),
false);
285 " NumSGPRsForWavesPerEU: " +
286 Twine(CurrentProgramInfo.NumSGPRsForWavesPerEU),
false);
288 " NumVGPRsForWavesPerEU: " +
289 Twine(CurrentProgramInfo.NumVGPRsForWavesPerEU),
false);
292 " ReservedVGPRFirst: " +
Twine(CurrentProgramInfo.ReservedVGPRFirst),
295 " ReservedVGPRCount: " +
Twine(CurrentProgramInfo.ReservedVGPRCount),
300 " DebuggerWavefrontPrivateSegmentOffsetSGPR: s" +
301 Twine(CurrentProgramInfo.DebuggerWavefrontPrivateSegmentOffsetSGPR),
false);
303 " DebuggerPrivateSegmentBufferSGPR: s" +
304 Twine(CurrentProgramInfo.DebuggerPrivateSegmentBufferSGPR),
false);
308 " COMPUTE_PGM_RSRC2:USER_SGPR: " +
311 " COMPUTE_PGM_RSRC2:TRAP_HANDLER: " +
314 " COMPUTE_PGM_RSRC2:TGID_X_EN: " +
317 " COMPUTE_PGM_RSRC2:TGID_Y_EN: " +
320 " COMPUTE_PGM_RSRC2:TGID_Z_EN: " +
323 " COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: " +
340 Comment +=
" ; " +
HexLines[i] +
"\n";
350 void AMDGPUAsmPrinter::EmitProgramInfoR600(
const MachineFunction &MF) {
352 bool killPixel =
false;
359 if (
MI.getOpcode() == AMDGPU::KILLGT)
361 unsigned numOperands =
MI.getNumOperands();
362 for (
unsigned op_idx = 0; op_idx < numOperands; op_idx++) {
366 unsigned HWReg = RI->getHWRegIndex(MO.
getReg());
379 switch (MF.getFunction()->getCallingConv()) {
388 switch (MF.getFunction()->getCallingConv()) {
409 uint64_t AMDGPUAsmPrinter::getFunctionCodeSize(
const MachineFunction &MF)
const {
413 uint64_t CodeSize = 0;
420 if (
MI.isDebugValue())
434 if (!UseOp.isImplicit() || !TII.
isFLAT(*UseOp.getParent()))
444 unsigned ExtraSGPRs = 0;
467 AMDGPUAsmPrinter::SIFunctionResourceInfo AMDGPUAsmPrinter::analyzeResourceUsage(
469 SIFunctionResourceInfo Info;
478 Info.UsesFlatScratch = MRI.
isPhysRegUsed(AMDGPU::FLAT_SCR_LO) ||
491 Info.UsesFlatScratch =
false;
494 Info.HasDynamicallySizedStack = FrameInfo.hasVarSizedObjects();
495 Info.PrivateSegmentSize = FrameInfo.getStackSize();
504 MCPhysReg HighestVGPRReg = AMDGPU::NoRegister;
507 HighestVGPRReg =
Reg;
512 MCPhysReg HighestSGPRReg = AMDGPU::NoRegister;
515 HighestSGPRReg =
Reg;
522 Info.NumVGPR = HighestVGPRReg == AMDGPU::NoRegister ? 0 :
524 Info.NumExplicitSGPR = HighestSGPRReg == AMDGPU::NoRegister ? 0 :
530 void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
532 SIFunctionResourceInfo Info = analyzeResourceUsage(MF);
534 ProgInfo.NumVGPR = Info.NumVGPR;
535 ProgInfo.NumSGPR = Info.NumExplicitSGPR;
536 ProgInfo.ScratchSize = Info.PrivateSegmentSize;
537 ProgInfo.VCCUsed = Info.UsesVCC;
538 ProgInfo.FlatUsed = Info.UsesFlatScratch;
539 ProgInfo.DynamicCallStack = Info.HasDynamicallySizedStack || Info.HasRecursion;
555 if (ProgInfo.NumSGPR > MaxAddressableNumSGPRs) {
559 "addressable scalar registers",
562 MaxAddressableNumSGPRs);
564 ProgInfo.NumSGPR = MaxAddressableNumSGPRs - 1;
569 ProgInfo.NumSGPR += ExtraSGPRs;
570 ProgInfo.NumVGPR += ExtraVGPRs;
574 ProgInfo.NumSGPRsForWavesPerEU =
std::max(
576 ProgInfo.NumVGPRsForWavesPerEU =
std::max(
582 if (ProgInfo.NumSGPR > MaxAddressableNumSGPRs) {
590 MaxAddressableNumSGPRs);
592 ProgInfo.NumSGPR = MaxAddressableNumSGPRs;
593 ProgInfo.NumSGPRsForWavesPerEU = MaxAddressableNumSGPRs;
600 ProgInfo.NumSGPRsForWavesPerEU =
619 ProgInfo.SGPRBlocks =
alignTo(ProgInfo.NumSGPRsForWavesPerEU,
624 ProgInfo.VGPRBlocks =
alignTo(ProgInfo.NumVGPRsForWavesPerEU,
636 ProgInfo.DebuggerWavefrontPrivateSegmentOffsetSGPR =
638 ProgInfo.DebuggerPrivateSegmentBufferSGPR =
651 unsigned LDSAlignShift;
660 unsigned LDSSpillSize =
661 MFI->getLDSWaveSpillSize() * MFI->getMaxFlatWorkGroupSize();
663 ProgInfo.LDSSize = MFI->getLDSSize() + LDSSpillSize;
665 alignTo(ProgInfo.LDSSize, 1ULL << LDSAlignShift) >> LDSAlignShift;
668 unsigned ScratchAlignShift = 10;
672 ProgInfo.ScratchBlocks =
674 1ULL << ScratchAlignShift) >>
677 ProgInfo.ComputePGMRSrc1 =
688 unsigned TIDIGCompCnt = 0;
689 if (MFI->hasWorkItemIDZ())
691 else if (MFI->hasWorkItemIDY())
694 ProgInfo.ComputePGMRSrc2 =
721 const SIProgramInfo &CurrentProgramInfo) {
729 OutStreamer->EmitIntValue(CurrentProgramInfo.ComputePGMRSrc1, 4);
732 OutStreamer->EmitIntValue(CurrentProgramInfo.ComputePGMRSrc2, 4);
753 OutStreamer->EmitIntValue(MFI->getPSInputEnable(), 4);
755 OutStreamer->EmitIntValue(MFI->getPSInputAddr(), 4);
759 OutStreamer->EmitIntValue(MFI->getNumSpilledSGPRs(), 4);
761 OutStreamer->EmitIntValue(MFI->getNumSpilledVGPRs(), 4);
779 const SIProgramInfo &CurrentProgramInfo,
787 CurrentProgramInfo.ComputePGMRSrc1 |
788 (CurrentProgramInfo.ComputePGMRSrc2 << 32);
791 if (CurrentProgramInfo.DynamicCallStack)
836 if (STM.debuggerSupported())
839 if (STM.isXNACKEnabled())
857 if (STM.debuggerEmitPrologue()) {
859 CurrentProgramInfo.DebuggerWavefrontPrivateSegmentOffsetSGPR;
861 CurrentProgramInfo.DebuggerPrivateSegmentBufferSGPR;
868 if (ExtraCode && ExtraCode[0]) {
869 if (ExtraCode[1] != 0)
872 switch (ExtraCode[0]) {
virtual void EmitGlobalVariable(const GlobalVariable *GV)
Emit the specified global variable to the .s file.
Calling convention used for Mesa compute shaders.
OSType getOS() const
getOS - Get the parsed operating system type of this triple.
void EmitGlobalVariable(const GlobalVariable *GV) override
Emit the specified global variable to the .s file.
Interface definition for SIRegisterInfo.
Target & getTheGCNTarget()
The target for GCN GPUs.
#define S_00B848_VGPRS(x)
LLVMContext & getContext() const
getContext - Return a reference to the LLVMContext associated with this function. ...
bool hasFlatScratchInit() const
GCNRegPressure max(const GCNRegPressure &P1, const GCNRegPressure &P2)
AMDGPU specific subclass of TargetSubtarget.
virtual void EmitStartOfCodeObjectMetadata(const Module &Mod)
std::unique_ptr< MCStreamer > OutStreamer
This is the MCStreamer object for the file we are generating.
bool isTrapHandlerEnabled() const
#define FP_DENORM_MODE_SP(x)
#define R_00B228_SPI_SHADER_PGM_RSRC1_GS
#define G_00B84C_USER_SGPR(x)
bool isVGPRSpillingEnabled(const Function &F) const
A Module instance is used to store all the information related to an LLVM module. ...
bool doFinalization(Module &M) override
Shut down the asmprinter.
#define R_028850_SQ_PGM_RESOURCES_PS
unsigned getMinNumSGPRs(unsigned WavesPerEU) const
#define R_028860_SQ_PGM_RESOURCES_VS
bool hasDispatchID() const
Target & getTheAMDGPUTarget()
The target which supports all AMD GPUs.
bool isGroupSegment(const GlobalValue *GV, AMDGPUAS AS)
#define G_00B84C_TGID_Z_EN(x)
unsigned getVGPREncodingGranule() const
#define R_028878_SQ_PGM_RESOURCES_GS
const SIInstrInfo * getInstrInfo() const override
const MachineFunction * MF
The current machine function.
AMDGPUAS getAMDGPUAS(const Module &M)
iterator_range< reg_iterator > reg_operands(unsigned Reg) const
#define R_00B028_SPI_SHADER_PGM_RSRC1_PS
#define S_00B84C_SCRATCH_EN(x)
bool enableIEEEBit(const MachineFunction &MF) const
#define S_00B84C_TG_SIZE_EN(x)
#define S_00B848_DX10_CLAMP(x)
Calling convention used for Mesa geometry shaders.
const Function * getFunction() const
getFunction - Return the LLVM function that this machine code represents
uint64_t alignTo(uint64_t Value, uint64_t Align, uint64_t Skew=0)
Returns the next integer (mod 2**64) that is greater than or equal to Value and is a multiple of Alig...
#define G_00B84C_TGID_Y_EN(x)
int getLocalMemorySize() const
Interface definition for R600RegisterInfo.
const MCSubtargetInfo * getSTI() const
bool isAmdCodeObjectV2(const MachineFunction &MF) const
#define R_0286CC_SPI_PS_INPUT_ENA
#define S_00B028_SGPRS(x)
virtual void EmitAMDGPUSymbolType(StringRef SymbolName, unsigned Type)=0
unsigned getMinNumVGPRs(unsigned WavesPerEU) const
void getNameWithPrefix(SmallVectorImpl< char > &Name, const GlobalValue *GV) const
CallingConv::ID getCallingConv() const
getCallingConv()/setCallingConv(CC) - These method get and set the calling convention of this functio...
unsigned getHWRegIndex(unsigned Reg) const
const Triple & getTargetTriple() const
static amd_element_byte_size_t getElementByteSizeValue(unsigned Size)
#define FP_DENORM_FLUSH_NONE
uint32_t code_properties
Code properties.
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
static bool isFLAT(const MachineInstr &MI)
bool isPhysRegUsed(unsigned PhysReg) const
Return true if the specified register is modified or read in this function.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
unsigned getInstSizeInBytes(const MachineInstr &MI) const override
const HexagonInstrInfo * TII
unsigned getABIArgOffset() const
AMD Kernel Code Object (amd_kernel_code_t).
unsigned getSGPREncodingGranule() const
static void printRegOperand(unsigned RegNo, raw_ostream &O, const MCRegisterInfo &MRI)
unsigned getLDSSize() const
bool isReg() const
isReg - Tests if this is a MO_Register operand.
#define G_00B84C_TRAP_HANDLER(x)
Reg
All possible values of the reg field in the ModR/M byte.
AMDGPUTargetStreamer & getTargetStreamer() const
The MachineFrameInfo class represents an abstract stack frame until prolog/epilog code is inserted...
AMDGPUAsmPrinter(TargetMachine &TM, std::unique_ptr< MCStreamer > Streamer)
#define FP_ROUND_MODE_SP(x)
Diagnostic information for stack size etc.
#define S_00B84C_TGID_Y_EN(x)
Calling convention used for Mesa hull shaders.
Context object for machine code objects.
auto reverse(ContainerTy &&C, typename std::enable_if< has_rbegin< ContainerTy >::value >::type *=nullptr) -> decltype(make_range(C.rbegin(), C.rend()))
#define S_00B848_FLOAT_MODE(x)
#define R_00B848_COMPUTE_PGM_RSRC1
unsigned getMaxNumUserSGPRs() const
uint8_t kernarg_segment_alignment
The maximum byte alignment of variables used by the kernel in the specified memory segment...
void EmitFunctionBody()
This method emits the body and trailer for a function.
bool isXNACKEnabled() const
unsigned getMaxKernArgAlign() const
#define S_00B84C_TRAP_HANDLER(x)
MCContext & getContext() const
Generation getGeneration() const
const SIRegisterInfo & getRegisterInfo() const
uint64_t compute_pgm_resource_registers
Shader program settings for CS.
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
bool hasSGPRInitBug() const
bool isBlockOnlyReachableByFallthrough(const MachineBasicBlock *MBB) const override
Return true if the basic block has exactly one predecessor and the control transfer mechanism between...
#define S_00B848_IEEE_MODE(x)
bool isCompute(CallingConv::ID cc)
#define S_00B028_VGPRS(x)
static uint32_t getFPMode(const MachineFunction &F)
uint16_t wavefront_sgpr_count
Number of scalar registers used by a wavefront.
* if(!EatIfPresent(lltok::kw_thread_local)) return false
ParseOptionalThreadLocal := /*empty.
unsigned const MachineRegisterInfo * MRI
std::size_t countTrailingZeros(T Val, ZeroBehavior ZB=ZB_Width)
Count number of 0's from the least significant bit to the most stopping at the first 1...
This is an important class for using LLVM in a threaded context.
unsigned getTotalNumSGPRs(const FeatureBitset &Features)
MachineFrameInfo & getFrameInfo()
getFrameInfo - Return the frame info object for the current function.
#define G_00B84C_TGID_X_EN(x)
const MachineOperand & getOperand(unsigned i) const
#define S_00B84C_TIDIG_COMP_CNT(x)
#define FP_ROUND_MODE_DP(x)
virtual bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNo, unsigned AsmVariant, const char *ExtraCode, raw_ostream &OS)
Print the specified operand of MI, an INLINEASM instruction, using the specified assembler variant...
bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNo, unsigned AsmVariant, const char *ExtraCode, raw_ostream &O) override
Print the specified operand of MI, an INLINEASM instruction, using the specified assembler variant...
TargetMachine & TM
Target machine description.
This class is intended to be used as a driving class for all asm writers.
void EmitEndOfAsmFile(Module &M) override
This virtual method can be overridden by targets that want to emit something at the end of their file...
bool hasDispatchPtr() const
bool hasKernargSegmentPtr() const
#define R_0288D4_SQ_PGM_RESOURCES_LS
#define S_00B84C_EXCP_EN_MSB(x)
Instruction set architecture version.
Ty * getInfo()
getInfo - Keep track of various per-function pieces of information for backends that would like to do...
bool hasFP32Denormals() const
#define R_00B02C_SPI_SHADER_PGM_RSRC2_PS
#define FP_DENORM_FLUSH_IN_FLUSH_OUT
bool debuggerReserveRegs() const
virtual bool isBlockOnlyReachableByFallthrough(const MachineBasicBlock *MBB) const
Return true if the basic block has exactly one predecessor and the control transfer mechanism between...
#define S_00B84C_TGID_Z_EN(x)
The AMDGPU TargetMachine interface definition for hw codgen targets.
#define R_02880C_DB_SHADER_CONTROL
#define S_00B84C_LDS_SIZE(x)
unsigned getAddressableNumSGPRs() const
Calling convention used for Mesa vertex shaders.
virtual void EmitKernelCodeObjectMetadata(const Function &Func, const amd_kernel_code_t &KernelCode)
virtual void EmitDirectiveHSACodeObjectISA(uint32_t Major, uint32_t Minor, uint32_t Stepping, StringRef VendorName, StringRef ArchName)=0
void initDefaultAMDKernelCodeT(amd_kernel_code_t &Header, const FeatureBitset &Features)
bool hasFP64Denormals() const
amd_element_byte_size_t
The values used to define the number of bytes to use for the swizzle element size.
#define FP_ROUND_ROUND_TO_NEAREST
bool hasGridWorkgroupCountX() const
#define S_00B84C_EXCP_EN(x)
void LLVMInitializeAMDGPUAsmPrinter()
virtual const TargetSubtargetInfo * getSubtargetImpl(const Function &) const
Virtual method implemented by subclasses that returns a reference to that target's TargetSubtargetInf...
#define R_00B428_SPI_SHADER_PGM_RSRC1_HS
const R600RegisterInfo * getRegisterInfo() const override
#define G_00B84C_TIDIG_COMP_CNT(x)
std::vector< std::string > HexLines
#define R_00B128_SPI_SHADER_PGM_RSRC1_VS
uint64_t kernarg_segment_byte_size
The size in bytes of the kernarg segment that holds the values of the arguments to the kernel...
MachineOperand class - Representation of each machine instruction operand.
Calling convention used for Mesa pixel shaders.
uint16_t debug_wavefront_private_segment_offset_sgpr
If is_debug_supported is 0 then must be 0.
virtual void EmitAMDKernelCodeT(const amd_kernel_code_t &Header)=0
uint16_t workitem_vgpr_count
Number of vector registers used by each work-item.
#define S_00B848_DEBUG_MODE(x)
#define R_028868_SQ_PGM_RESOURCES_VS
#define FP_DENORM_MODE_DP(x)
#define S_0286E8_WAVESIZE(x)
#define S_00B84C_TGID_X_EN(x)
bool runOnMachineFunction(MachineFunction &MF) override
Emit the specified function out to the OutStreamer.
uint32_t workgroup_group_segment_byte_size
The amount of group segment memory required by a work-group in bytes.
#define AMD_HSA_BITS_SET(dst, mask, val)
std::vector< std::string > DisasmLines
virtual void EmitDirectiveHSACodeObjectVersion(uint32_t Major, uint32_t Minor)=0
bool isEntryFunction() const
void EmitFunctionEntryLabel() override
EmitFunctionEntryLabel - Emit the label that is the entrypoint for the function.
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
static AsmPrinter * createAMDGPUAsmPrinterPass(TargetMachine &tm, std::unique_ptr< MCStreamer > &&Streamer)
llvm_unreachable("Unknown RegBank!")
MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc.
static unsigned getNumExtraSGPRs(const SISubtarget &ST, bool VCCUsed, bool FlatScrUsed)
Representation of each machine instruction.
void EmitFunctionBodyStart() override
Targets can override this to emit stuff before the first basic block in the function.
bool doFinalization(Module &M) override
Shut down the asmprinter.
This class keeps track of the SPI_SP_INPUT_ADDR config register, which tells the hardware which inter...
Interface definition for SIInstrInfo.
void SetupMachineFunction(MachineFunction &MF)
This should be called when a new MachineFunction is being processed from runOnMachineFunction.
#define S_02880C_KILL_ENABLE(x)
MachineRegisterInfo & getRegInfo()
getRegInfo - Return information about the registers currently in use.
#define S_00B848_SGPRS(x)
unsigned getReservedNumVGPRs(const MachineFunction &MF) const
uint32_t workitem_private_segment_byte_size
The amount of memory required for the combined private, spill and arg segments for a work-item in byt...
#define S_00B84C_USER_SGPR(x)
AMDGPU Assembly printer class.
#define R_00B860_COMPUTE_TMPRING_SIZE
MCSubtargetInfo - Generic base class for all target subtargets.
bool hasGridWorkgroupCountZ() const
bool enableDX10Clamp() const
This represents a section on linux, lots of unix variants and some bare metal systems.
const MCSubtargetInfo * getMCSubtargetInfo() const
unsigned getWavefrontSize() const
void diagnose(const DiagnosticInfo &DI)
Report a message to the currently installed diagnostic handler.
static bool hasAnyNonFlatUseOfReg(const MachineRegisterInfo &MRI, const SIInstrInfo &TII, unsigned Reg)
virtual void EmitFunctionEntryLabel()
EmitFunctionEntryLabel - Emit the label that is the entrypoint for the function.
static unsigned getRsrcReg(CallingConv::ID CallConv)
unsigned getReg() const
getReg - Returns the register number.
#define S_00B860_WAVESIZE(x)
const TargetLoweringObjectFile & getObjFileLowering() const
Return information about object file lowering.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
#define R_00B84C_COMPUTE_PGM_RSRC2
#define S_00B848_PRIORITY(x)
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
void EmitStartOfAsmFile(Module &M) override
This virtual method can be overridden by targets that want to emit something at the start of their fi...
#define R_0286E8_SPI_TMPRING_SIZE
#define LLVM_FALLTHROUGH
LLVM_FALLTHROUGH - Mark fallthrough cases in switch statements.
void setAlignment(unsigned A)
setAlignment - Set the alignment (log2, not bytes) of the function.
#define S_00B02C_EXTRA_LDS_SIZE(x)
This class implements an extremely fast bulk output stream that can only output to a stream...
Primary interface to the complete machine description for the target machine.
static void RegisterAsmPrinter(Target &T, Target::AsmPrinterCtorTy Fn)
RegisterAsmPrinter - Register an AsmPrinter implementation for the given target.
StringRef - Represent a constant reference to a string, i.e.
virtual void EmitEndOfCodeObjectMetadata()
#define R_0286D0_SPI_PS_INPUT_ADDR
uint16_t debug_private_segment_buffer_sgpr
If is_debug_supported is 0 then must be 0.
bool isVerbose() const
Return true if assembly output should contain comments.
uint16_t reserved_vgpr_count
The number of consecutive VGPRs reserved by the client.
bool debuggerEmitPrologue() const
bool hasGridWorkgroupCountY() const
IsaVersion getIsaVersion(const FeatureBitset &Features)
#define R_0288E8_SQ_LDS_ALLOC
#define R_028844_SQ_PGM_RESOURCES_PS
bool hasPrivateSegmentBuffer() const
uint16_t reserved_vgpr_first
If reserved_vgpr_count is 0 then must be 0.