This pattern decomposes a vector.mask with multiple ops into multiple
vector.masks (for those ops that need masking) and ops without masking
(by moving them outside of the vector.mask). This is a wildcard pattern
for those cases where the mask propagation is 1:1 and no
slicing/decomposition of the mask is required.
Details
Details
- Reviewers
aartbik nicolasvasilache
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/Vector/IR/VectorOps.cpp | ||
---|---|---|
5460 | Does it make sense to locate that under a new Dialect/Vector/Transforms/VectorMaskingRewritePatterns.cpp with a proper populate function added to third_party/llvm-project/mlir/include/mlir/Dialect/Vector/Transforms/VectorRewritePatterns.h? I've been trying to structure things a bit this way for sanity. |
Does it make sense to locate that under a new Dialect/Vector/Transforms/VectorMaskingRewritePatterns.cpp with a proper populate function added to third_party/llvm-project/mlir/include/mlir/Dialect/Vector/Transforms/VectorRewritePatterns.h?
I've been trying to structure things a bit this way for sanity.