Go to file
Alexey Bataev 3b1b8951b9 [OPENMP] Codegen for 'task_reduction' clause.
Added codegen for taskgroup directive with task_reduction clause.
```
<body>
```
The next code is emitted:
```
%struct.kmp_task_red_input_t red_init[n];
void *td;
call void @__kmpc_taskgroup(%ident_t id, i32 gtid)
...
red_init[i].shar = &<item>;
red_init[i].size = sizeof(<item>);
red_init[i].init = (void*)initializer_function;
red_init[i].fini = (void*)destructor_function;
red_init[i].comb = (void*)combiner_function;
red_init[i].flags = flags;
...
td = call i8* @__kmpc_task_reduction_init(i32 gtid, i32 n, i8*
(void*)red_init);
call void @__kmpc_end_taskgroup(%ident_t id, i32 gtid)

void initializer_function(i8* priv) {
  *(<type>*)priv = <red_init>;
  ret void;
}

void destructor_function(i8* priv) {
  (<type>*)priv->~();
  ret void;
}

void combiner_function(i8* inout, i8* in) {
  *(<type>*)inout = *(<type>*)inout <red_id> *(<type>*)in;
  ret void;
}
```

llvm-svn: 308979
2017-07-25 15:53:26 +00:00
clang [OPENMP] Codegen for 'task_reduction' clause. 2017-07-25 15:53:26 +00:00
clang-tools-extra [clang-tidy] Fixup clang-apply-replacements/invalid-files test 2017-07-25 14:39:08 +00:00
compiler-rt Add address ranges for individual macho sections on darwin 2017-07-25 15:27:32 +00:00
debuginfo-tests Add a test for PR33166. 2017-05-25 19:33:16 +00:00
libclc generic: add missing get_work_dim include 2017-06-02 15:58:35 +00:00
libcxx Remove addtional parameters in function std::next() and std::prev() 2017-07-24 22:17:05 +00:00
libcxxabi Update version to 6.0.0svn 2017-07-19 13:42:18 +00:00
libunwind [libunwind] Handle .ARM.exidx tables without sentinel last entry 2017-07-24 09:19:32 +00:00
lld [ELF] - Fix init_fini_priority.s test. 2017-07-25 09:26:35 +00:00
lldb Extend 'target symbols add' to load symbols from a given module 2017-07-24 22:52:39 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm [Sparc] invalid adjustments in TLS_LE/TLS_LDO relocations removed 2017-07-25 15:28:28 +00:00
openmp Whitespace. 2017-07-20 23:12:39 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [IslAst] Untangle IslAst lit-testcases from specifics of the legacy-PM 2017-07-25 15:07:42 +00:00