[OPENMP 4.0] Support for 'linear' clause in 'declare simd' directive.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 12 Apr 2016 11:02:11 +0000 (11:02 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 12 Apr 2016 11:02:11 +0000 (11:02 +0000)
commitecba70f194b556ca03df28bfc943878611f12e7a
treee3cc5ced73eb7acd5a5b6824d3594e7a5c1095bc
parent703c864fe3a15c5d35c5f09b78a152f9809b833e
[OPENMP 4.0] Support for 'linear' clause in 'declare simd' directive.

The linear clause declares one or more list items to be private to a SIMD lane and to have a linear relationship with respect to the iteration space of a loop.
'linear' '(' <linear-list> [ ':' <linear-step> ] ')'
When a linear-step expression is specified in a linear clause it must be
either a constant integer expression or an integer-typed parameter that is specified in a uniform clause on the directive.
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: 266056
clang/include/clang/AST/Attr.h
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