[flang-commits] [flang] [flang][cuda] Avoid to issue data transfer in device context (PR #90247)

via flang-commits flang-commits at lists.llvm.org
Fri Apr 26 13:05:03 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 451e853e512ba6fca51f0743ffa24d252f7fc633 788b9f9d744dc20b750afc13826303e5ebbbeb1f -- flang/lib/Lower/Bridge.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/lib/Lower/Bridge.cpp b/flang/lib/Lower/Bridge.cpp
index eb1660a706..c05bf010b2 100644
--- a/flang/lib/Lower/Bridge.cpp
+++ b/flang/lib/Lower/Bridge.cpp
@@ -3818,8 +3818,8 @@ private:
       if (auto cudaProcAttr =
               funcOp.getOperation()->getAttrOfType<fir::CUDAProcAttributeAttr>(
                   fir::getCUDAAttrName())) {
-        return cudaProcAttr.getValue() != fir::CUDAProcAttribute::Host
-          && cudaProcAttr.getValue() != fir::CUDAProcAttribute::HostDevice;
+        return cudaProcAttr.getValue() != fir::CUDAProcAttribute::Host &&
+               cudaProcAttr.getValue() != fir::CUDAProcAttribute::HostDevice;
       }
     }
     return false;

``````````

</details>


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


More information about the flang-commits mailing list