Skip to content
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

Merged
merged 2 commits into from Aug 20, 2019
Merged

[OpenMP] miscellaneous parse tree fix #669

merged 2 commits into from Aug 20, 2019

Conversation

ichoyjx
Copy link
Collaborator

@ichoyjx ichoyjx commented Aug 17, 2019

Happen to see the bug for aligned clause.

Fix aligned(argument-list[ : alignment]) for declare simd.

fix `aligned(argument-list[ : alignment])` for `declare simd`
Copy link
Collaborator

@psteinfeld psteinfeld left a 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!

OmpClauseSet allowed{OmpClause::LINEAR, OmpClause::ALIGNED,
OmpClause::UNIFORM, OmpClause::INBRANCH, OmpClause::NOTINBRANCH};
SetContextAllowed(allowed);
SetContextAllowedOnce(OmpClauseSet{OmpClause::SIMDLEN});
Copy link
Collaborator

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});

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay!

@ichoyjx ichoyjx merged commit f3f50f9 into master Aug 20, 2019
@ichoyjx ichoyjx deleted the by-mp-parser-fix branch August 20, 2019 17:30
peterwaller-arm pushed a commit to peterwaller-arm/f18 that referenced this pull request Dec 5, 2019
Fix `aligned(argument-list[ : alignment])` for `declare simd`

(original implementation will throw parser error if `: alignment` is present.
swift-ci pushed a commit to apple/llvm-project that referenced this pull request Apr 9, 2020
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
mem-frob pushed a commit to draperlaboratory/hope-llvm-project that referenced this pull request Oct 7, 2022
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants