[AMDGPU] updated PAL metadata record keys

Summary: The ABI changed before specification was finalized.

Reviewers: kzhuravl, dstuttard

Subscribers: wdng, nhaehnle, yaxunl, t-tye, llvm-commits

Differential Revision: https://reviews.llvm.org/D39807

llvm-svn: 318213
This commit is contained in:
Tim Renouf 2017-11-14 23:05:36 +00:00
parent 64fd333304
commit 39e7ce8f21
2 changed files with 24 additions and 21 deletions

View File

@ -435,29 +435,29 @@ constexpr char AssemblerDirective[] = ".amd_amdgpu_pal_metadata";
/// \brief PAL metadata keys. /// \brief PAL metadata keys.
enum Key : uint32_t { enum Key : uint32_t {
LS_NUM_USED_VGPRS = 0x10000015, LS_NUM_USED_VGPRS = 0x10000021,
HS_NUM_USED_VGPRS = 0x10000016, HS_NUM_USED_VGPRS = 0x10000022,
ES_NUM_USED_VGPRS = 0x10000017, ES_NUM_USED_VGPRS = 0x10000023,
GS_NUM_USED_VGPRS = 0x10000018, GS_NUM_USED_VGPRS = 0x10000024,
VS_NUM_USED_VGPRS = 0x10000019, VS_NUM_USED_VGPRS = 0x10000025,
PS_NUM_USED_VGPRS = 0x1000001a, PS_NUM_USED_VGPRS = 0x10000026,
CS_NUM_USED_VGPRS = 0x1000001b, CS_NUM_USED_VGPRS = 0x10000027,
LS_NUM_USED_SGPRS = 0x1000001c, LS_NUM_USED_SGPRS = 0x10000028,
HS_NUM_USED_SGPRS = 0x1000001d, HS_NUM_USED_SGPRS = 0x10000029,
ES_NUM_USED_SGPRS = 0x1000001e, ES_NUM_USED_SGPRS = 0x1000002a,
GS_NUM_USED_SGPRS = 0x1000001f, GS_NUM_USED_SGPRS = 0x1000002b,
VS_NUM_USED_SGPRS = 0x10000020, VS_NUM_USED_SGPRS = 0x1000002c,
PS_NUM_USED_SGPRS = 0x10000021, PS_NUM_USED_SGPRS = 0x1000002d,
CS_NUM_USED_SGPRS = 0x10000022, CS_NUM_USED_SGPRS = 0x1000002e,
LS_SCRATCH_SIZE = 0x10000038, LS_SCRATCH_SIZE = 0x10000044,
HS_SCRATCH_SIZE = 0x10000039, HS_SCRATCH_SIZE = 0x10000045,
ES_SCRATCH_SIZE = 0x1000003a, ES_SCRATCH_SIZE = 0x10000046,
GS_SCRATCH_SIZE = 0x1000003b, GS_SCRATCH_SIZE = 0x10000047,
VS_SCRATCH_SIZE = 0x1000003c, VS_SCRATCH_SIZE = 0x10000048,
PS_SCRATCH_SIZE = 0x1000003d, PS_SCRATCH_SIZE = 0x10000049,
CS_SCRATCH_SIZE = 0x1000003e CS_SCRATCH_SIZE = 0x1000004a
}; };
/// \brief PAL metadata represented as a vector. /// \brief PAL metadata represented as a vector.

View File

@ -53,3 +53,6 @@ entry:
} }
attributes #0 = { nounwind "amdgpu-git-ptr-high"="0x1234" } attributes #0 = { nounwind "amdgpu-git-ptr-high"="0x1234" }
; Check we have CS_NUM_USED_VGPRS in PAL metadata.
; PAL: .amd_amdgpu_pal_metadata {{.*}},0x10000027,