[llvm] [AMDGPU] MCExpr-ify MC layer kernel descriptor (PR #80855)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 8 06:54:54 PST 2024
================
@@ -1187,11 +1188,11 @@ void initDefaultAMDKernelCodeT(amd_kernel_code_t &Header,
}
}
-amdhsa::kernel_descriptor_t
-getDefaultAmdhsaKernelDescriptor(const MCSubtargetInfo *STI, MCContext &Ctx) {
+MCKernelDescriptor getDefaultAmdhsaKernelDescriptor(const MCSubtargetInfo *STI,
+ MCContext &Ctx) {
IsaVersion Version = getIsaVersion(STI->getCPU());
- amdhsa::kernel_descriptor_t KD;
+ MCKernelDescriptor KD;
memset(&KD, 0, sizeof(KD));
----------------
arsenm wrote:
shouldn't need memset 0 anymore
https://github.com/llvm/llvm-project/pull/80855
More information about the llvm-commits
mailing list