[llvm] MCExpr-ify amd_kernel_code_t (PR #91587)

Janek van Oirschot via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 07:38:20 PDT 2024


================
@@ -1229,7 +1229,13 @@ void initDefaultAMDKernelCodeT(AMDGPUMCKernelCodeT &KernelCode,
   KernelCode.amd_machine_version_minor = Version.Minor;
   KernelCode.amd_machine_version_stepping = Version.Stepping;
   KernelCode.kernel_code_entry_byte_offset = sizeof(amd_kernel_code_t);
-  KernelCode.wavefront_size = 6;
+  if (Version.Major >= 10 &&
----------------
JanekvO wrote:

Ah, I misunderstood the initial comment. I've removed the version check (although, do let me know if you'd like it to be a separate change after all).

https://github.com/llvm/llvm-project/pull/91587


More information about the llvm-commits mailing list