diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2013-09-03 12:55:52 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2013-09-03 12:55:52 +0000 |
| commit | d4183dabd7a959746d558098762ab61e97d5ee6d (patch) | |
| tree | aefe91fd5d6606ab46726a4812c03c0b06f98806 /clang/tools | |
| parent | 32fd46c936ef4701d46804a4a637564f9bec9ebe (diff) | |
| download | bcm5719-llvm-d4183dabd7a959746d558098762ab61e97d5ee6d.tar.gz bcm5719-llvm-d4183dabd7a959746d558098762ab61e97d5ee6d.zip | |
OpenMP: Data-sharing attributes analysis and clause 'shared'
llvm-svn: 189795
Diffstat (limited to 'clang/tools')
| -rw-r--r-- | clang/tools/libclang/CIndex.cpp | 3 | ||||
| -rw-r--r-- | clang/tools/libclang/RecursiveASTVisitor.h | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 765c9000121..cb85123ed74 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -1936,6 +1936,9 @@ void OMPClauseEnqueue::VisitOMPDefaultClause(const OMPDefaultClause *C) { } void OMPClauseEnqueue::VisitOMPPrivateClause(const OMPPrivateClause *C) { PROCESS_OMP_CLAUSE_LIST(OMPPrivateClause, C) } +void OMPClauseEnqueue::VisitOMPSharedClause(const OMPSharedClause *C) { + PROCESS_OMP_CLAUSE_LIST(OMPSharedClause, C) +} #undef PROCESS_OMP_CLAUSE_LIST } void EnqueueVisitor::EnqueueChildren(const OMPClause *S) { diff --git a/clang/tools/libclang/RecursiveASTVisitor.h b/clang/tools/libclang/RecursiveASTVisitor.h index 701de899913..4d2b3a98409 100644 --- a/clang/tools/libclang/RecursiveASTVisitor.h +++ b/clang/tools/libclang/RecursiveASTVisitor.h @@ -2337,6 +2337,12 @@ bool RecursiveASTVisitor<Derived>::VisitOMPPrivateClause(OMPPrivateClause *C) { return true; } +template<typename Derived> +bool RecursiveASTVisitor<Derived>::VisitOMPSharedClause(OMPSharedClause *C) { + PROCESS_OMP_CLAUSE_LIST(OMPSharedClause, C) + return true; +} + #undef PROCESS_OMP_CLAUSE_LIST // FIXME: look at the following tricky-seeming exprs to see if we |

