diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-06-17 06:21:39 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-06-17 06:21:39 +0000 |
commit | 89e7e8eb0e18316647ccf1953154ffa29f97f545 (patch) | |
tree | bbeab00b38fc00db40c15d4d31426f89893c49aa /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 8321006d44c351e4cd4d1383de7e9d11764da56e (diff) | |
download | llvm-89e7e8eb0e18316647ccf1953154ffa29f97f545.zip llvm-89e7e8eb0e18316647ccf1953154ffa29f97f545.tar.gz llvm-89e7e8eb0e18316647ccf1953154ffa29f97f545.tar.bz2 |
[OPENMP] Supported reduction clause in omp simd construct.
The following code is generated for reduction clause within 'omp simd' loop construct:
#pragma omp simd reduction(op:var)
for (...)
<body>
alloca priv_var
priv_var = <initial reduction value>;
<loop_start>:
<body> // references to original 'var' are replaced by 'priv_var'
<loop_end>:
var op= priv_var;
llvm-svn: 239881
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions