[Mlir-commits] [flang] [mlir] [flang][mlir][OpenMP] Add support for uniform clause in declare simd (PR #176046)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jan 14 14:20:55 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 h,cpp -- 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/OpenMP.cpp b/flang/lib/Lower/OpenMP/OpenMP.cpp
index 14ec45f5c..b428d8bb3 100644
--- a/flang/lib/Lower/OpenMP/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP/OpenMP.cpp
@@ -3855,11 +3855,10 @@ genOMP(lower::AbstractConverter &converter, lower::SymMap &symTable,
mlir::ArrayAttr alignments;
if (!clauseOps.alignments.empty())
alignments = mlir::ArrayAttr::get(ctx, clauseOps.alignments);
- mlir::omp::DeclareSimdOp::create(firOpBuilder, loc, clauseOps.alignedVars,
- alignments, clauseOps.linearVars,
- clauseOps.linearStepVars,
- clauseOps.linearVarTypes, clauseOps.simdlen,
- clauseOps.uniformVars);
+ mlir::omp::DeclareSimdOp::create(
+ firOpBuilder, loc, clauseOps.alignedVars, alignments,
+ clauseOps.linearVars, clauseOps.linearStepVars, clauseOps.linearVarTypes,
+ clauseOps.simdlen, clauseOps.uniformVars);
}
static void genOpenMPDeclareMapperImpl(
``````````
</details>
https://github.com/llvm/llvm-project/pull/176046
More information about the Mlir-commits
mailing list