[Mlir-commits] [mlir] [mlir][PDL] PDLToPDLInterp: Use the pdl pattern name in the generated rewriter. (PR #149481)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Jul 24 11:48:48 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp -- mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp b/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp
index fd2c02f02..86afdfdb2 100644
--- a/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp
+++ b/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp
@@ -645,8 +645,7 @@ SymbolRefAttr PatternLowering::generateRewriter(
rewriterName = symName.value();
}
auto rewriterFunc = pdl_interp::FuncOp::create(
- builder, pattern.getLoc(), rewriterName,
- builder.getFunctionType({}, {}));
+ builder, pattern.getLoc(), rewriterName, builder.getFunctionType({}, {}));
rewriterSymbolTable.insert(rewriterFunc);
// Generate the rewriter function body.
``````````
</details>
https://github.com/llvm/llvm-project/pull/149481
More information about the Mlir-commits
mailing list