[Mlir-commits] [mlir] [mlir][vector] Make `TransposeOpLowering` configurable (PR #73915)

Benjamin Maxwell llvmlistbot at llvm.org
Mon Dec 4 03:00:38 PST 2023


================
@@ -59,6 +59,8 @@ struct VectorTransformsOptions {
     vectorTransferSplit = opt;
     return *this;
   }
+
+  bool useShapeCast = true;
----------------
MacDue wrote:

Could you add a builder method and doc comment, like the other options:
```suggestion
  /// Option to control if vector.transpose can lower to a vector.shape_cast.
  bool useShapeCast = true;
  VectorTransformsOptions &setUseShapeCast(bool opt = true) {
    useShapeCast = opt;
    return *this;
  }
```

 

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


More information about the Mlir-commits mailing list