This patch is a follow up to D94821 to ensure the correct behavior of the
general directive structure checker.
This patch add the generation of the Enter function declaration for clauses in
the TableGen backend.
This helps to ensure each clauses declared in the TableGen file has at least
a basic check.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM. A few suggestions. Feel free to skip or submit with changes.
flang/lib/Semantics/check-omp-structure.cpp | ||
---|---|---|
475 | Not of this patch but Nit: seperate -> separate. | |
475 | Looks like you have captured more clauses here. Great! | |
flang/lib/Semantics/check-omp-structure.h | ||
134–141 | Can these be moved above the clauses? | |
llvm/utils/TableGen/DirectiveEmitter.cpp | ||
637 | Nit: I don't like the name. Also we are only generating the declaration. Would you be OK with GenerateFlangClauseCheckPrototypes? In the comment along it can be mentioned that the checks happen in the Enter stage during traversal. |
Can these be moved above the clauses?