[Mlir-commits] [mlir] [mlir][acc] Support lazy remark message construction (PR #180665)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Feb 9 18:01:03 PST 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/Analysis/OpenACCSupport.h mlir/include/mlir/Dialect/OpenACC/OpenACCUtils.h mlir/lib/Dialect/OpenACC/Analysis/OpenACCSupport.cpp mlir/lib/Dialect/OpenACC/Transforms/ACCLoopTiling.cpp mlir/lib/Dialect/OpenACC/Utils/OpenACCUtils.cpp mlir/unittests/Dialect/OpenACC/OpenACCUtilsTest.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/Analysis/OpenACCSupport.h b/mlir/include/mlir/Dialect/OpenACC/Analysis/OpenACCSupport.h
index 6cceb704b..31ef05c2f 100644
--- a/mlir/include/mlir/Dialect/OpenACC/Analysis/OpenACCSupport.h
+++ b/mlir/include/mlir/Dialect/OpenACC/Analysis/OpenACCSupport.h
@@ -249,9 +249,10 @@ public:
   remark::detail::InFlightRemark
   emitRemark(Operation *op, const Twine &message,
              llvm::StringRef category = "openacc") {
-    return emitRemark(
-        op, std::function<std::string()>([msg = message.str()]() { return msg; }),
-        category);
+    return emitRemark(op, std::function<std::string()>([msg = message.str()]() {
+                        return msg;
+                      }),
+                      category);
   }
 
   /// Check if a symbol use is valid for use in an OpenACC region.

``````````

</details>


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


More information about the Mlir-commits mailing list