[Mlir-commits] [mlir] [mlir][spirv] Fix lookup logic `spirv.target_env` for `gpu.module` (PR #147262)

Jakub Kuderski llvmlistbot at llvm.org
Thu Jul 24 07:09:12 PDT 2025


================
@@ -0,0 +1,17 @@
+// RUN: mlir-opt --convert-gpu-to-spirv %s | FileCheck %s
+
+module attributes {gpu.container_module} {
+  // CHECK-LABEL: spirv.module @{{.*}} GLSL450
+  gpu.module @kernels [#spirv.target_env<#spirv.vce<v1.0, [Shader], [SPV_KHR_storage_buffer_storage_class]>, #spirv.resource_limits<>>] {
----------------
kuhar wrote:

Can we have a test with more than one target env attr in the array?

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


More information about the Mlir-commits mailing list