This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Transform] NFC - Various API cleanups and use RewriterBase in lieu of PatternRewriter
ClosedPublic

Authored by nicolasvasilache on Mar 13 2023, 12:16 PM.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Mar 13 2023, 12:16 PM
nicolasvasilache edited the summary of this revision. (Show Details)

Rebase

Fix insertion point

ftynse accepted this revision.Mar 13 2023, 5:43 PM
ftynse added inline comments.
mlir/include/mlir/Dialect/SCF/Transforms/Patterns.h
34

Nit: extra vertical whitespcae.

38

FYI: we have the mechanism for canonicalizations to be defined as a method instead of a pattern. It can be reworked and extended to have PatternSet accept a function and wrap it into a pattern class.

This revision is now accepted and ready to land.Mar 13 2023, 5:43 PM
springerm accepted this revision.Mar 14 2023, 12:48 AM
qcolombet accepted this revision.Mar 14 2023, 1:11 AM
nicolasvasilache marked 2 inline comments as done.Mar 14 2023, 4:20 AM
nicolasvasilache added inline comments.
mlir/include/mlir/Dialect/SCF/Transforms/Patterns.h
38

cool yeah we should def switch to that

mlir/include/mlir/Dialect/SCF/Transforms/Transforms.h