diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2015-05-12 08:35:28 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-05-12 08:35:28 +0000 |
| commit | 040d54094096d315bb27243f71133ffb95325509 (patch) | |
| tree | a03313806c6da0ef4f8c5ddddc9b1b33f1c9a6dc /clang/tools/libclang | |
| parent | 09d3069740cf69731d384a7229bf93452e4f6009 (diff) | |
| download | bcm5719-llvm-040d54094096d315bb27243f71133ffb95325509.tar.gz bcm5719-llvm-040d54094096d315bb27243f71133ffb95325509.zip | |
[OPENMP] Fixed support for 'schedule' clause with non-constant chunk size.
'schedule' clause for combined directives requires additional processing. Special helper variable is generated, that is captured in the outlined parallel region for 'parallel for' region. This captured variable is used to store chunk expression from the 'schedule' clause in this 'parallel for' region.
llvm-svn: 237100
Diffstat (limited to 'clang/tools/libclang')
| -rw-r--r-- | clang/tools/libclang/CIndex.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 04344254942..05287bd856e 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -1982,6 +1982,7 @@ void OMPClauseEnqueue::VisitOMPProcBindClause(const OMPProcBindClause *C) { } void OMPClauseEnqueue::VisitOMPScheduleClause(const OMPScheduleClause *C) { Visitor->AddStmt(C->getChunkSize()); + Visitor->AddStmt(C->getHelperChunkSize()); } void OMPClauseEnqueue::VisitOMPOrderedClause(const OMPOrderedClause *) {} |

