[Mlir-commits] [mlir] [mlir][vector] Add support for linearizing Extract, ExtractStridedSlice, Shuffle VectorOps in VectorLinearize (PR #88204)

Andrzej Warzyński llvmlistbot at llvm.org
Mon Apr 15 08:40:04 PDT 2024


================
@@ -103,6 +105,234 @@ struct LinearizeVectorizable final
     return success();
   }
 
+private:
+  unsigned targetVectorBitWidth;
+};
+
+struct LinearizeVectorExtractStridedSlice final
----------------
banach-space wrote:

Thanks!

[nit] Not required, but if you're looking for source of inspiration:
* https://github.com/llvm/llvm-project/blob/b4e7b56403387630d4c390ea4f53921312326e34/mlir/lib/Dialect/Vector/Transforms/LowerVectorContract.cpp#L214-L226

Basically, it's fine to add a bit of pseudo-mlir in your comments :) Makes reading/reviewing code (and finding the right patterns) much easier 😅 

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


More information about the Mlir-commits mailing list