-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[flang][llvm][openmp]Add Initializer clause to OMP.td #129540
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -231,6 +231,7 @@ using Inbranch = tomp::clause::InbranchT<TypeTy, IdTy, ExprTy>; | |
| using Inclusive = tomp::clause::InclusiveT<TypeTy, IdTy, ExprTy>; | ||
| using Indirect = tomp::clause::IndirectT<TypeTy, IdTy, ExprTy>; | ||
| using Init = tomp::clause::InitT<TypeTy, IdTy, ExprTy>; | ||
| using Initializer = tomp::clause::InitT<TypeTy, IdTy, ExprTy>; | ||
|
||
| using InReduction = tomp::clause::InReductionT<TypeTy, IdTy, ExprTy>; | ||
| using IsDevicePtr = tomp::clause::IsDevicePtrT<TypeTy, IdTy, ExprTy>; | ||
| using Lastprivate = tomp::clause::LastprivateT<TypeTy, IdTy, ExprTy>; | ||
|
|
||
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.
Could you make this optional, and use
maybe(Parser<OmpClauseList>)for this? This scheme (i.e. "lists are nonempty, otherwise std::nullopt") is used across the OpenMP parsers, plus empty lists are harder to deal with (the empty list parser will always succeed).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.
Makes sense. So done.