diff options
author | Kelvin Li <kkwli0@gmail.com> | 2016-08-05 14:37:37 +0000 |
---|---|---|
committer | Kelvin Li <kkwli0@gmail.com> | 2016-08-05 14:37:37 +0000 |
commit | 231f2fcd9fd01e866bc1ff41a18061b3ad211b52 (patch) | |
tree | d8d1d8675e912a3417d5a472d48318fd007b24af /include/clang/Basic/OpenMPKinds.def | |
parent | 0cfb8c87dfc0a8366d6db83f93aa50e9514dbf9d (diff) |
[OpenMP] Sema and parsing for 'teams distribute' pragma
This patch is to implement sema and parsing for 'teams distribute' pragma.
Differential Revision: https://reviews.llvm.org/D23189
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/OpenMPKinds.def')
-rw-r--r-- | include/clang/Basic/OpenMPKinds.def | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/clang/Basic/OpenMPKinds.def b/include/clang/Basic/OpenMPKinds.def index c4a272304c..0d0cc1c07e 100644 --- a/include/clang/Basic/OpenMPKinds.def +++ b/include/clang/Basic/OpenMPKinds.def @@ -141,6 +141,9 @@ #ifndef OPENMP_TARGET_SIMD_CLAUSE #define OPENMP_TARGET_SIMD_CLAUSE(Name) #endif +#ifndef OPENMP_TEAMS_DISTRIBUTE_CLAUSE +#define OPENMP_TEAMS_DISTRIBUTE_CLAUSE(Name) +#endif // OpenMP directives. OPENMP_DIRECTIVE(threadprivate) @@ -186,6 +189,7 @@ OPENMP_DIRECTIVE_EXT(distribute_parallel_for_simd, "distribute parallel for simd OPENMP_DIRECTIVE_EXT(distribute_simd, "distribute simd") OPENMP_DIRECTIVE_EXT(target_parallel_for_simd, "target parallel for simd") OPENMP_DIRECTIVE_EXT(target_simd, "target simd") +OPENMP_DIRECTIVE_EXT(teams_distribute, "teams distribute") // OpenMP clauses. OPENMP_CLAUSE(if, OMPIfClause) @@ -642,6 +646,18 @@ OPENMP_TARGET_SIMD_CLAUSE(simdlen) OPENMP_TARGET_SIMD_CLAUSE(collapse) OPENMP_TARGET_SIMD_CLAUSE(reduction) +// Clauses allowed for OpenMP directive 'teams distribute'. +OPENMP_TEAMS_DISTRIBUTE_CLAUSE(default) +OPENMP_TEAMS_DISTRIBUTE_CLAUSE(private) +OPENMP_TEAMS_DISTRIBUTE_CLAUSE(firstprivate) +OPENMP_TEAMS_DISTRIBUTE_CLAUSE(shared) +OPENMP_TEAMS_DISTRIBUTE_CLAUSE(reduction) +OPENMP_TEAMS_DISTRIBUTE_CLAUSE(num_teams) +OPENMP_TEAMS_DISTRIBUTE_CLAUSE(thread_limit) +OPENMP_TEAMS_DISTRIBUTE_CLAUSE(lastprivate) +OPENMP_TEAMS_DISTRIBUTE_CLAUSE(collapse) +OPENMP_TEAMS_DISTRIBUTE_CLAUSE(dist_schedule) + #undef OPENMP_TASKLOOP_SIMD_CLAUSE #undef OPENMP_TASKLOOP_CLAUSE #undef OPENMP_LINEAR_KIND @@ -685,3 +701,4 @@ OPENMP_TARGET_SIMD_CLAUSE(reduction) #undef OPENMP_DISTRIBUTE_SIMD_CLAUSE #undef OPENMP_TARGET_PARALLEL_FOR_SIMD_CLAUSE #undef OPENMP_TARGET_SIMD_CLAUSE +#undef OPENMP_TEAMS_DISTRIBUTE_CLAUSE |