[OPENMP50]Add support for relaxed clause in atomic directive.
Added full support for relaxed clause.
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index c9553de..a1161d2 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -11675,6 +11675,9 @@
case OMPC_release:
C = new (Context) OMPReleaseClause();
break;
+ case OMPC_relaxed:
+ C = new (Context) OMPRelaxedClause();
+ break;
case OMPC_threads:
C = new (Context) OMPThreadsClause();
break;
@@ -11943,6 +11946,8 @@
void OMPClauseReader::VisitOMPReleaseClause(OMPReleaseClause *) {}
+void OMPClauseReader::VisitOMPRelaxedClause(OMPRelaxedClause *) {}
+
void OMPClauseReader::VisitOMPThreadsClause(OMPThreadsClause *) {}
void OMPClauseReader::VisitOMPSIMDClause(OMPSIMDClause *) {}
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index eb79ba2..f935a69 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -6153,6 +6153,8 @@
void OMPClauseWriter::VisitOMPReleaseClause(OMPReleaseClause *) {}
+void OMPClauseWriter::VisitOMPRelaxedClause(OMPRelaxedClause *) {}
+
void OMPClauseWriter::VisitOMPThreadsClause(OMPThreadsClause *) {}
void OMPClauseWriter::VisitOMPSIMDClause(OMPSIMDClause *) {}