[Mlir-commits] [mlir] [mlir] Avoid parallel code in single-threaded builds (PR #229794)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Oct 7 20:52:11 PDT 2026
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 origin/main HEAD --extensions cpp,h -- mlir/include/mlir/IR/MLIRContext.h mlir/lib/IR/MLIRContext.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/IR/MLIRContext.cpp b/mlir/lib/IR/MLIRContext.cpp
index 68589d8c4..c5d66c275 100644
--- a/mlir/lib/IR/MLIRContext.cpp
+++ b/mlir/lib/IR/MLIRContext.cpp
@@ -609,9 +609,7 @@ void MLIRContext::allowUnregisteredDialects(bool allowing) {
/// Return true if multi-threading is enabled by the context.
#if LLVM_ENABLE_THREADS
-bool MLIRContext::isMultithreadingEnabled() {
- return impl->threadingIsEnabled;
-}
+bool MLIRContext::isMultithreadingEnabled() { return impl->threadingIsEnabled; }
#endif
/// Set the flag specifying if multi-threading is disabled by the context.
``````````
</details>
https://github.com/llvm/llvm-project/pull/229794
More information about the Mlir-commits
mailing list