[Mlir-commits] [mlir] [mlir][vector] Add patterns for vector masked load/store (PR #74834)
Jakub Kuderski
llvmlistbot at llvm.org
Thu Dec 14 07:52:00 PST 2023
================
@@ -776,6 +776,31 @@ struct TestFoldArithExtensionIntoVectorContractPatterns
(void)applyPatternsAndFoldGreedily(getOperation(), std::move(patterns));
}
};
+
+struct TestVectorEmulateMaskedLoadStore final
+ : public PassWrapper<TestVectorEmulateMaskedLoadStore,
+ OperationPass<func::FuncOp>> {
+ MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(TestVectorEmulateMaskedLoadStore)
+
+ StringRef getArgument() const override {
+ return "test-vector-emulate-masked-load-store";
+ }
+ StringRef getDescription() const override {
+ return "Test patterns that emulate the maskedload/maskedstore op by "
+ " vector.load/store op";
----------------
kuhar wrote:
```suggestion
" memref.load/store op";
```
https://github.com/llvm/llvm-project/pull/74834
More information about the Mlir-commits
mailing list