[Mlir-commits] [mlir] [mlir][tosa] Add a pass to downgrade TOSA `1.1.draft` to `1.0` (PR #194971)

Luke Hutton llvmlistbot at llvm.org
Fri May 1 09:38:11 PDT 2026


================
@@ -185,6 +185,17 @@ def TosaAttachTarget : Pass<"tosa-attach-target", "ModuleOp"> {
   ];
 }
 
+def TosaDowngrade1p1To1p0Pass
+    : Pass<"tosa-downgrade-1-1-to-1-0", "func::FuncOp"> {
----------------
lhutton1 wrote:

Yes exactly, we can chain the passes like: `--tosa-downgrade-1-2-to-1-1 --tosa-downgrade-1-1-to-1-0`. If a 1.2 op is not representable in 1.1 it therefore shouldn't be representable in 1.0 and will fail validation on a 1.0 target.

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


More information about the Mlir-commits mailing list