This provides a simplified way to implement 'matchAndRewrite' style
canonicalization patterns for ops that don't need the full power of
RewritePatterns. Using this style, you can implement a static method
with a signature like:
LogicalResult AssertOp::canonicalize(AssertOp op, PatternRewriter &rewriter) { return success(); }
instead of dealing with defining RewritePattern subclasses.
This also adopts this for a few patterns in the standardops dialect
to show how it works.
This is really nice!