1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/include/llvm/Frontend
sameeran joshi f1474a4f31 [Flang][openmp][2/5] Make Default clause part of OmpClause
After discussion in `D93482` we found that the some of the clauses were not
following the common OmpClause convention.

The benefits of using OmpClause:
- Functionalities from structure checker are mostly aligned to work with
  `llvm::omp::Clause`.
- The unparsing as well can take advantage.
- Homogeneity with OpenACC and rest of the clauses in OpenMP.
- Could even generate the parser with TableGen, when there is homogeneity.
- It becomes confusing when to use `flangClass` and `flangClassValue` inside
  TableGen, if incase we generate parser using TableGen we could have only a
  single `let expression`.

This patch makes `OmpDefaultClause` clause part of `OmpClause`.
The unparse function is dropped as the unparsing is done by `WALK_NESTED_ENUM`
for `OmpDefaultClause`.

Reviewed By: clementval, kiranktp

Differential Revision: https://reviews.llvm.org/D93641
2020-12-22 13:17:44 +05:30
..
Directive [TableGen] Clean up more .td files 2020-11-14 07:32:25 -05:00
OpenACC [openacc] Use TableGen enum for default clause value 2020-12-21 15:07:27 -05:00
OpenMP [Flang][openmp][2/5] Make Default clause part of OmpClause 2020-12-22 13:17:44 +05:30
CMakeLists.txt [flang][openacc] OpenACC 3.0 parser 2020-07-14 14:29:40 -04:00