37 "amdgpu-mfma-vgpr-form",
38 cl::desc(
"Whether to force use VGPR for Opc and Dest of MFMA. If "
39 "unspecified, default to compiler heuristics"),
53 GWSResourcePSV(
getTM(STI)), UserSGPRInfo(
F, *STI), WorkGroupIDX(
false),
55 LDSKernelId(
false), PrivateSegmentWaveByteOffset(
false),
57 ImplicitArgPtr(
false), GITPtrHigh(0xffffffff), HighBitsOf32BitAddress(0),
58 IsWholeWaveFunction(
F.getCallingConv() ==
61 FlatWorkGroupSizes = ST.getFlatWorkGroupSizes(
F);
62 WavesPerEU = ST.getWavesPerEU(
F);
64 assert(MaxNumWorkGroups.size() == 3);
67 Occupancy = ST.computeOccupancy(
F,
getLDSSize()).second;
70 VRegFlags.reserve(1024);
82 if (ST.hasGFX90AInsts()) {
85 auto [MinNumAGPRAttr, MaxNumAGPRAttr] =
88 MinNumAGPRs = MinNumAGPRAttr;
96 FrameOffsetReg = AMDGPU::SGPR33;
97 StackPtrOffsetReg = AMDGPU::SGPR32;
99 if (!ST.hasFlatScratchEnabled()) {
103 ? AMDGPU::SGPR48_SGPR49_SGPR50_SGPR51
104 : AMDGPU::SGPR0_SGPR1_SGPR2_SGPR3;
106 ArgInfo.PrivateSegmentBuffer =
110 if (!
F.hasFnAttribute(
"amdgpu-no-implicitarg-ptr") &&
112 ImplicitArgPtr =
true;
114 ImplicitArgPtr =
false;
121 ST.hasArchitectedSGPRs())) {
122 if (IsKernel || !
F.hasFnAttribute(
"amdgpu-no-workgroup-id-x") ||
123 !
F.hasFnAttribute(
"amdgpu-no-cluster-id-x"))
126 if (!
F.hasFnAttribute(
"amdgpu-no-workgroup-id-y") ||
127 !
F.hasFnAttribute(
"amdgpu-no-cluster-id-y"))
130 if (!
F.hasFnAttribute(
"amdgpu-no-workgroup-id-z") ||
131 !
F.hasFnAttribute(
"amdgpu-no-cluster-id-z"))
136 if (IsKernel || !
F.hasFnAttribute(
"amdgpu-no-workitem-id-x"))
139 if (!
F.hasFnAttribute(
"amdgpu-no-workitem-id-y") &&
140 ST.getMaxWorkitemID(
F, 1) != 0)
143 if (!
F.hasFnAttribute(
"amdgpu-no-workitem-id-z") &&
144 ST.getMaxWorkitemID(
F, 2) != 0)
147 if (!IsKernel && !
F.hasFnAttribute(
"amdgpu-no-lds-kernel-id"))
157 if (!ST.hasArchitectedFlatScratch()) {
158 PrivateSegmentWaveByteOffset =
true;
163 ArgInfo.PrivateSegmentWaveByteOffset =
168 Attribute A =
F.getFnAttribute(
"amdgpu-git-ptr-high");
173 A =
F.getFnAttribute(
"amdgpu-32bit-address-high-bits");
174 S =
A.getValueAsString();
178 MaxMemoryClusterDWords =
F.getFnAttributeAsParsedInteger(
184 if (ST.hasMAIInsts() && !ST.hasGFX90AInsts()) {
186 AMDGPU::VGPR_32RegClass.getRegister(ST.getMaxNumVGPRs(
F) - 1);
207 ArgInfo.PrivateSegmentBuffer =
209 getNextUserSGPR(), AMDGPU::sub0, &AMDGPU::SGPR_128RegClass));
211 return ArgInfo.PrivateSegmentBuffer.getRegister();
216 getNextUserSGPR(), AMDGPU::sub0, &AMDGPU::SReg_64RegClass));
218 return ArgInfo.DispatchPtr.getRegister();
223 getNextUserSGPR(), AMDGPU::sub0, &AMDGPU::SReg_64RegClass));
225 return ArgInfo.QueuePtr.getRegister();
229 ArgInfo.KernargSegmentPtr
231 getNextUserSGPR(), AMDGPU::sub0, &AMDGPU::SReg_64RegClass));
233 return ArgInfo.KernargSegmentPtr.getRegister();
238 getNextUserSGPR(), AMDGPU::sub0, &AMDGPU::SReg_64RegClass));
240 return ArgInfo.DispatchID.getRegister();
245 getNextUserSGPR(), AMDGPU::sub0, &AMDGPU::SReg_64RegClass));
247 return ArgInfo.FlatScratchInit.getRegister();
253 return ArgInfo.PrivateSegmentSize.getRegister();
258 getNextUserSGPR(), AMDGPU::sub0, &AMDGPU::SReg_64RegClass));
260 return ArgInfo.ImplicitBufferPtr.getRegister();
266 return ArgInfo.LDSKernelId.getRegister();
271 unsigned AllocSizeDWord,
int KernArgIdx,
int PaddingSGPRs) {
272 auto [It, Inserted] = ArgInfo.PreloadKernArgs.try_emplace(KernArgIdx);
273 assert(Inserted &&
"Preload kernel argument allocated twice.");
274 NumUserSGPRs += PaddingSGPRs;
278 if (!ArgInfo.FirstKernArgPreloadReg)
279 ArgInfo.FirstKernArgPreloadReg = getNextUserSGPR();
281 TRI.getMatchingSuperReg(getNextUserSGPR(), AMDGPU::sub0, RC);
282 auto &Regs = It->second.Regs;
284 (RC == &AMDGPU::SReg_32RegClass || RC == &AMDGPU::SReg_64RegClass)) {
285 Regs.push_back(PreloadReg);
286 NumUserSGPRs += AllocSizeDWord;
288 Regs.reserve(AllocSizeDWord);
289 for (
unsigned I = 0;
I < AllocSizeDWord; ++
I) {
290 Regs.push_back(getNextUserSGPR());
296 UserSGPRInfo.allocKernargPreloadSGPRs(AllocSizeDWord + PaddingSGPRs);
320 WWMSpills.insert(std::make_pair(
330 for (
auto &Reg : WWMSpills) {
332 CalleeSavedRegs.push_back(Reg);
334 ScratchRegs.push_back(Reg);
340 for (
unsigned I = 0; CSRegs[
I]; ++
I) {
341 if (CSRegs[
I] == Reg)
353 for (
unsigned I = 0, E = WWMVGPRs.
size();
I < E; ++
I) {
356 TRI->findUnusedRegister(MRI, &AMDGPU::VGPR_32RegClass, MF);
357 if (!NewReg || NewReg >= Reg)
363 WWMVGPRs[
I] = NewReg;
364 WWMReservedRegs.remove(Reg);
365 WWMReservedRegs.insert(NewReg);
370 auto *RegItr =
llvm::find(SpillPhysVGPRs, Reg);
371 if (RegItr != SpillPhysVGPRs.end()) {
372 unsigned Idx = std::distance(SpillPhysVGPRs.begin(), RegItr);
373 SpillPhysVGPRs[Idx] = NewReg;
381 SavedVGPRs.
reset(Reg);
384 MBB.removeLiveIn(Reg);
385 MBB.sortUniqueLiveIns();
392bool SIMachineFunctionInfo::allocateVirtualVGPRForSGPRSpills(
398 SpillVGPRs.push_back(LaneVGPR);
400 LaneVGPR = SpillVGPRs.back();
403 SGPRSpillsToVirtualVGPRLanes[FI].emplace_back(LaneVGPR, LaneIndex);
407bool SIMachineFunctionInfo::allocatePhysicalVGPRForSGPRSpills(
408 MachineFunction &MF,
int FI,
unsigned LaneIndex,
bool IsPrologEpilog) {
410 const SIRegisterInfo *
TRI =
ST.getRegisterInfo();
417 LaneVGPR =
TRI->findUnusedRegister(MRI, &AMDGPU::VGPR_32RegClass, MF,
419 if (LaneVGPR == AMDGPU::NoRegister) {
422 SGPRSpillsToPhysicalVGPRLanes.erase(FI);
430 for (MachineBasicBlock &
MBB : MF) {
434 SpillPhysVGPRs.push_back(LaneVGPR);
436 LaneVGPR = SpillPhysVGPRs.back();
439 SGPRSpillsToPhysicalVGPRLanes[FI].emplace_back(LaneVGPR, LaneIndex);
445 bool IsPrologEpilog) {
446 std::vector<SIRegisterInfo::SpilledReg> &SpillLanes =
447 SpillToPhysVGPRLane ? SGPRSpillsToPhysicalVGPRLanes[FI]
448 : SGPRSpillsToVirtualVGPRLanes[FI];
451 if (!SpillLanes.empty())
456 unsigned WaveSize = ST.getWavefrontSize();
458 unsigned Size = FrameInfo.getObjectSize(FI);
459 unsigned NumLanes =
Size / 4;
461 if (NumLanes > WaveSize)
464 assert(
Size >= 4 &&
"invalid sgpr spill size");
465 assert(ST.getRegisterInfo()->spillSGPRToVGPR() &&
466 "not spilling SGPRs to VGPRs");
468 unsigned &NumSpillLanes = SpillToPhysVGPRLane ? NumPhysicalVGPRSpillLanes
469 : NumVirtualVGPRSpillLanes;
471 for (
unsigned I = 0;
I < NumLanes; ++
I, ++NumSpillLanes) {
472 unsigned LaneIndex = (NumSpillLanes % WaveSize);
474 bool Allocated = SpillToPhysVGPRLane
475 ? allocatePhysicalVGPRForSGPRSpills(MF, FI, LaneIndex,
477 : allocateVirtualVGPRForSGPRSpills(MF, FI, LaneIndex);
497 assert(ST.hasMAIInsts() && FrameInfo.isSpillSlotObjectIndex(FI));
499 auto &Spill = VGPRToAGPRSpills[FI];
502 if (!Spill.Lanes.empty())
503 return Spill.FullyAllocated;
505 unsigned Size = FrameInfo.getObjectSize(FI);
506 unsigned NumLanes =
Size / 4;
507 Spill.Lanes.resize(NumLanes, AMDGPU::NoRegister);
510 isAGPRtoVGPR ? AMDGPU::VGPR_32RegClass : AMDGPU::AGPR_32RegClass;
513 auto &SpillRegs = isAGPRtoVGPR ? SpillAGPR : SpillVGPR;
515 Spill.FullyAllocated =
true;
530 OtherUsedRegs.
set(Reg);
532 OtherUsedRegs.
set(Reg);
535 for (
int I = NumLanes - 1;
I >= 0; --
I) {
536 NextSpillReg = std::find_if(
537 NextSpillReg, Regs.
end(), [&MRI, &OtherUsedRegs](
MCPhysReg Reg) {
538 return MRI.isAllocatable(Reg) && !MRI.isPhysRegUsed(Reg) &&
542 if (NextSpillReg == Regs.
end()) {
543 Spill.FullyAllocated =
false;
547 OtherUsedRegs.
set(*NextSpillReg);
550 Spill.Lanes[
I] = *NextSpillReg++;
553 return Spill.FullyAllocated;
564 for (
auto &R : SGPRSpillsToVirtualVGPRLanes)
566 SGPRSpillsToVirtualVGPRLanes.clear();
570 if (!ResetSGPRSpillStackIDs) {
571 for (
auto &R : SGPRSpillsToPhysicalVGPRLanes)
573 SGPRSpillsToPhysicalVGPRLanes.clear();
575 bool HaveSGPRToMemory =
false;
577 if (ResetSGPRSpillStackIDs) {
585 HaveSGPRToMemory =
true;
591 for (
auto &R : VGPRToAGPRSpills) {
596 return HaveSGPRToMemory;
606 TRI.getSpillAlign(AMDGPU::SGPR_32RegClass),
false);
610MCPhysReg SIMachineFunctionInfo::getNextUserSGPR()
const {
611 assert(NumSystemSGPRs == 0 &&
"System SGPRs must be added after user SGPRs");
612 return AMDGPU::SGPR0 + NumUserSGPRs;
615MCPhysReg SIMachineFunctionInfo::getNextSystemSGPR()
const {
616 return AMDGPU::SGPR0 + NumUserSGPRs + NumSystemSGPRs;
619void SIMachineFunctionInfo::MRI_NoteNewVirtualRegister(
Register Reg) {
623void SIMachineFunctionInfo::MRI_NoteCloneVirtualRegister(
Register NewReg,
625 VRegFlags.grow(NewReg);
626 VRegFlags[NewReg] = VRegFlags[SrcReg];
632 if (!ST.isAmdPalOS())
635 if (ST.hasMergedShaders()) {
641 GitPtrLo = AMDGPU::SGPR8;
660static std::optional<yaml::SIArgumentInfo>
665 auto convertArg = [&](std::optional<yaml::SIArgument> &
A,
672 if (Arg.isRegister()) {
679 SA.
Mask = Arg.getMask();
699 ArgInfo.PrivateSegmentWaveByteOffset);
708 if (
ArgInfo.FirstKernArgPreloadReg) {
711 "FirstKernArgPreloadReg must be a physical register");
821 SourceRange = YamlMFI.
ScavengeFI->SourceRange;
824 ScavengeFI = *FIOrErr;
826 ScavengeFI = std::nullopt;
832 auto [MinNumAGPR, MaxNumAGPR] =
835 return MinNumAGPR != 0u;
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
Provides AMDGPU specific target descriptions.
Base class for AMDGPU specific classes of TargetSubtarget.
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
AMD GCN specific subclass of TargetSubtarget.
Register const TargetRegisterInfo * TRI
Promote Memory to Register
const GCNTargetMachine & getTM(const GCNSubtarget *STI)
static cl::opt< bool, true > MFMAVGPRFormOpt("amdgpu-mfma-vgpr-form", cl::desc("Whether to force use VGPR for Opc and Dest of MFMA. If " "unspecified, default to compiler heuristics"), cl::location(SIMachineFunctionInfo::MFMAVGPRForm), cl::init(true), cl::Hidden)
static std::optional< yaml::SIArgumentInfo > convertArgumentInfo(const AMDGPUFunctionArgInfo &ArgInfo, const TargetRegisterInfo &TRI)
static yaml::StringValue regToString(Register Reg, const TargetRegisterInfo &TRI)
Interface definition for SIRegisterInfo.
bool isChainFunction() const
Align DynLDSAlign
Align for dynamic shared memory if any.
uint64_t ExplicitKernArgSize
AMDGPUMachineFunctionInfo(const Function &F, const AMDGPUSubtarget &ST)
uint32_t getLDSSize() const
uint32_t LDSSize
Number of bytes in the LDS that are being used.
bool hasInitWholeWave() const
bool isEntryFunction() const
static ClusterDimsAttr get(const Function &F)
Functions, function parameters, and return types can have attributes to indicate how they should be t...
BitVector & reset()
Reset all bits in the bitvector.
void resize(unsigned N, bool t=false)
Grow or shrink the bitvector.
BitVector & set()
Set all bits in the bitvector.
void setBitsInMask(const uint32_t *Mask, unsigned MaskWords=~0u)
Add '1' bits from Mask to this vector.
Lightweight error class with error context and mandatory checking.
CallingConv::ID getCallingConv() const
getCallingConv()/setCallingConv(CC) - These method get and set the calling convention of this functio...
const SITargetLowering * getTargetLowering() const override
ArrayRef< MCPhysReg > getRegisters() const
LLVM_ABI void sortUniqueLiveIns()
Sorts and uniques the LiveIns vector.
void addLiveIn(MCRegister PhysReg, LaneBitmask LaneMask=LaneBitmask::getAll())
Adds the specified register as a live in.
The MachineFrameInfo class represents an abstract stack frame until prolog/epilog code is inserted.
LLVM_ABI int CreateStackObject(uint64_t Size, Align Alignment, bool isSpillSlot, const AllocaInst *Alloca=nullptr, uint8_t ID=0)
Create a new statically sized stack object, returning a nonnegative identifier to represent it.
void setStackID(int ObjectIdx, uint8_t ID)
bool hasTailCall() const
Returns true if the function contains a tail call.
LLVM_ABI int CreateSpillStackObject(uint64_t Size, Align Alignment, TargetStackID::Value StackID=TargetStackID::Default)
Create a new statically sized stack object that represents a spill slot, returning a nonnegative iden...
void RemoveStackObject(int ObjectIdx)
Remove or mark dead a statically sized stack object.
int getObjectIndexEnd() const
Return one past the maximum frame object index.
uint8_t getStackID(int ObjectIdx) const
int getObjectIndexBegin() const
Return the minimum frame object index.
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
MachineFrameInfo & getFrameInfo()
getFrameInfo - Return the frame info object for the current function.
void replaceFrameInstRegister(MCRegister From, MCRegister To)
Replace all references to register.
MachineRegisterInfo & getRegInfo()
getRegInfo - Return information about the registers currently in use.
Function & getFunction()
Return the LLVM function that this machine code represents.
Ty * cloneInfo(const Ty &Old)
MachineRegisterInfo - Keep track of information for virtual and physical registers,...
LLVM_ABI Register createVirtualRegister(const TargetRegisterClass *RegClass, StringRef Name="")
createVirtualRegister - Create and return a new virtual register in the function with the specified r...
LLVM_ABI const MCPhysReg * getCalleeSavedRegs() const
Returns list of callee saved registers.
void reserveReg(MCRegister PhysReg, const TargetRegisterInfo *TRI)
reserveReg – Mark a register as reserved so checks like isAllocatable will not suggest using it.
LLVM_ABI void replaceRegWith(Register FromReg, Register ToReg)
replaceRegWith - Replace all instances of FromReg with ToReg in the machine function.
This interface provides simple read-only access to a block of memory, and provides simple methods for...
virtual StringRef getBufferIdentifier() const
Return an identifier for this buffer, typically the filename it was read from.
Wrapper class representing virtual and physical registers.
This class keeps track of the SPI_SP_INPUT_ADDR config register, which tells the hardware which inter...
bool initializeBaseYamlFields(const yaml::SIMachineFunctionInfo &YamlMFI, const MachineFunction &MF, PerFunctionMIParsingState &PFS, SMDiagnostic &Error, SMRange &SourceRange)
void shiftWwmVGPRsToLowestRange(MachineFunction &MF, SmallVectorImpl< Register > &WWMVGPRs, BitVector &SavedVGPRs)
Register addPrivateSegmentSize(const SIRegisterInfo &TRI)
void allocateWWMSpill(MachineFunction &MF, Register VGPR, uint64_t Size=4, Align Alignment=Align(4))
Register addDispatchPtr(const SIRegisterInfo &TRI)
Register getLongBranchReservedReg() const
Register addFlatScratchInit(const SIRegisterInfo &TRI)
unsigned getMaxWavesPerEU() const
ArrayRef< Register > getSGPRSpillPhysVGPRs() const
int getScavengeFI(MachineFrameInfo &MFI, const SIRegisterInfo &TRI)
Register addQueuePtr(const SIRegisterInfo &TRI)
SIMachineFunctionInfo(const SIMachineFunctionInfo &MFI)=default
Register getGITPtrLoReg(const MachineFunction &MF) const
bool allocateVGPRSpillToAGPR(MachineFunction &MF, int FI, bool isAGPRtoVGPR)
Reserve AGPRs or VGPRs to support spilling for FrameIndex FI.
void splitWWMSpillRegisters(MachineFunction &MF, SmallVectorImpl< std::pair< Register, int > > &CalleeSavedRegs, SmallVectorImpl< std::pair< Register, int > > &ScratchRegs) const
Register getSGPRForEXECCopy() const
bool mayUseAGPRs(const Function &F) const
bool isCalleeSavedReg(const MCPhysReg *CSRegs, MCPhysReg Reg) const
Register addLDSKernelId()
Register getVGPRForAGPRCopy() const
bool allocateSGPRSpillToVGPRLane(MachineFunction &MF, int FI, bool SpillToPhysVGPRLane=false, bool IsPrologEpilog=false)
Register addKernargSegmentPtr(const SIRegisterInfo &TRI)
Register addDispatchID(const SIRegisterInfo &TRI)
bool removeDeadFrameIndices(MachineFrameInfo &MFI, bool ResetSGPRSpillStackIDs)
If ResetSGPRSpillStackIDs is true, reset the stack ID from sgpr-spill to the default stack.
MachineFunctionInfo * clone(BumpPtrAllocator &Allocator, MachineFunction &DestMF, const DenseMap< MachineBasicBlock *, MachineBasicBlock * > &Src2DstMBB) const override
Make a functionally equivalent copy of this MachineFunctionInfo in MF.
bool checkIndexInPrologEpilogSGPRSpills(int FI) const
Register addPrivateSegmentBuffer(const SIRegisterInfo &TRI)
const ReservedRegSet & getWWMReservedRegs() const
std::optional< int > getOptionalScavengeFI() const
Register addImplicitBufferPtr(const SIRegisterInfo &TRI)
void limitOccupancy(const MachineFunction &MF)
SmallVectorImpl< MCRegister > * addPreloadedKernArg(const SIRegisterInfo &TRI, const TargetRegisterClass *RC, unsigned AllocSizeDWord, int KernArgIdx, int PaddingSGPRs)
void reserveWWMRegister(Register Reg)
static bool isChainScratchRegister(Register VGPR)
Instances of this class encapsulate one diagnostic report, allowing printing to a raw_ostream as a ca...
Represents a location in source code.
Represents a range in source code.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
typename SuperClass::const_iterator const_iterator
unsigned getMainFileID() const
const MemoryBuffer * getMemoryBuffer(unsigned i) const
Represent a constant reference to a string, i.e.
bool consumeInteger(unsigned Radix, T &Result)
Parse the current string as an integer of the specified radix.
constexpr bool empty() const
Check if the string is empty.
const TargetMachine & getTargetMachine() const
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
A raw_ostream that writes to an std::string.
unsigned getInitialPSInputAddr(const Function &F)
unsigned getDynamicVGPRBlockSize(const Function &F)
SmallVector< unsigned > getMaxNumWorkGroups(const Function &F)
LLVM_READNONE constexpr bool isChainCC(CallingConv::ID CC)
std::pair< unsigned, unsigned > getIntegerPairAttribute(const Function &F, StringRef Name, std::pair< unsigned, unsigned > Default, bool OnlyFirstRequired)
LLVM_READNONE constexpr bool isGraphics(CallingConv::ID CC)
CallingConv Namespace - This namespace contains an enum with a value for the well-known calling conve...
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
@ AMDGPU_CS
Used for Mesa/AMDPAL compute shaders.
@ AMDGPU_KERNEL
Used for AMDGPU code object kernels.
@ AMDGPU_Gfx
Used for AMD graphics targets.
@ AMDGPU_HS
Used for Mesa/AMDPAL hull shaders (= tessellation control shaders).
@ AMDGPU_GS
Used for Mesa/AMDPAL geometry shaders.
@ AMDGPU_PS
Used for Mesa/AMDPAL pixel shaders.
@ SPIR_KERNEL
Used for SPIR kernel functions.
initializer< Ty > init(const Ty &Val)
LocationClass< Ty > location(Ty &L)
This is an optimization pass for GlobalISel generic memory operations.
auto find(R &&Range, const T &Val)
Provide wrappers to std::find which take ranges instead of having to pass begin/end explicitly.
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
std::string toString(const APInt &I, unsigned Radix, bool Signed, bool formatAsCLiteral=false, bool UpperCase=true, bool InsertSeparators=false)
constexpr unsigned DefaultMemoryClusterDWordsLimit
BumpPtrAllocatorImpl<> BumpPtrAllocator
The standard BumpPtrAllocator which just uses the default template parameters.
LLVM_ABI Printable printReg(Register Reg, const TargetRegisterInfo *TRI=nullptr, unsigned SubIdx=0, const MachineRegisterInfo *MRI=nullptr)
Prints virtual and physical registers with or without a TRI instance.
MCRegisterClass TargetRegisterClass
static const AMDGPUFunctionArgInfo FixedABIFunctionInfo
This struct is a compact representation of a valid (non-zero power of two) alignment.
static ArgDescriptor createRegister(Register Reg, unsigned Mask=~0u)
Helper struct shared between Function Specialization and SCCP Solver.
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...
A serializaable representation of a reference to a stack object or fixed stack object.
This class should be specialized by any type that needs to be converted to/from a YAML mapping.
std::optional< SIArgument > PrivateSegmentWaveByteOffset
std::optional< SIArgument > WorkGroupIDY
std::optional< SIArgument > FlatScratchInit
std::optional< SIArgument > DispatchPtr
std::optional< SIArgument > DispatchID
std::optional< SIArgument > WorkItemIDY
std::optional< SIArgument > WorkGroupIDX
std::optional< SIArgument > ImplicitArgPtr
std::optional< SIArgument > QueuePtr
std::optional< SIArgument > WorkGroupInfo
std::optional< SIArgument > LDSKernelId
std::optional< SIArgument > ImplicitBufferPtr
std::optional< SIArgument > WorkItemIDX
std::optional< SIArgument > KernargSegmentPtr
std::optional< SIArgument > WorkItemIDZ
std::optional< SIArgument > PrivateSegmentSize
std::optional< SIArgument > PrivateSegmentBuffer
std::optional< SIArgument > FirstKernArgPreloadReg
std::optional< SIArgument > WorkGroupIDZ
std::optional< unsigned > Mask
static SIArgument createArgument(bool IsReg)
unsigned MaxMemoryClusterDWords
StringValue SGPRForEXECCopy
bool HasNoWWMPoolSGPRSpillFallback
SmallVector< StringValue > WWMReservedRegs
uint32_t HighBitsOf32BitAddress
SIMachineFunctionInfo()=default
StringValue FrameOffsetReg
StringValue LongBranchReservedReg
unsigned NumKernargPreloadSGPRs
uint64_t ExplicitKernArgSize
uint16_t NumWaveDispatchSGPRs
void mappingImpl(yaml::IO &YamlIO) override
StringValue VGPRForAGPRCopy
std::optional< SIArgumentInfo > ArgInfo
std::optional< unsigned > DynamicVGPRBlockSize
SmallVector< StringValue, 2 > SpillPhysVGPRS
std::optional< FrameIndex > ScavengeFI
uint16_t NumWaveDispatchVGPRs
unsigned BytesInStackArgArea
unsigned ScratchReservedForDynamicVGPRs
StringValue ScratchRSrcReg
StringValue StackPtrOffsetReg
A wrapper around std::string which contains a source range that's being set during parsing.