[Mlir-commits] [mlir] [mlir][SPIR-V] Support spirv.selection_control attribute on scf.if (PR #196510)

Jakub Kuderski llvmlistbot at llvm.org
Sat May 9 10:56:08 PDT 2026


================
@@ -346,3 +346,14 @@ func.func @vce() attributes {
   // CHECK: #spirv.vce<v1.0, [Shader], [SPV_KHR_storage_buffer_storage_class]>
   vce = #spirv.vce<v1.0, [Shader], [SPV_KHR_storage_buffer_storage_class]>
 } { return }
+
+// -----
+
+//===----------------------------------------------------------------------===//
+// spirv.selection_control
+//===----------------------------------------------------------------------===//
+
+// expected-error @+1 {{'spirv.selection_control' must be a spirv::SelectionControlAttr}}
----------------
kuhar wrote:

```suggestion
// expected-error at +1 {{'spirv.selection_control' must be a spirv::SelectionControlAttr}}
```

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


More information about the Mlir-commits mailing list