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 | ||
---|---|---|
440–450 | Sure, maybe adding something in the semantic check documentation would make sense. What do you think? | |
flang/test/Semantics/acc-clause-validity.f90 | ||
499 | 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 | ||
---|---|---|
440–450 | 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.