aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorValentin Clement <clementval@gmail.com>2021-05-12 11:41:03 -0400
committerclementval <clementval@gmail.com>2021-05-12 13:41:14 -0400
commit113b807017847f7d9e79db724f09968b51459cf0 (patch)
tree927a0f8efac1eb5535bdf997c1e44fe196b149d2 /clang/lib/Frontend/CompilerInvocation.cpp
parent81f56a2eb3797eb5be61d65a8f7d7e19456e67d1 (diff)
downloadllvm-113b807017847f7d9e79db724f09968b51459cf0.zip
llvm-113b807017847f7d9e79db724f09968b51459cf0.tar.gz
llvm-113b807017847f7d9e79db724f09968b51459cf0.tar.bz2
[mlir][openacc] Add OpenACC translation to LLVM IR (enter_data op create/copyin)
This patch begins to translate acc.enter_data operation to call to tgt runtime call. It currently only translate create/copyin operands of memref type. This acts as a basis to add support for FIR types in the Flang/OpenACC support. It follows more or less a similar path than clang with `omp target enter data map` directives. This patch is taking a different approach than D100678 and perform a translation to LLVM IR and make use of the OpenMPIRBuilder instead of doing a conversion to the LLVMIR dialect. OpenACC support in Flang will rely on the current OpenMP runtime where 1:1 lowering can be applied. Some extension will be added where features are not available yet. Big part of this code will be shared for other standalone data operations in the OpenACC dialect such as acc.exit_data and acc.update. It is likely that parts of the lowering can also be shared later with the ops for standalone data directives in the OpenMP dialect when they are introduced. This is an initial translation and it probably needs more work. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D101504
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions