This patch adds semantic checking for the OpenACC 3.0 clauses validity.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
There are couple of things where we could share code with OpenMP. I'm thinking about the OmpContext/AccContext and code around it. If reviewers think it makes sense I'm happy to do this in this patch or in a follow up patch.
Looks great to me! Thanks for this work. Please take a look at my minor comments.
flang/lib/Semantics/canonicalize-acc.cpp | ||
---|---|---|
42 | Can be const, or (better) static, or (best) in parser/tools.h. | |
flang/lib/Semantics/check-acc-structure.cpp | ||
87 | If these are placeholders, please add a comment; otherwise, consider removing them. | |
115 | The nested scopes here aren't necessary. | |
212 | Perhaps this would be more readable as an if statement. | |
449 | // comments are preferred | |
502 | Please add a newline to the end of this source file. |
Thanks for the review. All comments were addressed. Thanks for the parser::Unwrap, didn't know this one.
flang/lib/Semantics/canonicalize-acc.cpp | ||
---|---|---|
42 | Not necessary anymore with parser::Unwrap |
You should be able to simplify this by using parser::Unwrap here. That is,
auto *accLoop{parser::Unwrap<parser::OpenACCLoopConstruct>(*it)