[Mlir-commits] [mlir] [mlir][SPIR-V] Support spirv.selection_control attribute on scf.if (PR #196510)
Arseniy Obolenskiy
llvmlistbot at llvm.org
Sat May 9 00:54:22 PDT 2026
================
@@ -1054,6 +1054,10 @@ LogicalResult SPIRVDialect::verifyOperationAttribute(Operation *op,
if (!isa<spirv::LoopControlAttr>(attr))
return op->emitError("'")
<< symbol << "' must be a spirv::LoopControlAttr";
+ } else if (symbol == spirv::getSelectionControlAttrName()) {
+ if (!isa<spirv::SelectionControlAttr>(attr))
+ return op->emitError("'")
+ << symbol << "' must be a spirv::SelectionControlAttr";
----------------
aobolensk wrote:
Done
https://github.com/llvm/llvm-project/pull/196510
More information about the Mlir-commits
mailing list