[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


================
@@ -2200,6 +2206,9 @@ TypeInfo ASTContext::getTypeInfoImpl(const Type *T) const {
     Align = 8;                                                                 \
     break;
 #include "clang/Basic/WebAssemblyReferenceTypes.def"
+    case BuiltinType::AMDGPUBufferRsrc:
+      Width = 128;
+      Align = 128;
----------------
shiltian wrote:

Do we want to expose it as a pointer, a sizeless object, or a vector of 160 bits?

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


More information about the cfe-commits mailing list