diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2019-08-08 13:42:45 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2019-08-08 13:42:45 +0000 |
commit | 195ae90307bdbfcb7393da5dfbbb2bb38ff24107 (patch) | |
tree | 4c0daa8ff6be1d52428c941364bc749b15410320 /clang/lib/Serialization/ASTWriter.cpp | |
parent | c822ab8f9accc63e5a4fa01273f257653360dacc (diff) | |
download | bcm5719-llvm-195ae90307bdbfcb7393da5dfbbb2bb38ff24107.tar.gz bcm5719-llvm-195ae90307bdbfcb7393da5dfbbb2bb38ff24107.zip |
[OPENMP]Add support for analysis of linear variables and step.
Summary:
Added support for basic analysis of the linear variables and linear step
expression. Linear loop iteration variables must be excluded from this
analysis, only non-loop iteration variables must be analyzed.
Reviewers: NoQ
Subscribers: guansong, cfe-commits, caomhin, kkwli0
Tags: #clang
Differential Revision: https://reviews.llvm.org/D65461
llvm-svn: 368295
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 10946f9b0d9..9a1ebffdc92 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/lib/Serialization/ASTWriter.cpp @@ -6846,6 +6846,8 @@ void OMPClauseWriter::VisitOMPLinearClause(OMPLinearClause *C) { } Record.AddStmt(C->getStep()); Record.AddStmt(C->getCalcStep()); + for (auto *VE : C->used_expressions()) + Record.AddStmt(VE); } void OMPClauseWriter::VisitOMPAlignedClause(OMPAlignedClause *C) { |