[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:50 PDT 2026
================
@@ -2438,6 +2445,12 @@ TypeInfo ASTContext::getTypeInfoImpl(const Type *T) const {
Width = Target->getPointerWidth(LangAS::Default);
Align = Target->getPointerAlign(LangAS::Default);
break;
+#define SPIRV_TYPE(Name, Id, SingletonId) \
+ case BuiltinType::Id: \
+ Width = Target->getPointerWidth(LangAS::Default); \
+ Align = Target->getPointerAlign(LangAS::Default); \
+ break;
+#include "clang/Basic/SPIRVTypes.def"
----------------
tahonermann wrote:
It looks like `encodeTypeForFunctionPointerAuth()` around line 3580 should be updated as well, perhaps with just an `llvm_unreachable()` call.
https://github.com/llvm/llvm-project/pull/207077
More information about the cfe-commits
mailing list