]> granicus.if.org Git - clang/commit
[OPENMP]Improve detection of omp_allocator_handle_t type and predefined
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 20 Mar 2019 20:14:22 +0000 (20:14 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 20 Mar 2019 20:14:22 +0000 (20:14 +0000)
commitda1812dcb198a84f6c45919e4ba7e0cf035238c8
tree81b7cb2552bbc612130e3216054f39a0b22054c5
parent4f7e7882e9972ec567a0529a38737cb83324c91b
[OPENMP]Improve detection of omp_allocator_handle_t type and predefined
allocators.

It is better to deduce omp_allocator_handle_t type from the predefined
allocators, because omp.h header might not define it explicitly. Plus,
it allows to identify the predefined allocators correctly when trying to
build the allcoator for the global variables.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356607 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Sema/Sema.h
lib/Sema/SemaOpenMP.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriter.cpp
test/OpenMP/allocate_allocator_messages.cpp
test/PCH/chain-openmp-allocate.cpp