]> granicus.if.org Git - clang/commit
[OpenMP] Support for the num_threads-clause on 'target parallel'.
authorArpith Chacko Jacob <acjacob@us.ibm.com>
Wed, 25 Jan 2017 00:57:16 +0000 (00:57 +0000)
committerArpith Chacko Jacob <acjacob@us.ibm.com>
Wed, 25 Jan 2017 00:57:16 +0000 (00:57 +0000)
commit440f37958ebf3da5bd5338ec121fe21bd0990ac4
treef94363089fe4cc6efb4208b33d40d57ca360cbe1
parent0e1da5f9afe8b9fc5bd6554059956ae604e9e863
[OpenMP] Support for the num_threads-clause on 'target parallel'.

The num_threads-clause on the combined directive applies to the
'parallel' region of this construct. We modify the NumThreadsClause
class to capture the clause expression within the 'target' region.

The offload runtime call for 'target parallel' is changed to
__tgt_target_teams() with 1 team and the number of threads set by
this clause or a default if none.

Reviewers: ABataev
Differential Revision: https://reviews.llvm.org/D29082

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@292997 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/clang/AST/OpenMPClause.h
include/clang/AST/RecursiveASTVisitor.h
lib/AST/OpenMPClause.cpp
lib/AST/StmtProfile.cpp
lib/CodeGen/CGOpenMPRuntime.cpp
lib/Sema/SemaOpenMP.cpp
lib/Serialization/ASTReaderStmt.cpp
lib/Serialization/ASTWriterStmt.cpp
test/OpenMP/target_parallel_codegen.cpp
test/OpenMP/target_parallel_if_codegen.cpp
test/OpenMP/target_parallel_num_threads_codegen.cpp [new file with mode: 0644]
tools/libclang/CIndex.cpp