[llvm] [SPIR-V] Fix i8 pointer type for NULL events in OpEnqueueKernel (PR #201125)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 2 08:17:15 PDT 2026
================
@@ -2975,27 +2975,41 @@ static bool buildEnqueueKernel(const SPIRV::IncomingCall *Call,
// 2. Process all arguments which requered preparation.
// 2.1 Events - use Call arguments, or use dummy nulls in case of absence of
// events
+
+ // Per SPIR-V spec, OpEnqueueKernel's Wait Events / Ret Event operands
+ // must be pointers to OpTypeDeviceEvent. Build the LLVM TargetExtType
+ // for spirv.DeviceEvent so getOrCreateSPIRVPointerType can register
+ // both the SPIR-V type and the LLVM-side mapping; deriving the pointer
+ // from an opaque LLVM PointerType would lose the pointee and deduce
----------------
idubinov wrote:
I know that this is just copy, but what do you think about move it back or removing it at all?
https://github.com/llvm/llvm-project/pull/201125
More information about the llvm-commits
mailing list