[Mlir-commits] [mlir] [MLIR][Transform] Clean up the applyTransforms API (PR #107890)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Sep 9 09:40:06 PDT 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 763bc9249cf0b7da421182e24716d9a569fb5184 a08fd3bea15e73c9c839b2c7936a35d1e915f69c --extensions cpp,h -- mlir/include/mlir/Dialect/Transform/Interfaces/TransformInterfaces.h mlir/lib/Dialect/Transform/Interfaces/TransformInterfaces.cpp mlir/test/lib/Dialect/Transform/TestPassStateExtensionCommunication.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/test/lib/Dialect/Transform/TestPassStateExtensionCommunication.cpp b/mlir/test/lib/Dialect/Transform/TestPassStateExtensionCommunication.cpp
index a5d95d719a..6107bf6546 100644
--- a/mlir/test/lib/Dialect/Transform/TestPassStateExtensionCommunication.cpp
+++ b/mlir/test/lib/Dialect/Transform/TestPassStateExtensionCommunication.cpp
@@ -82,8 +82,7 @@ struct TestPassStateExtensionCommunication
     options.setStateInitializerExporter(stateInitializer, stateExporter);
     // Process transform ops with stateInitializer and stateExporter.
     for (auto op : module.getBody()->getOps<transform::TransformOpInterface>())
-      if (failed(transform::applyTransforms(
-              module, op, {}, options, false)))
+      if (failed(transform::applyTransforms(module, op, {}, options, false)))
         return signalPassFailure();
 
     // Print the opCollection vector after processing transform ops.

``````````

</details>


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


More information about the Mlir-commits mailing list