]> granicus.if.org Git - clang/commit
Allow constant expressions in pragma loop hints.
authorTyler Nowicki <tyler.nowicki@gmail.com>
Sun, 12 Oct 2014 20:46:07 +0000 (20:46 +0000)
committerTyler Nowicki <tyler.nowicki@gmail.com>
Sun, 12 Oct 2014 20:46:07 +0000 (20:46 +0000)
commit41d599b9c79b20a0fdf0b334c99b59af575f64d4
tree6bd6143104d03e67df9feddd8a9e3b02666c0ed0
parent673b3960bb51f96f48d9690e6e3d419a0632c6f9
Allow constant expressions in pragma loop hints.

Previously loop hints such as #pragma loop vectorize_width(#) required a constant. This patch allows a constant expression to be used as well. Such as a non-type template parameter or an expression (2 * c + 1).

Reviewed by Richard Smith

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219589 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
include/clang/AST/Attr.h
include/clang/Basic/Attr.td
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/CodeGen/CGStmt.cpp
lib/Parse/ParsePragma.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaStmtAttr.cpp
lib/Sema/SemaTemplateInstantiate.cpp
lib/Sema/TreeTransform.h
test/CodeGen/pragma-loop.cpp
test/Misc/ast-print-pragmas.cpp
test/PCH/pragma-loop.cpp
test/Parser/pragma-loop.cpp
test/Parser/pragma-unroll.cpp
utils/TableGen/ClangAttrEmitter.cpp