[clang] [Clang][AMDGPU] Add a new builtin type for buffer rsrc (PR #94830)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 10 04:56:32 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;
----------------
arsenm wrote:
Sizeless object is probably the safest option for now. It shouldn't be a vector. I foresee more difficulty introducing a wide pointer, and if we change our minds on how fat pointers should work it's harder to change the size later
https://github.com/llvm/llvm-project/pull/94830
More information about the cfe-commits
mailing list