[Mlir-commits] [flang] [mlir] [mlir][Transforms] Encapsulate dialect conversion options in `ConversionConfig` (PR #83754)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Mar 3 21:46:32 PST 2024


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 9606655fbb03b1cf1c69d624c7320630e85f33e6 642fcdf24ad1a3d3d41ae4c2d02366f343d9e86b -- flang/lib/Optimizer/Transforms/MemoryAllocation.cpp mlir/include/mlir/Transforms/DialectConversion.h mlir/lib/Transforms/Utils/DialectConversion.cpp mlir/test/lib/Dialect/Test/TestPatterns.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/lib/Optimizer/Transforms/MemoryAllocation.cpp b/flang/lib/Optimizer/Transforms/MemoryAllocation.cpp
index af4d2e8d7d..5bbb542013 100644
--- a/flang/lib/Optimizer/Transforms/MemoryAllocation.cpp
+++ b/flang/lib/Optimizer/Transforms/MemoryAllocation.cpp
@@ -131,7 +131,7 @@ public:
     auto insPt = rewriter.saveInsertionPoint();
     llvm::errs() << "*** BEFORE SET IP\n";
     for (mlir::Operation *retOp : returnOps) {
-      llvm::errs() <<"*** ITER\n";
+      llvm::errs() << "*** ITER\n";
       rewriter.setInsertionPoint(retOp);
       [[maybe_unused]] auto free = rewriter.create<fir::FreeMemOp>(loc, heap);
       LLVM_DEBUG(llvm::dbgs() << "memory allocation opt: add free " << free

``````````

</details>


https://github.com/llvm/llvm-project/pull/83754


More information about the Mlir-commits mailing list