diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2016-03-30 10:43:55 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2016-03-30 10:43:55 +0000 |
commit | 587e1de4ea2af5a01f5d53647201c974a8fea1f2 (patch) | |
tree | b792d7e01dbfff2d4cc77d4e4a50dc4ffae8c6ff /clang/lib/Parse/ParseDecl.cpp | |
parent | 8e46cd05a17c0499f744a85f8ef905cafb47eb3e (diff) | |
download | bcm5719-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/Parse/ParseDecl.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index fef5d8d4441..84204aadb18 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -3654,8 +3654,10 @@ void Parser::ParseStructUnionBody(SourceLocation RecordLoc, } if (Tok.is(tok::annot_pragma_openmp)) { - // There may be declared reduction operator inside structure/union. - (void)ParseOpenMPDeclarativeDirective(AS_public); + // Result can be ignored, because it must be always empty. + AccessSpecifier AS = AS_none; + ParsedAttributesWithRange Attrs(AttrFactory); + (void)ParseOpenMPDeclarativeDirectiveWithExtDecl(AS, Attrs); continue; } |