Make UnrollVectorPattern inherit from RewritePattern instead of OpRewritePattern so that we don't need to create many patterns when applying to many different type of ops. Since we may want to apply the pattern to all arithmetic op, it is more convenient to filter dynamically.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/test/lib/Transforms/TestVectorTransforms.cpp | ||
---|---|---|
38 | Doc comment please. | |
154 | This method is wrongly named: Contraint -> Constraint. (I understand this is due to a mix up with its French spelling contrainte. :-)) | |
155 | Nit side comment: Not sure why the setFilterConstraint argument function just doesn't return a bool instead of LogicalResult. |
Doc comment please.