diff options
author | Robert Imschweiler <robert.imschweiler@amd.com> | 2025-06-24 21:12:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-24 21:12:40 +0200 |
commit | f624ba2d9d2143a0c2679ee9792cf455f965adec (patch) | |
tree | 9972bd391d8473a37c3ea2219583f4d3aaac6c06 /clang/lib/Serialization/ASTWriter.cpp | |
parent | 4d21da002a056c64231fb89ee9e4eba90080e9bb (diff) | |
download | llvm-f624ba2d9d2143a0c2679ee9792cf455f965adec.zip llvm-f624ba2d9d2143a0c2679ee9792cf455f965adec.tar.gz llvm-f624ba2d9d2143a0c2679ee9792cf455f965adec.tar.bz2 |
[OpenMP][clang] 6.0: parsing/sema for num_threads 'strict' modifier (#145490)
Implement parsing and semantic analysis support for the optional
'strict' modifier of the num_threads clause. This modifier has been
introduced in OpenMP 6.0, section 12.1.2.
Note: this is basically 1:1 https://reviews.llvm.org/D138328.
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index c6487c5..4cca214 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/lib/Serialization/ASTWriter.cpp @@ -7802,7 +7802,9 @@ void OMPClauseWriter::VisitOMPFinalClause(OMPFinalClause *C) { void OMPClauseWriter::VisitOMPNumThreadsClause(OMPNumThreadsClause *C) { VisitOMPClauseWithPreInit(C); + Record.writeEnum(C->getModifier()); Record.AddStmt(C->getNumThreads()); + Record.AddSourceLocation(C->getModifierLoc()); Record.AddSourceLocation(C->getLParenLoc()); } |