[clang] [Clang][AMDGPU] Add a new builtin type for buffer rsrc (PR #94830)

Krzysztof Drewniak via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 13 14:03:29 PDT 2024


================
@@ -0,0 +1,9 @@
+
+// REQUIRES: amdgpu-registered-target
+// RUN: %clang_cc1 -triple amdgcn -emit-llvm -o - %s -debug-info-kind=limited 2>&1 | FileCheck %s
+
+// CHECK: name: "__amdgcn_buffer_rsrc_t",{{.*}}baseType: ![[BT:[0-9]+]]
+// CHECK: [[BT]] = !DICompositeType(tag: DW_TAG_structure_type, name: "__amdgcn_buffer_rsrc_t", {{.*}} flags: DIFlagFwdDecl)
----------------
krzysz00 wrote:

Yeah, debug as a struct's probably a more sensible representation, since it basically is a struct

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


More information about the cfe-commits mailing list