diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2014-06-20 09:44:06 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-06-20 09:44:06 +0000 |
| commit | 142e1fc9eae98667c54e07325196d113ecc94c74 (patch) | |
| tree | 5ac278d2dacef0c29c8ca25f8e24087d88cc051e /clang/lib/Serialization | |
| parent | 6a29b55a5a390bcc60c27ec49776a6642ae58194 (diff) | |
| download | bcm5719-llvm-142e1fc9eae98667c54e07325196d113ecc94c74.tar.gz bcm5719-llvm-142e1fc9eae98667c54e07325196d113ecc94c74.zip | |
[OPENMP] Initial support for 'ordered' clause.
llvm-svn: 211347
Diffstat (limited to 'clang/lib/Serialization')
| -rw-r--r-- | clang/lib/Serialization/ASTReaderStmt.cpp | 5 | ||||
| -rw-r--r-- | clang/lib/Serialization/ASTWriterStmt.cpp | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTReaderStmt.cpp b/clang/lib/Serialization/ASTReaderStmt.cpp index cda835597f1..65f86707fcb 100644 --- a/clang/lib/Serialization/ASTReaderStmt.cpp +++ b/clang/lib/Serialization/ASTReaderStmt.cpp @@ -1694,6 +1694,9 @@ OMPClause *OMPClauseReader::readClause() { case OMPC_schedule: C = new (Context) OMPScheduleClause(); break; + case OMPC_ordered: + C = new (Context) OMPOrderedClause(); + break; case OMPC_private: C = OMPPrivateClause::CreateEmpty(Context, Record[Idx++]); break; @@ -1769,6 +1772,8 @@ void OMPClauseReader::VisitOMPScheduleClause(OMPScheduleClause *C) { C->setCommaLoc(Reader->ReadSourceLocation(Record, Idx)); } +void OMPClauseReader::VisitOMPOrderedClause(OMPOrderedClause *) {} + void OMPClauseReader::VisitOMPPrivateClause(OMPPrivateClause *C) { C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); unsigned NumVars = C->varlist_size(); diff --git a/clang/lib/Serialization/ASTWriterStmt.cpp b/clang/lib/Serialization/ASTWriterStmt.cpp index 0de9221c73e..3904192aa91 100644 --- a/clang/lib/Serialization/ASTWriterStmt.cpp +++ b/clang/lib/Serialization/ASTWriterStmt.cpp @@ -1715,6 +1715,8 @@ void OMPClauseWriter::VisitOMPScheduleClause(OMPScheduleClause *C) { Writer->Writer.AddSourceLocation(C->getCommaLoc(), Record); } +void OMPClauseWriter::VisitOMPOrderedClause(OMPOrderedClause *) {} + void OMPClauseWriter::VisitOMPPrivateClause(OMPPrivateClause *C) { Record.push_back(C->varlist_size()); Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); |

