[clang] [Clang][AMDGPU] Add a new builtin type for buffer rsrc (PR #94830)
Shilei Tian via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 8 07:34:04 PDT 2024
================
@@ -0,0 +1,21 @@
+//===-- AMDGPUTypes.def - Metadata about AMDGPU types -----------*- C++ -*-===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+//
+// This file defines various AMDGPU builtin types.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef AMDGPU_OPAQUE_TYPE
+#define AMDGPU_OPAQUE_TYPE(Name, MangledName, Id, SingletonId) \
+ AMDGPU_TYPE(Name, Id, SingletonId)
+#endif
+
+AMDGPU_OPAQUE_TYPE("__buffer_rsrc_t", "__buffer_rsrc_t", AMDGPUBufferRsrc, AMDGPUBufferRsrcTy)
----------------
shiltian wrote:
Probably not. I checked WASM reference types and they don't have wasm prefix.
https://github.com/llvm/llvm-project/pull/94830
More information about the cfe-commits
mailing list