diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-09-28 06:39:35 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-09-28 06:39:35 +0000 |
commit | d14d1e6f25a463a8856cde2e83593a0b71054dc2 (patch) | |
tree | 47b6b8b3a81752665e395af4ced67a7ed9ebc60b /clang/lib/Basic/OpenMPKinds.cpp | |
parent | f32f5f23052439dbb123b678ed5b811394d7937e (diff) | |
download | bcm5719-llvm-d14d1e6f25a463a8856cde2e83593a0b71054dc2.tar.gz bcm5719-llvm-d14d1e6f25a463a8856cde2e83593a0b71054dc2.zip |
[OPENMP 4.1] Add 'simd' clause for 'ordered' directive.
Parsing and sema analysis for 'simd' clause in 'ordered' directive.
Description
If the simd clause is specified, the ordered regions encountered by any thread will use only a single SIMD lane to execute the ordered
regions in the order of the loop iterations.
Restrictions
An ordered construct with the simd clause is the only OpenMP construct that can appear in the simd region
llvm-svn: 248696
Diffstat (limited to 'clang/lib/Basic/OpenMPKinds.cpp')
-rw-r--r-- | clang/lib/Basic/OpenMPKinds.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Basic/OpenMPKinds.cpp b/clang/lib/Basic/OpenMPKinds.cpp index ea99387cb94..28194680b23 100644 --- a/clang/lib/Basic/OpenMPKinds.cpp +++ b/clang/lib/Basic/OpenMPKinds.cpp @@ -129,6 +129,7 @@ unsigned clang::getOpenMPSimpleClauseType(OpenMPClauseKind Kind, case OMPC_seq_cst: case OMPC_device: case OMPC_threads: + case OMPC_simd: break; } llvm_unreachable("Invalid OpenMP simple clause kind"); @@ -214,6 +215,7 @@ const char *clang::getOpenMPSimpleClauseTypeName(OpenMPClauseKind Kind, case OMPC_seq_cst: case OMPC_device: case OMPC_threads: + case OMPC_simd: break; } llvm_unreachable("Invalid OpenMP simple clause kind"); |