[Mlir-commits] [mlir] [OpenACC] Add an attribute to record number of loops collapsed. (PR #201969)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Jun 5 16:56:27 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 h,cpp -- mlir/include/mlir/Dialect/OpenACC/OpenACC.h mlir/include/mlir/Dialect/OpenACC/OpenACCUtilsLoop.h mlir/lib/Dialect/OpenACC/Utils/OpenACCUtilsLoop.cpp mlir/unittests/Dialect/OpenACC/OpenACCUtilsLoopTest.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/include/mlir/Dialect/OpenACC/OpenACC.h b/mlir/include/mlir/Dialect/OpenACC/OpenACC.h
index 5372e1f42..650f6f780 100644
--- a/mlir/include/mlir/Dialect/OpenACC/OpenACC.h
+++ b/mlir/include/mlir/Dialect/OpenACC/OpenACC.h
@@ -206,7 +206,7 @@ static constexpr StringLiteral getFromDefaultClauseAttrName() {
   return StringLiteral("acc.from_default");
 }
 
-/// Name for an attribute attached to a loop indicating the number of loops 
+/// Name for an attribute attached to a loop indicating the number of loops
 /// collapsed to create that loop
 static constexpr StringLiteral getCollapseCountAttrName() {
   return StringLiteral("acc.collapse_count");

``````````

</details>


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


More information about the Mlir-commits mailing list