diff options
author | Samuel Antao <sfantao@us.ibm.com> | 2015-10-02 17:14:03 +0000 |
---|---|---|
committer | Samuel Antao <sfantao@us.ibm.com> | 2015-10-02 17:14:03 +0000 |
commit | 4be30e92dc1a3f2df67d2a03c9b3b1cda55cc5cf (patch) | |
tree | b670ea594cebf892ef2872b7927623e4e19d1db3 /clang/lib/Basic | |
parent | 1f385618c018b57fd0c32e125954c4dc32dfb936 (diff) | |
download | bcm5719-llvm-4be30e92dc1a3f2df67d2a03c9b3b1cda55cc5cf.tar.gz bcm5719-llvm-4be30e92dc1a3f2df67d2a03c9b3b1cda55cc5cf.zip |
[OpenMP] Capture global variables in target regions.
All global variables that are not enclosed in a declare target region
must be captured in the target region as local variables do. Currently,
there is no support for declare target, so this patch adds support for
capturing all the global variables used in a the target region.
llvm-svn: 249154
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r-- | clang/lib/Basic/OpenMPKinds.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Basic/OpenMPKinds.cpp b/clang/lib/Basic/OpenMPKinds.cpp index 28194680b23..7a7557e732d 100644 --- a/clang/lib/Basic/OpenMPKinds.cpp +++ b/clang/lib/Basic/OpenMPKinds.cpp @@ -424,6 +424,10 @@ bool clang::isOpenMPParallelDirective(OpenMPDirectiveKind DKind) { DKind == OMPD_parallel_sections; // TODO add next directives. } +bool clang::isOpenMPTargetDirective(OpenMPDirectiveKind DKind) { + return DKind == OMPD_target; // TODO add next directives. +} + bool clang::isOpenMPTeamsDirective(OpenMPDirectiveKind DKind) { return DKind == OMPD_teams; // TODO add next directives. } |