[Mlir-commits] [flang] [mlir] [Flang][OpenACC] add loop annotations to acc.loop (PR #216769)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Aug 18 06:02:38 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 -- flang/include/flang/Lower/Support/LoopAnnotation.h flang/lib/Lower/Support/LoopAnnotation.cpp flang/lib/Lower/Bridge.cpp flang/lib/Lower/OpenACC.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/flang/lib/Lower/Support/LoopAnnotation.cpp b/flang/lib/Lower/Support/LoopAnnotation.cpp
index 99093e0ac..c290d17c4 100644
--- a/flang/lib/Lower/Support/LoopAnnotation.cpp
+++ b/flang/lib/Lower/Support/LoopAnnotation.cpp
@@ -11,9 +11,9 @@
#include "flang/Parser/parse-tree.h"
#include "mlir/IR/BuiltinAttributes.h"
- // For unroll directives without a value, force full unrolling.
- // For unroll directives with a value, if the value is greater than 1,
- // force unrolling with the given factor. Otherwise, disable unrolling.
+// For unroll directives without a value, force full unrolling.
+// For unroll directives with a value, if the value is greater than 1,
+// force unrolling with the given factor. Otherwise, disable unrolling.
static mlir::LLVM::LoopUnrollAttr
genLoopUnrollAttr(mlir::MLIRContext *context,
std::optional<std::uint64_t> directiveArg) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/216769
More information about the Mlir-commits
mailing list