[flang-commits] [flang] [Flang][OpenMP] Minimize host ops remaining in device compilation (PR #137200)
via flang-commits
flang-commits at lists.llvm.org
Wed Jan 21 04:49:09 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 cpp -- flang/lib/Optimizer/OpenMP/FunctionFiltering.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/Optimizer/OpenMP/FunctionFiltering.cpp b/flang/lib/Optimizer/OpenMP/FunctionFiltering.cpp
index 33b8d8da2..5050d1e23 100644
--- a/flang/lib/Optimizer/OpenMP/FunctionFiltering.cpp
+++ b/flang/lib/Optimizer/OpenMP/FunctionFiltering.cpp
@@ -40,8 +40,8 @@ using namespace mlir;
/// the preferred location for these types of checks is), and it only checks for
/// features that have not been implemented for target offload, but are
/// supported on host execution.
-static void checkDeviceImplementationStatus(
- omp::OffloadModuleInterface offloadModule) {
+static void
+checkDeviceImplementationStatus(omp::OffloadModuleInterface offloadModule) {
if (!offloadModule.getIsGPU())
return;
``````````
</details>
https://github.com/llvm/llvm-project/pull/137200
More information about the flang-commits
mailing list