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

Sayan Saha llvmlistbot at llvm.org
Mon May 4 08:49:50 PDT 2026


================
@@ -185,6 +185,17 @@ def TosaAttachTarget : Pass<"tosa-attach-target", "ModuleOp"> {
   ];
 }
 
+def TosaDowngrade1p1To1p0Pass
----------------
sahas3 wrote:

Thanks for the explanation. I wonder as tosa spec grows whether there will be a lot of passes to downgrade from one version to another. Instead of multiple passes, should the modelling be different pass options instead since the basic idea of the pass is the same though it'll call different `populateXXX` patterns based on the pass option like `--tosa-downgrade-spec="1.2 to 1.1"` -- I suppose this is just trading number of passes to number of pass options. I am not sure if one is preferred over the other as per usual MLIR convention, just thinking out loud. 

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


More information about the Mlir-commits mailing list