summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtProfile.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-07-27 13:20:36 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-07-27 13:20:36 +0000
commit88202be1f067578fe904cc38785b8e726523d7cf (patch)
treef7717ba21d0132ea4b0b6ae53305d3c23fabe765 /clang/lib/AST/StmtProfile.cpp
parente255526d0bb7494f382de2e57386985ea904e8cc (diff)
downloadbcm5719-llvm-88202be1f067578fe904cc38785b8e726523d7cf.tar.gz
bcm5719-llvm-88202be1f067578fe904cc38785b8e726523d7cf.zip
[OPENMP] Codegen for 'in_reduction' clause.
Added codegen for task-based directive with in_reduction clause. ``` <body> ``` The next code is emitted: ``` void *td; ... td = call i8* @__kmpc_task_reduction_init(); ... <type> *priv = (<type> *)call i8* @__kmpc_task_reduction_get_th_data(i32 GTID, i8* td, i8* <orig>) ``` llvm-svn: 309270
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r--clang/lib/AST/StmtProfile.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp
index 1b6c83fe30f..c1ba1e8e948 100644
--- a/clang/lib/AST/StmtProfile.cpp
+++ b/clang/lib/AST/StmtProfile.cpp
@@ -596,6 +596,10 @@ void OMPClauseProfiler::VisitOMPInReductionClause(
if (E)
Profiler->VisitStmt(E);
}
+ for (auto *E : C->taskgroup_descriptors()) {
+ if (E)
+ Profiler->VisitStmt(E);
+ }
}
void OMPClauseProfiler::VisitOMPLinearClause(const OMPLinearClause *C) {
VisitOMPClauseList(C);
OpenPOWER on IntegriCloud