[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:51:56 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"> {
+ let summary = "Downgrade TOSA 1.1 specification constructs to TOSA 1.0";
+ let description = [{
+ Rewrites constructs which are only compatible in TOSA specification 1.1 and
+ above to their TOSA 1.0 counterparts where possible. Downgrading is best-effort
+ and validation should be performed afterwards to ensure compatibility with
----------------
sahas3 wrote:
Thanks for the explanation, makes sense to me.
https://github.com/llvm/llvm-project/pull/194971
More information about the Mlir-commits
mailing list