summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmtOpenMP.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2016-04-12 05:28:34 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2016-04-12 05:28:34 +0000
commite48a5fc56d7dbd6e24e7fd326c3e50630b648da7 (patch)
treee9e2cf0caa3edc7fdd7fce9eb509571ab2b2fa61 /clang/lib/CodeGen/CGStmtOpenMP.cpp
parent94f58e79aebff75f955f888f223cc2d507c41f20 (diff)
downloadbcm5719-llvm-e48a5fc56d7dbd6e24e7fd326c3e50630b648da7.tar.gz
bcm5719-llvm-e48a5fc56d7dbd6e24e7fd326c3e50630b648da7.zip
[OPENMP 4.0] Support for 'uniform' clause in 'declare simd' directive.
OpenMP 4.0 defines clause 'uniform' in 'declare simd' directive: 'uniform' '(' <argument-list> ')' The uniform clause declares one or more arguments to have an invariant value for all concurrent invocations of the function in the execution of a single SIMD loop. The special this pointer can be used as if was one of the arguments to the function in any of the linear, aligned, or uniform clauses. llvm-svn: 266041
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmtOpenMP.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp
index e52e1719c7e..92c05eabdb6 100644
--- a/clang/lib/CodeGen/CGStmtOpenMP.cpp
+++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp
@@ -2975,6 +2975,7 @@ static void EmitOMPAtomicExpr(CodeGenFunction &CGF, OpenMPClauseKind Kind,
case OMPC_hint:
case OMPC_dist_schedule:
case OMPC_defaultmap:
+ case OMPC_uniform:
llvm_unreachable("Clause is not allowed in 'omp atomic'.");
}
}
OpenPOWER on IntegriCloud