diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2016-03-02 04:57:40 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2016-03-02 04:57:40 +0000 |
| commit | 61205070c457653961bdd5ce513f31f29a73e068 (patch) | |
| tree | 708f0b1e98d9c0db7a74e9ef6315224edf5de759 /clang/tools/libclang | |
| parent | dcd3a88e29413af8a41b09ea0dcaeabec2a3a440 (diff) | |
| download | bcm5719-llvm-61205070c457653961bdd5ce513f31f29a73e068.tar.gz bcm5719-llvm-61205070c457653961bdd5ce513f31f29a73e068.zip | |
[OPENMP 4.5] Codegen for data members in 'reduction' clause.
OpenMP 4.5 allows to privatize non-static data members of current class
in non-static member functions. Patch supports codegen for non-static
data members in 'reduction' clauses.
llvm-svn: 262460
Diffstat (limited to 'clang/tools/libclang')
| -rw-r--r-- | clang/tools/libclang/CIndex.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index b3f33ad8ffd..db1849bba2d 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -2178,6 +2178,8 @@ void OMPClauseEnqueue::VisitOMPSharedClause(const OMPSharedClause *C) { } void OMPClauseEnqueue::VisitOMPReductionClause(const OMPReductionClause *C) { VisitOMPClauseList(C); + VisitOMPClauseWithPreInit(C); + VisitOMPClauseWithPostUpdate(C); for (auto *E : C->privates()) { Visitor->AddStmt(E); } |

