[Mlir-commits] [flang] [mlir] [OpenMP][Flang][MLIR] Introduce omp.declare_simd op and emit from Flang (PR #175604)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jan 12 13:13:50 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,h -- flang/lib/Lower/OpenMP/ClauseProcessor.cpp flang/lib/Lower/OpenMP/ClauseProcessor.h flang/lib/Lower/OpenMP/OpenMP.cpp mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.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/Lower/OpenMP/ClauseProcessor.cpp b/flang/lib/Lower/OpenMP/ClauseProcessor.cpp
index eb24a9d93..46e433d65 100644
--- a/flang/lib/Lower/OpenMP/ClauseProcessor.cpp
+++ b/flang/lib/Lower/OpenMP/ClauseProcessor.cpp
@@ -1722,10 +1722,9 @@ bool ClauseProcessor::processUseDevicePtr(
   return clauseFound;
 }
 
-static void
-addUniformClause(lower::AbstractConverter &converter,
-                 const omp::clause::Uniform &clause,
-                 llvm::SmallVectorImpl<mlir::Value> &uniformVars) {
+static void addUniformClause(lower::AbstractConverter &converter,
+                             const omp::clause::Uniform &clause,
+                             llvm::SmallVectorImpl<mlir::Value> &uniformVars) {
   const auto &objects = clause.v;
   if (!objects.empty())
     genObjectList(objects, converter, uniformVars);
diff --git a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
index b4389d828..fa26282e5 100644
--- a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+++ b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
@@ -4505,7 +4505,7 @@ void DeclareSimdOp::build(OpBuilder &odsBuilder, OperationState &odsState,
                        makeArrayAttr(ctx, clauses.alignments),
                        clauses.linearVars, clauses.linearStepVars,
                        clauses.linearVarTypes, clauses.simdlen,
-                          clauses.uniformVars);
+                       clauses.uniformVars);
 }
 
 LogicalResult DeclareSimdOp::verify() {

``````````

</details>


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


More information about the Mlir-commits mailing list