summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2016-03-30 10:43:55 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2016-03-30 10:43:55 +0000
commit587e1de4ea2af5a01f5d53647201c974a8fea1f2 (patch)
treeb792d7e01dbfff2d4cc77d4e4a50dc4ffae8c6ff /clang/lib/Basic
parent8e46cd05a17c0499f744a85f8ef905cafb47eb3e (diff)
downloadbcm5719-llvm-587e1de4ea2af5a01f5d53647201c974a8fea1f2.tar.gz
bcm5719-llvm-587e1de4ea2af5a01f5d53647201c974a8fea1f2.zip
[OPENMP 4.0] Initial support for '#pragma omp declare simd' directive.
Initial parsing/sema/serialization/deserialization support for '#pragma omp declare simd' directive. The 'declare simd' construct can be applied to a function to enable the creation of one or more versions that can process multiple arguments using SIMD instructions from a single invocation from a SIMD loop. If the function has any declarations, then the declare simd construct for any declaration that has one must be equivalent to the one specified for the definition. Otherwise, the result is unspecified. This pragma can be applied many times to the same declaration. Internally this pragma is represented as an attribute. But we need special processing for this pragma because it must be used before function declaration, this directive is applied to. Differential Revision: http://reviews.llvm.org/D10599 llvm-svn: 264853
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r--clang/lib/Basic/OpenMPKinds.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Basic/OpenMPKinds.cpp b/clang/lib/Basic/OpenMPKinds.cpp
index 3b5bc56036b..fa40d016c9e 100644
--- a/clang/lib/Basic/OpenMPKinds.cpp
+++ b/clang/lib/Basic/OpenMPKinds.cpp
@@ -485,6 +485,8 @@ bool clang::isAllowedClauseForDirective(OpenMPDirectiveKind DKind,
break;
}
break;
+ case OMPD_declare_simd:
+ break;
case OMPD_cancel:
switch (CKind) {
#define OPENMP_CANCEL_CLAUSE(Name) \
OpenPOWER on IntegriCloud