diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-07-27 13:20:36 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-07-27 13:20:36 +0000 |
commit | 88202be1f067578fe904cc38785b8e726523d7cf (patch) | |
tree | f7717ba21d0132ea4b0b6ae53305d3c23fabe765 /clang/lib/Serialization/ASTWriterStmt.cpp | |
parent | e255526d0bb7494f382de2e57386985ea904e8cc (diff) | |
download | bcm5719-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/Serialization/ASTWriterStmt.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriterStmt.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriterStmt.cpp b/clang/lib/Serialization/ASTWriterStmt.cpp index 04d56a7859f..1bc64b6a176 100644 --- a/clang/lib/Serialization/ASTWriterStmt.cpp +++ b/clang/lib/Serialization/ASTWriterStmt.cpp @@ -2018,6 +2018,8 @@ void OMPClauseWriter::VisitOMPInReductionClause(OMPInReductionClause *C) { Record.AddStmt(E); for (auto *E : C->reduction_ops()) Record.AddStmt(E); + for (auto *E : C->taskgroup_descriptors()) + Record.AddStmt(E); } void OMPClauseWriter::VisitOMPLinearClause(OMPLinearClause *C) { |