[clang] [Clang][SPIRV] Add __spirv_event_t builtin type (PR #207077)
Tom Honermann via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 8 20:53:51 PDT 2026
================
@@ -1141,6 +1141,15 @@ llvm::DIType *CGDebugInfo::CreateType(const BuiltinType *BT) {
return SingletonId; \
}
#include "clang/Basic/AMDGPUTypes.def"
+#define SPIRV_TYPE(Name, Id, SingletonId) \
+ case BuiltinType::Id: { \
+ if (!SingletonId) \
+ SingletonId = \
+ DBuilder.createForwardDecl(llvm::dwarf::DW_TAG_structure_type, Name, \
+ TheCU, TheCU->getFile(), 0); \
+ return SingletonId; \
+ }
+#include "clang/Basic/SPIRVTypes.def"
----------------
tahonermann wrote:
Perhaps this can call `getOrCreateStructPtrType()` as is done for `EXT_OPAQUE_TYPE`? That would build a pointer to the opaque structure instead of just the opaque structure type.
https://github.com/llvm/llvm-project/pull/207077
More information about the cfe-commits
mailing list