[Mlir-commits] [mlir] [mlir] add MlirOptMain config callback for context configuration (PR #68228)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Oct 4 08:25:53 PDT 2023
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 ba01ce60665848478ba4e76190907153a8c26fe9 9101578dcb4e970abce043c8340f6550eb86f360 -- mlir/unittests/Tools/MlirOptContextPreload.cpp mlir/include/mlir/Tools/mlir-opt/MlirOptMain.h mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp mlir/lib/Pass/PassManagerOptions.cpp mlir/lib/Tools/mlir-opt/MlirOptMain.cpp mlir/test/lib/Dialect/Transform/TestTransformDialectInterpreter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp b/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp
index 4da0f22f7346..0be6341ee456 100644
--- a/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp
+++ b/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp
@@ -511,7 +511,8 @@ LogicalResult transform::detail::interpreterBaseInitializeImpl(
}
bool hasDialectLevelLibrary = !libraryRange.empty();
- if (!hasDialectLevelLibrary && (!parsedLibraryModule || !*parsedLibraryModule))
+ if (!hasDialectLevelLibrary &&
+ (!parsedLibraryModule || !*parsedLibraryModule))
return success();
if (sharedTransformModule && *sharedTransformModule) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/68228
More information about the Mlir-commits
mailing list