summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriterStmt.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2016-05-25 12:36:08 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2016-05-25 12:36:08 +0000
commit8b42706a6eaf5dda91e8b2fe81c9bce39893cca4 (patch)
treeb373f9979a1c48474915ef007e61bea2e71c460b /clang/lib/Serialization/ASTWriterStmt.cpp
parent70381ed3e7abb9978ba4e44e6ed7206349e68ed3 (diff)
downloadbcm5719-llvm-8b42706a6eaf5dda91e8b2fe81c9bce39893cca4.tar.gz
bcm5719-llvm-8b42706a6eaf5dda91e8b2fe81c9bce39893cca4.zip
[OPENMP 4.5] Codegen for dacross loop synchronization constructs.
OpenMP 4.5 adds support for doacross loop synchronization. Patch implements codegen for this construct. llvm-svn: 270690
Diffstat (limited to 'clang/lib/Serialization/ASTWriterStmt.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriterStmt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriterStmt.cpp b/clang/lib/Serialization/ASTWriterStmt.cpp
index 929faccbad8..35d8b92dedd 100644
--- a/clang/lib/Serialization/ASTWriterStmt.cpp
+++ b/clang/lib/Serialization/ASTWriterStmt.cpp
@@ -2012,6 +2012,7 @@ void OMPClauseWriter::VisitOMPDependClause(OMPDependClause *C) {
Record.AddSourceLocation(C->getColonLoc());
for (auto *VE : C->varlists())
Record.AddStmt(VE);
+ Record.AddStmt(C->getCounterValue());
}
void OMPClauseWriter::VisitOMPDeviceClause(OMPDeviceClause *C) {
@@ -2127,6 +2128,7 @@ void ASTStmtWriter::VisitOMPLoopDirective(OMPLoopDirective *D) {
Record.AddStmt(D->getEnsureUpperBound());
Record.AddStmt(D->getNextLowerBound());
Record.AddStmt(D->getNextUpperBound());
+ Record.AddStmt(D->getNumIterations());
}
for (auto I : D->counters()) {
Record.AddStmt(I);
OpenPOWER on IntegriCloud