[llvm] [SPIRV] Fix enqueue empty kernel (PR #187671)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 20 06:42:02 PDT 2026


================
@@ -2737,13 +2747,35 @@ static bool buildEnqueueKernel(const SPIRV::IncomingCall *Call,
     }
   }
 
+  // Prepare block invoke function and block literal before building
+  // OpEnqueueKernel.
+  const unsigned BlockFIdx = HasEvents ? 6 : 3;
----------------
aobolensk wrote:

Does it make sense to test the case without events? As I can see the current test is with events (`__enqueue_kernel_basic_events`)

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


More information about the llvm-commits mailing list