aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDominik Adamski <dominik.adamski@amd.com>2023-05-09 07:26:09 -0500
committerDominik Adamski <dominik.adamski@amd.com>2023-05-19 05:34:45 -0500
commit6a950422f3bcaf91b26ce6436c6658e503c5c87b (patch)
tree59b762b71324d3e1b5153cd083554de2cfeab522 /clang/lib/CodeGen/CodeGenFunction.cpp
parent0670470a8ded8ece91444722a81a9b02b93dcf4a (diff)
downloadllvm-6a950422f3bcaf91b26ce6436c6658e503c5c87b.zip
llvm-6a950422f3bcaf91b26ce6436c6658e503c5c87b.tar.gz
llvm-6a950422f3bcaf91b26ce6436c6658e503c5c87b.tar.bz2
[OpenMP][MLIR] Add OpenMP version attribute to OMP OffloadModuleInterface
The intent of OpenMP version attribute is to be applied to a module and then hold information on OpenMP version flag. Information about OpenMP version can be specified in Clang by flag -fopenmp-version and it is stored in LLVM-IR module metadata: !llvm.module.flags = !{!0, !1} !0 = !{i32 7, !"openmp", i32 51} !1 = !{i32 7, !"openmp-device", i32 51} OpenMP MLIR version attributes will allow to lower Flang frontend flag to OpenMP MLIR code and then to LLVM IR. There are two OpenMP MLIR version attributes. The first one "omp.version" MLIR attribute corresponds to host OpenMP version. The second one corresponds to "openmp-device" LLVM-IR metadata. "openmp-device" LLVM-IR metadata is attached only for offloaded code. Differential Revision: https://reviews.llvm.org/D150351 Reviewed By: kiranchandramohan
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions