[Mlir-commits] [mlir] [mlir][tosa] Enhance TosaInferShapes pass for simple shape inference (PR #178418)

Luke Hutton llvmlistbot at llvm.org
Mon Feb 23 05:29:33 PST 2026


================
@@ -42,6 +42,16 @@ def TosaInferShapesPass : Pass<"tosa-infer-shapes", "func::FuncOp"> {
     "tensor::TensorDialect",
     "tosa::TosaDialect",
   ];
+
+  let options = [
+    Option<"foldShapeExpressions", "fold-shape-expressions", "bool",
+           /*default=*/"false",
----------------
lhutton1 wrote:

I certainly like that to be the case eventually. While the shape operator folders are still being added (we're still missing concat/slice shape), I'd prefer to leave it as opt-in for now

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


More information about the Mlir-commits mailing list