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 | ||
---|---|---|
116–117 | Trying to understand- not a blocking review comment. | |
484 | Possibly a bug. | |
504 | I see in my OACC 3.1 copy create clause as one of them in the list. | |
513 | Do you need somewhere the index into standard for this? | |
514 | 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 | ||
54–56 | 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 | ||
---|---|---|
116–117 | Yeah the Walk is already handled by the Visitor class inherited by the DirectiveAttributeVisitor | |
484 | Good catch! | |
504 | Added it. | |
514 | 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?