[llvm] MCExpr-ify amd_kernel_code_t (PR #91587)
Janek van Oirschot via llvm-commits
llvm-commits at lists.llvm.org
Mon May 20 06:53:12 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:
I should add that this is explicitly checked for in the parser: https://github.com/llvm/llvm-project/blob/82c5d350d200ccc5365d40eac187b9ec967af727/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp#L5905-L5908
https://github.com/llvm/llvm-project/pull/91587
More information about the llvm-commits
mailing list