- Generate the mapping for clauses between the parser class and the corresponding clause kind for OpenMP and OpenACC using tablegen.
2, Add a common function to get the OmpObjectList from the OpenMP clauses to avoid repetition of code.
Paths
| Differential D98603
[Flang] [OpenMP] Add function for mapping OpenMP Parser clause classes with the corresponding clause kind ClosedPublic Authored by praveen on Mar 14 2021, 9:49 AM.
Details Summary
2, Add a common function to get the OmpObjectList from the OpenMP clauses to avoid repetition of code.
Diff Detail Event TimelineComment Actions LGTM. Thanks for working on that. I'll probably make use of this in the OpenACC part where it makes sense.
This revision is now accepted and ready to land.Mar 15 2021, 10:56 AM
Comment Actions @kiranchandramohan @clementval Thanks for the review . I have updated the test case for the Tablegen changes. The clang-tidy seems to identify the case style as invalid for this function name GenerateFlangClauseParserKindMap
Comment Actions
Don't worry about this. All other TableGen backend follows this naming convention that's why we did it too. Comment Actions
Thanks for the clarification. Will push the patch. This revision was landed with ongoing or failed builds.Mar 16 2021, 11:53 PM Closed by commit rG1d7960a601fc: [Flang][OpenMP][OpenACC] Add function for mapping parser clause classes with… (authored by praveen). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 331043 flang/lib/Semantics/check-omp-structure.h
flang/lib/Semantics/check-omp-structure.cpp
llvm/test/TableGen/directive1.td
llvm/utils/TableGen/DirectiveEmitter.cpp
|
Nit: extra space?