diff options
author | Valentin Clement <clementval@gmail.com> | 2020-07-01 20:57:11 -0400 |
---|---|---|
committer | clementval <clementval@gmail.com> | 2020-07-01 20:58:11 -0400 |
commit | 2ddba3082ca79080b14f372ebe4b5bdbc5f694ed (patch) | |
tree | d44440e856afadda2e0f7e864bbbf562fb8ec025 /clang/lib/Basic/OpenMPKinds.cpp | |
parent | aded4f0cc070fcef6763c9a3c2ba764d652b692e (diff) | |
download | llvm-2ddba3082ca79080b14f372ebe4b5bdbc5f694ed.zip llvm-2ddba3082ca79080b14f372ebe4b5bdbc5f694ed.tar.gz llvm-2ddba3082ca79080b14f372ebe4b5bdbc5f694ed.tar.bz2 |
[flang][openmp] Use common Directive and Clause enum from llvm/Frontend
Summary:
This patch is removing the custom enumeration for OpenMP Directives and Clauses and replace them
with the newly tablegen generated one from llvm/Frontend. This is a first patch and some will follow to share the same
infrastructure where possible. The next patch should use the clauses allowance defined in the tablegen file.
Reviewers: jdoerfert, DavidTruby, sscalpone, kiranchandramohan, ichoyjx
Reviewed By: DavidTruby, ichoyjx
Subscribers: jholewinski, cfe-commits, dblaikie, MaskRay, ymandel, ichoyjx, mgorny, yaxunl, guansong, jfb, sstefan1, aaron.ballman, llvm-commits
Tags: #llvm, #flang, #clang
Differential Revision: https://reviews.llvm.org/D82906
Diffstat (limited to 'clang/lib/Basic/OpenMPKinds.cpp')
-rw-r--r-- | clang/lib/Basic/OpenMPKinds.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Basic/OpenMPKinds.cpp b/clang/lib/Basic/OpenMPKinds.cpp index 87d2c4b..cae61ad 100644 --- a/clang/lib/Basic/OpenMPKinds.cpp +++ b/clang/lib/Basic/OpenMPKinds.cpp @@ -178,6 +178,8 @@ unsigned clang::getOpenMPSimpleClauseType(OpenMPClauseKind Kind, case OMPC_uses_allocators: case OMPC_affinity: break; + default: + break; } llvm_unreachable("Invalid OpenMP simple clause kind"); } @@ -427,6 +429,8 @@ const char *clang::getOpenMPSimpleClauseTypeName(OpenMPClauseKind Kind, case OMPC_uses_allocators: case OMPC_affinity: break; + default: + break; } llvm_unreachable("Invalid OpenMP simple clause kind"); } @@ -681,6 +685,7 @@ void clang::getOpenMPCaptureRegions( case OMPD_end_declare_variant: llvm_unreachable("OpenMP Directive is not allowed"); case OMPD_unknown: + default: llvm_unreachable("Unknown OpenMP directive"); } } |