[flang][directive] Get rid of flangClassValue in TableGen
authorValentin Clement <clementval@gmail.com>
Tue, 19 Jan 2021 15:28:09 +0000 (10:28 -0500)
committerclementval <clementval@gmail.com>
Tue, 19 Jan 2021 15:28:46 +0000 (10:28 -0500)
commit6bd0a4451ccd4a5cbab1f735052edbcafcb856ea
tree529fd023f5c0fac6cab7b536a99050442dbcdac6
parent909d6c86eae32ef350ac35ba8564ed728544ac63
[flang][directive] Get rid of flangClassValue in TableGen

The TableGen emitter for directives has two slots for flangClass information and this was mainly
to be able to keep up with the legacy openmp parser at the time. Now that all clauses are encapsulated in
AccClause or OmpClause, these two strings are not necessary anymore and were the the source of couple
of problem while working with the generic structure checker for OpenMP.
This patch remove the flangClassValue string from DirectiveBase.td and use the string flangClass as the
placeholder for the encapsulated class.

Reviewed By: sameeranjoshi

Differential Revision: https://reviews.llvm.org/D94821
flang/lib/Lower/OpenMP.cpp
flang/lib/Parser/openmp-parsers.cpp
flang/lib/Parser/unparse.cpp
flang/lib/Semantics/check-omp-structure.cpp
llvm/include/llvm/Frontend/Directive/DirectiveBase.td
llvm/include/llvm/Frontend/OpenACC/ACC.td
llvm/include/llvm/Frontend/OpenMP/OMP.td
llvm/include/llvm/TableGen/DirectiveEmitter.h
llvm/test/TableGen/directive1.td
llvm/test/TableGen/directive2.td
llvm/utils/TableGen/DirectiveEmitter.cpp