[flang-commits] [flang] [mlir] [Flang][MLIR][OpenMP] Move function filtering to the omp dialect (PR #214182)

via flang-commits flang-commits at lists.llvm.org
Wed Aug 5 03:21:04 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 -- flang/lib/Optimizer/OpenMP/UnimplementedDeviceCheck.cpp mlir/lib/Dialect/OpenMP/Transforms/FunctionFiltering.cpp flang/lib/Optimizer/Passes/Pipelines.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/lib/Dialect/OpenMP/Transforms/FunctionFiltering.cpp b/mlir/lib/Dialect/OpenMP/Transforms/FunctionFiltering.cpp
index 80ff84079..1d4eaaa0f 100644
--- a/mlir/lib/Dialect/OpenMP/Transforms/FunctionFiltering.cpp
+++ b/mlir/lib/Dialect/OpenMP/Transforms/FunctionFiltering.cpp
@@ -84,7 +84,7 @@ class FunctionFilteringPass
           for (Value res : callOp->getResults()) {
             opBuilder.setInsertionPoint(callOp);
             poisonResults.emplace_back(
-              LLVM::PoisonOp::create(opBuilder, res.getLoc(), res.getType()));
+                LLVM::PoisonOp::create(opBuilder, res.getLoc(), res.getType()));
           }
           callOp->replaceAllUsesWith(poisonResults);
         }

``````````

</details>


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


More information about the flang-commits mailing list