aboutsummaryrefslogtreecommitdiff
path: root/flang
diff options
context:
space:
mode:
authorPranav Bhandarkar <153014763+bhandarkar-pranav@users.noreply.github.com>2024-02-13 05:15:51 -0600
committerGitHub <noreply@github.com>2024-02-13 11:15:51 +0000
commit55d6643ccf6f9394d88d3d6359492000c58c2357 (patch)
tree84ec020eb8366294dfc37dcc2f8a69d9302f62f5 /flang
parent8456e0c290f759807023924481712767a19464c2 (diff)
downloadllvm-55d6643ccf6f9394d88d3d6359492000c58c2357.zip
llvm-55d6643ccf6f9394d88d3d6359492000c58c2357.tar.gz
llvm-55d6643ccf6f9394d88d3d6359492000c58c2357.tar.bz2
[mlir][openmp] - Add the depend clause to omp.target and related offloading directives (#81081)
This patch adds support for the depend clause in a number of OpenMP directives/constructs related to offloading. Specifically, it adds the handling of the depend clause when it is used with the following constructs - target - target enter data - target update data - target exit data
Diffstat (limited to 'flang')
-rw-r--r--flang/lib/Lower/OpenMP.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp
index e588762..06850be 100644
--- a/flang/lib/Lower/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP.cpp
@@ -2825,7 +2825,8 @@ genEnterExitUpdateDataOp(Fortran::lower::AbstractConverter &converter,
directive);
return firOpBuilder.create<OpTy>(currentLocation, ifClauseOperand,
- deviceOperand, nowaitAttr, mapOperands);
+ deviceOperand, nullptr, mlir::ValueRange(),
+ nowaitAttr, mapOperands);
}
// This functions creates a block for the body of the targetOp's region. It adds
@@ -3090,7 +3091,7 @@ genTargetOp(Fortran::lower::AbstractConverter &converter,
auto targetOp = converter.getFirOpBuilder().create<mlir::omp::TargetOp>(
currentLocation, ifClauseOperand, deviceOperand, threadLimitOperand,
- nowaitAttr, mapOperands);
+ nullptr, mlir::ValueRange(), nowaitAttr, mapOperands);
genBodyOfTargetOp(converter, semaCtx, eval, genNested, targetOp, mapSymTypes,
mapSymLocs, mapSymbols, currentLocation);