Add semantic check for most of the restrictions for the declare directive.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks for the patch.
A few comments below.
I came to know quite a few new things from Flang code base.
- How to check scoping.
- Given an ObjectList or similar representation how to extract symbol and use interfaces from tools.h.
flang/lib/Semantics/resolve-directives.cpp | ||
---|---|---|
117–120 | Trying to understand- not a blocking review comment. | |
467 | Possibly a bug. | |
487 | I see in my OACC 3.1 copy create clause as one of them in the list. | |
496 | Do you need somewhere the index into standard for this? | |
497 | Are checks from line 2410-2411 and 2412-2413 from OACC 3.1 missing or are handled somewhere else in previous patches ? | |
flang/test/Semantics/acc-declare-validity.f90 | ||
53–55 | Any plans to add these ? |
Thanks for the review. Did not see it before for some reason. I made some update to the patch.
flang/lib/Semantics/resolve-directives.cpp | ||
---|---|---|
117–120 | Yeah the Walk is already handled by the Visitor class inherited by the DirectiveAttributeVisitor | |
467 | Good catch! | |
487 | Added it. | |
497 | Those are not yet implemented and will be done in a separate patch. |
Trying to understand- not a blocking review comment.
The Walk should be handled in some tree-visitor files and not here, is my understanding correct?