[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


================
@@ -617,6 +617,10 @@ llvm::Type *CodeGenTypes::ConvertType(QualType T) {
 #include "clang/Basic/HLSLIntangibleTypes.def"
       ResultType = CGM.getHLSLRuntime().convertHLSLSpecificType(Ty);
       break;
+#define SPIRV_TYPE(Name, Id, SingletonId)                                      \
+  case BuiltinType::Id:                                                        \
+    return llvm::TargetExtType::get(getLLVMContext(), "spirv.Event");
----------------
tahonermann wrote:

Am I right in assuming handling for this "spirv.Event" will need to be added to the SPIR-V backend? I'm afraid I have no experience in this area to draw from.

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


More information about the cfe-commits mailing list