[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


================
@@ -3513,6 +3513,11 @@ void CXXNameMangler::mangleType(const BuiltinType *T) {
     mangleVendorType(#Name);                                                   \
     break;
 #include "clang/Basic/HLSLIntangibleTypes.def"
+#define SPIRV_TYPE(Name, Id, SingletonId)                                      \
+  case BuiltinType::Id:                                                        \
+    mangleVendorType(Name);                                                    \
+    break;
+#include "clang/Basic/SPIRVTypes.def"
----------------
tahonermann wrote:

We should also update `clang/lib/AST/MicrosoftMangle.cpp` too.  Use of the `mangleArtificialTagType()` encoding like the other types should be fine.

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


More information about the cfe-commits mailing list