]> granicus.if.org Git - clang/commit
[OPENMP5.0]Add support for device_type clause in declare target
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 23 Aug 2019 16:11:14 +0000 (16:11 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 23 Aug 2019 16:11:14 +0000 (16:11 +0000)
commit3d803c89bce8204d3c25e324477e10b1d4f94418
tree77294230f2fb9e180830b95b0466e7895ead82f6
parenta7124f3f47ecbc73071e6e3e74a4c8508e744523
[OPENMP5.0]Add support for device_type clause in declare target
construct.

OpenMP 5.0 introduced new clause for declare target directive, device_type clause, which may accept values host, nohost, and any. Host means
that the function must be emitted only for the host, nohost - only for
the device, and any - for both, device and the host.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369775 91177308-0d34-0410-b5e6-96231b3b80d8
25 files changed:
include/clang/AST/RecursiveASTVisitor.h
include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Basic/OpenMPKinds.def
include/clang/Basic/OpenMPKinds.h
include/clang/Sema/Sema.h
lib/AST/ASTTypeTraits.cpp
lib/AST/OpenMPClause.cpp
lib/Basic/OpenMPKinds.cpp
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGStmtOpenMP.cpp
lib/CodeGen/CodeGenModule.cpp
lib/Parse/ParseOpenMP.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaOpenMP.cpp
lib/Serialization/ASTReaderDecl.cpp
test/OpenMP/declare_target_ast_print.cpp
test/OpenMP/declare_target_codegen.cpp
test/OpenMP/declare_target_messages.cpp
test/OpenMP/nvptx_allocate_messages.cpp
test/OpenMP/nvptx_asm_delayed_diags.c
test/OpenMP/target_vla_messages.cpp