[all-commits] [llvm/llvm-project] c88f3c: [mlir] Add base class type aliases for rewrites/co...

Jakub Kuderski via All-commits all-commits at lists.llvm.org
Mon Sep 15 08:00:14 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c88f3c582dc2ef5f2fdfd0c5887f5f7562f49095
      https://github.com/llvm/llvm-project/commit/c88f3c582dc2ef5f2fdfd0c5887f5f7562f49095
  Author: Jakub Kuderski <jakub at nod-labs.com>
  Date:   2025-09-15 (Mon, 15 Sep 2025)

  Changed paths:
    M mlir/include/mlir/IR/PatternMatch.h
    M mlir/include/mlir/Transforms/DialectConversion.h
    M mlir/test/lib/Dialect/Test/TestPatterns.cpp

  Log Message:
  -----------
  [mlir] Add base class type aliases for rewrites/conversions. NFC. (#158433)

This is to simplify writing rewrite/conversion patterns that usually
start with:
```c++
struct MyPattern : public OpRewritePattern<MyOp> {
  using OpRewritePattern::OpRewritePattern;
```

and allow for:
```c++
struct MyPattern : public OpRewritePattern<MyOp> {
  using Base::Base;
```

similar to how we enable it for pass classes.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list