[OPENMP 4.0] Support for 'aligned' clause in 'declare simd' directive.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 12 Apr 2016 09:35:56 +0000 (09:35 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 12 Apr 2016 09:35:56 +0000 (09:35 +0000)
commitd93d376ba9c9f2443f3bdd61e43e7b09b762ad24
tree483e9beb248cea3f008785cf153b4987b5ae3fc5
parent65f86cd8b09b15e6ba531309325750d1a3f4af7c
[OPENMP 4.0] Support for 'aligned' clause in 'declare simd' directive.

The aligned clause declares that the object to which each list item points is aligned to the number of bytes expressed in the optional parameter of the aligned clause.
'aligned' '(' <argument-list> [ ':' <alignment> ] ')'
The optional parameter of the aligned clause, alignment, must be a constant positive integer expression. If no optional parameter is specified, implementation-defined default alignments for SIMD instructions on the target platforms are assumed.
The special this pointer can be used as if was one of the arguments to the function in any of the linear, aligned, or uniform clauses.

llvm-svn: 266052
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/Sema.h
clang/lib/Parse/ParseOpenMP.cpp
clang/lib/Sema/SemaOpenMP.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/OpenMP/declare_simd_ast_print.c
clang/test/OpenMP/declare_simd_ast_print.cpp
clang/test/OpenMP/declare_simd_messages.cpp