[OPENMP] Allow 'use_device_ptr' clause in 'target data' alone.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 30 May 2017 16:00:04 +0000 (16:00 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 30 May 2017 16:00:04 +0000 (16:00 +0000)
commit95b64a982694b183890d902bc5cc76827fb09679
tree05df87f7c3202edb9708eafdefc5780fc71648fe
parentf6d4dc5b4a0c63e85273350b39bcf1e7647b1419
[OPENMP] Allow 'use_device_ptr' clause in 'target data' alone.

According to OpenMP 5.0 at least one 'map' or 'use_device_ptr' clause
must be specified for 'target data' construct. Patch adds support for
this feature.

llvm-svn: 304216
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/target_data_messages.c
clang/test/OpenMP/target_enter_data_map_messages.c
clang/test/OpenMP/target_enter_data_nowait_messages.cpp
clang/test/OpenMP/target_exit_data_map_messages.c
clang/test/OpenMP/target_exit_data_nowait_messages.cpp
clang/test/OpenMP/target_map_messages.cpp
clang/test/OpenMP/target_teams_map_messages.cpp