[PATCH] D30433: [AMDGPU] Change amd_kernel_code_t's minor version to 1

Konstantin Zhuravlyov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 27 15:07:17 PST 2017


kzhuravl created this revision.
Herald added subscribers: tpr, dstuttard, tony-tye, yaxunl, nhaehnle, wdng, arsenm.

- We do emit amd_kernel_code_t v1.1


https://reviews.llvm.org/D30433

Files:
  lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
  test/MC/AMDGPU/hsa-exp.s
  test/MC/AMDGPU/hsa.s


Index: test/MC/AMDGPU/hsa.s
===================================================================
--- test/MC/AMDGPU/hsa.s
+++ test/MC/AMDGPU/hsa.s
@@ -214,7 +214,7 @@
 // ASM-LABEL: {{^}}amd_kernel_code_t_minimal:
 // ASM: .amd_kernel_code_t
 // ASM:	amd_code_version_major = 1
-// ASM:	amd_code_version_minor = 0
+// ASM:	amd_code_version_minor = 1
 // ASM:	amd_machine_kind = 1
 // ASM:	amd_machine_version_major = 7
 // ASM:	amd_machine_version_minor = 0
Index: test/MC/AMDGPU/hsa-exp.s
===================================================================
--- test/MC/AMDGPU/hsa-exp.s
+++ test/MC/AMDGPU/hsa-exp.s
@@ -65,7 +65,7 @@
 // ASM-LABEL: {{^}}amd_kernel_code_t_minimal:
 // ASM: .amd_kernel_code_t
 // ASM:	amd_code_version_major = 7
-// ASM:	amd_code_version_minor = 0
+// ASM:	amd_code_version_minor = 1
 // ASM:	amd_machine_kind = 1
 // ASM:	amd_machine_version_major = 7
 // ASM:	amd_machine_version_minor = 0
Index: lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
===================================================================
--- lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+++ lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
@@ -307,7 +307,7 @@
   memset(&Header, 0, sizeof(Header));
 
   Header.amd_kernel_code_version_major = 1;
-  Header.amd_kernel_code_version_minor = 0;
+  Header.amd_kernel_code_version_minor = 1;
   Header.amd_machine_kind = 1; // AMD_MACHINE_KIND_AMDGPU
   Header.amd_machine_version_major = ISA.Major;
   Header.amd_machine_version_minor = ISA.Minor;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30433.89946.patch
Type: text/x-patch
Size: 1489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170227/1a6ca32e/attachment.bin>


More information about the llvm-commits mailing list