This revision adds the additional lowering and exposes the patterns at a finer granularity for better programmatic reuse. The unit test makes use of the finer grained pattern for simpler checks.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/include/mlir/Dialect/Vector/VectorTransforms.h | ||
|---|---|---|
| 96 | fields should follow methods (as you did below) also , can this be a private field? | |
| 98 | just curious, is the move away from matchAndRewrite in favor of match and rewrite intentional? | |
| 133 | probably private? | |
| 160 | fields after methods, probably private | |
| mlir/lib/Dialect/Vector/VectorTransforms.cpp | ||
| 1436 | now these are static helpers, should we move them to the top of the file I personally like at the top a bit better since it "encourages" other classes to start using them too, if they appear in the middle, they are less visible... just my 2 cents | |
| mlir/include/mlir/Dialect/Vector/VectorTransforms.h | ||
|---|---|---|
| 98 | I've been using this for code reuse, see how matchAndRewrite below delegates to the other pattern's match method as a preprocessing filter. | |
fields should follow methods (as you did below)
also , can this be a private field?