[Mlir-commits] [mlir] [mlir][Vector] Remove uses of vector.extractelement/vector.insertelement (PR #113827)

Benjamin Maxwell llvmlistbot at llvm.org
Wed Oct 30 07:31:39 PDT 2024


================
@@ -756,7 +756,8 @@ struct DecomposePrintOpConversion : public VectorToSCFPattern<vector::PrintOp> {
     if (vectorType.getRank() != 1) {
       // Flatten n-D vectors to 1D. This is done to allow indexing with a
       // non-constant value (which can currently only be done via
-      // vector.extractelement for 1D vectors).
+      // vector.extract for 1D vectors).
+      // TODO: vector.extract supports N-D non-constant indices now.
----------------
MacDue wrote:

Fully dynamic n-D vector.inserts/extracts still do not have a lowering. 

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


More information about the Mlir-commits mailing list