New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OpenMP] miscellaneous parse tree fix #669
Conversation
fix `aligned(argument-list[ : alignment])` for `declare simd`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
lib/semantics/check-omp-structure.cc
Outdated
OmpClauseSet allowed{OmpClause::LINEAR, OmpClause::ALIGNED, | ||
OmpClause::UNIFORM, OmpClause::INBRANCH, OmpClause::NOTINBRANCH}; | ||
SetContextAllowed(allowed); | ||
SetContextAllowedOnce(OmpClauseSet{OmpClause::SIMDLEN}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line could just be:
SetContextAllowedOnce({OmpClause::SIMDLEN});
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay!
Fix `aligned(argument-list[ : alignment])` for `declare simd` (original implementation will throw parser error if `: alignment` is present.
Fix `aligned(argument-list[ : alignment])` for `declare simd` (original implementation will throw parser error if `: alignment` is present. Original-commit: flang-compiler/f18@f3f50f9 Reviewed-on: flang-compiler/f18#669
Fix `aligned(argument-list[ : alignment])` for `declare simd` (original implementation will throw parser error if `: alignment` is present. Original-commit: flang-compiler/f18@f3f50f9 Reviewed-on: flang-compiler/f18#669
Happen to see the bug for
aligned
clause.Fix
aligned(argument-list[ : alignment])
fordeclare simd
.