Starting with OpenMP 5.2 the map type on target enter/exit data can be elided. When the map type is not specified it defaults to to for target enter data and to from for target exit data.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D138297
[Clang][OpenMP] Add default map type for target enter/exit data ClosedPublic Authored by doru1004 on Nov 18 2022, 7:21 AM.
Details Summary Starting with OpenMP 5.2 the map type on target enter/exit data can be elided. When the map type is not specified it defaults to to for target enter data and to from for target exit data.
Diff Detail Event Timeline
This revision is now accepted and ready to land.Nov 18 2022, 12:20 PM
Revision Contents
Diff 476463 clang/lib/Parse/ParseOpenMP.cpp
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/target_enter_data_ast_print.cpp
clang/test/OpenMP/target_enter_data_ast_print_openmp52.cpp
clang/test/OpenMP/target_exit_data_ast_print.cpp
clang/test/OpenMP/target_exit_data_ast_print_openmp52.cpp
|
Add braces, otherwise the compiler generates a warning