[OPENMP]Allow no allocator clause in target regions with requires
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 22 Mar 2019 15:25:12 +0000 (15:25 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 22 Mar 2019 15:25:12 +0000 (15:25 +0000)
commit318f431beb1898a75d12701871c23785283cfd75
tree55c81fcb1c10f11fa2818d9e81ecb4c98e2be095
parent6f0191a55a53a2ac337914d670fe3f127ac65b70
[OPENMP]Allow no allocator clause in target regions with requires
dynamic_allocators.

According to the OpenMP 5.0, 2.11.3 allocate Directive, Restrictions,
allocate directives that appear in a target region must specify an
allocator clause unless a requires directive with the dynamic_allocators
clause is present in the same compilation unit. Patch adds a check for a
presence of the requires directive with the dynamic_allocators clause.

llvm-svn: 356758
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/nvptx_allocate_messages.cpp