Add semantic check for the cache directive. According to section 2.10 from the specification:
A var in a cache directive must be a single array element or a simple subarray.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| flang/lib/Semantics/resolve-directives.cpp | ||
|---|---|---|
| 491–501 | Sure, maybe adding something in the semantic check documentation would make sense. What do you think? | |
| flang/test/Semantics/acc-clause-validity.f90 | ||
| 665 | I added couple of tests in that sense arr(1:5)%s is not possible since arr and s are member of t at the same level. | |
| flang/lib/Semantics/resolve-directives.cpp | ||
|---|---|---|
| 491–501 | Ok. Added on my todo list. I'll send this as a separate patch. | |
#just-saying: It will be useful if there is some general guidelines on when to use evaluate::DataRef.