[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
Fri May 1 07:36:48 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:
Can you elaborate on this choice to not perform validation when constructing the new op in this pass itself? If this pass is being run, I imagine the motivation is to convert any ops from 1.1 spec to 1.0 spec?
https://github.com/llvm/llvm-project/pull/194971
More information about the Mlir-commits
mailing list