diff options
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIProgramInfo.h')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/SIProgramInfo.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIProgramInfo.h b/llvm/lib/Target/AMDGPU/SIProgramInfo.h index aab127e49463..8c26789f936c 100644 --- a/llvm/lib/Target/AMDGPU/SIProgramInfo.h +++ b/llvm/lib/Target/AMDGPU/SIProgramInfo.h @@ -21,6 +21,8 @@ namespace llvm { +class GCNSubtarget; + /// Track resource usage for kernels / entry functions. struct SIProgramInfo { // Fields set in PGM_RSRC1 pm4 packet. @@ -34,6 +36,7 @@ struct SIProgramInfo { uint32_t IEEEMode = 0; uint32_t WgpMode = 0; // GFX10+ uint32_t MemOrdered = 0; // GFX10+ + uint32_t RrWgMode = 0; // GFX12+ uint64_t ScratchSize = 0; // State used to calculate fields set in PGM_RSRC2 pm4 packet. @@ -85,8 +88,8 @@ struct SIProgramInfo { SIProgramInfo() = default; /// Compute the value of the ComputePGMRsrc1 register. - uint64_t getComputePGMRSrc1() const; - uint64_t getPGMRSrc1(CallingConv::ID CC) const; + uint64_t getComputePGMRSrc1(const GCNSubtarget &ST) const; + uint64_t getPGMRSrc1(CallingConv::ID CC, const GCNSubtarget &ST) const; /// Compute the value of the ComputePGMRsrc2 register. uint64_t getComputePGMRSrc2() const; |
