[flang-commits] [flang] [mlir] [Flang][OpenMP][Lower] Split MLIR codegen for clauses and constructs (PR #86963)
via flang-commits
flang-commits at lists.llvm.org
Fri Apr 12 06:55:10 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 33779b861d748ed18b8d4f9cbad3a84deaa95e9f 299087fcdad0f2374fd157d4f17fd4d9141b9fcc -- flang/lib/Lower/OpenMP/ClauseProcessor.cpp flang/lib/Lower/OpenMP/ClauseProcessor.h flang/lib/Lower/OpenMP/OpenMP.cpp
``````````
</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 1e7b91ff1c..867bfda584 100644
--- a/flang/lib/Lower/OpenMP/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP/OpenMP.cpp
@@ -1293,7 +1293,8 @@ static void genTargetClauses(
cp.processTODO<clause::Allocate, clause::Defaultmap, clause::Firstprivate,
clause::InReduction, clause::Private, clause::Reduction,
- clause::UsesAllocators>(loc, llvm::omp::Directive::OMPD_target);
+ clause::UsesAllocators>(loc,
+ llvm::omp::Directive::OMPD_target);
}
static void genTargetDataClauses(
@@ -1704,13 +1705,15 @@ genTargetOp(Fortran::lower::AbstractConverter &converter,
.getIsTargetDevice();
mlir::omp::TargetClauseOps clauseOps;
- llvm::SmallVector<const Fortran::semantics::Symbol *> mapSyms, devicePtrSyms, deviceAddrSyms;
+ llvm::SmallVector<const Fortran::semantics::Symbol *> mapSyms, devicePtrSyms,
+ deviceAddrSyms;
llvm::SmallVector<mlir::Location> mapLocs, devicePtrLocs, deviceAddrLocs;
llvm::SmallVector<mlir::Type> mapTypes, devicePtrTypes, deviceAddrTypes;
genTargetClauses(converter, semaCtx, stmtCtx, clauseList, loc,
processHostOnlyClauses, /*processReduction=*/outerCombined,
- clauseOps, mapSyms, mapLocs, mapTypes, deviceAddrSyms, deviceAddrLocs, deviceAddrTypes,
- devicePtrSyms, devicePtrLocs, devicePtrTypes);
+ clauseOps, mapSyms, mapLocs, mapTypes, deviceAddrSyms,
+ deviceAddrLocs, deviceAddrTypes, devicePtrSyms,
+ devicePtrLocs, devicePtrTypes);
// 5.8.1 Implicit Data-Mapping Attribute Rules
// The following code follows the implicit data-mapping rules to map all the
``````````
</details>
https://github.com/llvm/llvm-project/pull/86963
More information about the flang-commits
mailing list