OmpStructureChecker has too much boilerplate code in source file.
This patch:
- Use helpers from check-directive-structure.h and reduces the boilerplate.
- Use TableGen infrastructure as much as possible.
Paths
| Differential D90834
[Flang][OpenMP][NFC][2/2] Reorder OmpStructureChecker and simplify it. ClosedPublic Authored by sameeranjoshi on Nov 5 2020, 3:23 AM.
Details Summary OmpStructureChecker has too much boilerplate code in source file. This patch:
Diff Detail
Event TimelineComment Actions Thanks for moving those to TableGen and common infra. This makes lots of sense. Small comment about the list with comma.
Comment Actions Small style comment
Comment Actions Looks OK to me. Couple of minor comments.
sameeranjoshi added inline comments.
This revision is now accepted and ready to land.Nov 21 2020, 8:25 AM This revision was landed with ongoing or failed builds.Nov 21 2020, 9:08 AM Closed by commit rG1df8fa78e652: [Flang][OpenMP][NFC][2/2] Reorder OmpStructureChecker and simplify it. (authored by sameeranjoshi). · Explain Why This revision was automatically updated to reflect the committed changes. sameeranjoshi marked 2 inline comments as done.
Revision Contents
Diff 306852 flang/lib/Semantics/check-omp-structure.h
flang/lib/Semantics/check-omp-structure.cpp
flang/test/Semantics/omp-clause-validity01.f90
flang/test/Semantics/omp-combined-constructs.f90
flang/test/Semantics/omp-device-constructs.f90
llvm/include/llvm/Frontend/OpenMP/OMP.td
|
Nit: Should there be a line before the namespace?