diff options
author | Kelvin Li <kkwli0@gmail.com> | 2016-08-17 23:13:03 +0000 |
---|---|---|
committer | Kelvin Li <kkwli0@gmail.com> | 2016-08-17 23:13:03 +0000 |
commit | 0bf7594715c106bd564e6ef12de9a551c9225913 (patch) | |
tree | 714f7922f6bf1d15eab08da8518604d3819bf506 /include/clang/Basic/OpenMPKinds.def | |
parent | 1f8593ff431bd3e638bc4ca95092037ef67dd868 (diff) |
[OpenMP] Sema and parsing for 'teams distribute simd’ pragma
This patch is to implement sema and parsing for 'teams distribute simd’ pragma.
This patch is originated by Carlo Bertolli.
Differential Revision: https://reviews.llvm.org/D23528
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/OpenMPKinds.def')
-rw-r--r-- | include/clang/Basic/OpenMPKinds.def | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/clang/Basic/OpenMPKinds.def b/include/clang/Basic/OpenMPKinds.def index 0d0cc1c07e..c95062d9ef 100644 --- a/include/clang/Basic/OpenMPKinds.def +++ b/include/clang/Basic/OpenMPKinds.def @@ -144,6 +144,9 @@ #ifndef OPENMP_TEAMS_DISTRIBUTE_CLAUSE #define OPENMP_TEAMS_DISTRIBUTE_CLAUSE(Name) #endif +#ifndef OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE +#define OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(Name) +#endif // OpenMP directives. OPENMP_DIRECTIVE(threadprivate) @@ -190,6 +193,7 @@ 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_DIRECTIVE_EXT(teams_distribute_simd, "teams distribute simd") // OpenMP clauses. OPENMP_CLAUSE(if, OMPIfClause) @@ -658,6 +662,22 @@ OPENMP_TEAMS_DISTRIBUTE_CLAUSE(lastprivate) OPENMP_TEAMS_DISTRIBUTE_CLAUSE(collapse) OPENMP_TEAMS_DISTRIBUTE_CLAUSE(dist_schedule) +// Clauses allowed for OpenMP directive 'teams distribute simd' +OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(default) +OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(private) +OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(firstprivate) +OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(shared) +OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(reduction) +OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(num_teams) +OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(thread_limit) +OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(lastprivate) +OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(collapse) +OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(dist_schedule) +OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(linear) +OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(aligned) +OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(safelen) +OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(simdlen) + #undef OPENMP_TASKLOOP_SIMD_CLAUSE #undef OPENMP_TASKLOOP_CLAUSE #undef OPENMP_LINEAR_KIND @@ -702,3 +722,4 @@ OPENMP_TEAMS_DISTRIBUTE_CLAUSE(dist_schedule) #undef OPENMP_TARGET_PARALLEL_FOR_SIMD_CLAUSE #undef OPENMP_TARGET_SIMD_CLAUSE #undef OPENMP_TEAMS_DISTRIBUTE_CLAUSE +#undef OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE |