]> granicus.if.org Git - clang/commit
Add a state variable to the loop hint attribute.
authorTyler Nowicki <tnowicki@apple.com>
Thu, 31 Jul 2014 20:15:14 +0000 (20:15 +0000)
committerTyler Nowicki <tnowicki@apple.com>
Thu, 31 Jul 2014 20:15:14 +0000 (20:15 +0000)
commita05fb8f439db27fe7d5a254f3f5ce2640b9092c7
tree99d7fd1d173ab8688c221f2d57419009b0902460
parentb567f63bf385a77f20f3118e9eb28734ba9f7cdd
Add a state variable to the loop hint attribute.

This patch is necessary to support constant expressions which replaces the integer value in the loop hint attribute with an expression. The integer value was also storing the pragma’s state for options like vectorize(enable/disable) and the pragma unroll and nounroll directive. The state variable is introduced to hold the state of those options/pragmas. This moves the validation of the state (keywords) from SemaStmtAttr handler to the loop hint annotation token handler.

Resubmit with changes to try to fix the build-bot issue.

Reviewed by Aaron Ballman

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214432 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Parse/Parser.h
include/clang/Sema/LoopHint.h
lib/CodeGen/CGStmt.cpp
lib/Parse/ParsePragma.cpp
lib/Parse/ParseStmt.cpp
lib/Sema/SemaStmtAttr.cpp
test/Parser/pragma-loop.cpp