[flang-commits] [flang] [flang][runtime] Added noinline for some functions in device build. (PR #93128)
via flang-commits
flang-commits at lists.llvm.org
Wed May 22 20:20:06 PDT 2024
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 8be079cdddfd628d356d9ddb5ab397ea95fb1030 b0e7f8c7abe2a1f6e0661bad4d47a21ea98f07c4 -- flang/include/flang/Common/api-attrs.h flang/include/flang/Common/visit.h flang/runtime/terminator.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/include/flang/Common/visit.h b/flang/include/flang/Common/visit.h
index 6d51e47522..ad66297650 100644
--- a/flang/include/flang/Common/visit.h
+++ b/flang/include/flang/Common/visit.h
@@ -68,9 +68,9 @@ RT_DEVICE_NOINLINE_HOST_INLINE RT_API_ATTRS RESULT Log2VisitHelper(
}
template <typename VISITOR, typename... VARIANT>
-RT_DEVICE_NOINLINE_HOST_INLINE RT_API_ATTRS auto visit(
- VISITOR &&visitor, VARIANT &&...u)
- -> decltype(visitor(std::get<0>(std::forward<VARIANT>(u))...)) {
+RT_DEVICE_NOINLINE_HOST_INLINE RT_API_ATTRS auto
+visit(VISITOR &&visitor, VARIANT &&...u) -> decltype(visitor(std::get<0>(
+ std::forward<VARIANT>(u))...)) {
using Result = decltype(visitor(std::get<0>(std::forward<VARIANT>(u))...));
if constexpr (sizeof...(u) == 1) {
static constexpr std::size_t high{
``````````
</details>
https://github.com/llvm/llvm-project/pull/93128
More information about the flang-commits
mailing list