[llvm] [AMDGPU] MCExpr-ify MC layer kernel descriptor (PR #80855)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 6 08:28:11 PST 2024


================
@@ -0,0 +1,32 @@
+//===--- AMDHSAKernelDescriptor.h -----------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/Support/AMDHSAKernelDescriptor.h"
+#include "llvm/MC/MCContext.h"
+#include "llvm/MC/MCExpr.h"
+
+using namespace llvm;
+using namespace llvm::amdhsa;
+
+void kernel_descriptor_t::bits_set(const MCExpr *&Dst, const MCExpr *Value,
----------------
arsenm wrote:

Can you add a pseudocode description for what this is doing?

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


More information about the llvm-commits mailing list