Skip to content
Snippets Groups Projects
  • Tyler Nowicki's avatar
    a05fb8f4
    Add a state variable to the loop hint attribute. · a05fb8f4
    Tyler Nowicki authored
    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
    a05fb8f4
    History
    Add a state variable to the loop hint attribute.
    Tyler Nowicki authored
    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
Code owners
Assign users and groups as approvers for specific file changes. Learn more.