aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2020-06-11 11:28:59 -0400
committerAlexey Bataev <a.bataev@hotmail.com>2020-06-11 14:48:43 -0400
commit43101d10dbd58d48df732f974e078fd82376039e (patch)
treec9f8a3c7a18f8663bb61583f59b858825875af57 /llvm/lib/Object/COFFObjectFile.cpp
parent70ad73b6b76838bd7c72123922102b175e5d478a (diff)
downloadllvm-43101d10dbd58d48df732f974e078fd82376039e.zip
llvm-43101d10dbd58d48df732f974e078fd82376039e.tar.gz
llvm-43101d10dbd58d48df732f974e078fd82376039e.tar.bz2
[OPENMP50]Codegen for scan directive in simd loops.
Added codegen for scan directives in simd loop. The codegen transforms original code: ``` int x = 0; #pragma omp simd reduction(inscan, +: x) for (..) { <first part> #pragma omp scan inclusive(x) <second part> } ``` into ``` int x = 0; for (..) { int x_priv = 0; <first part> x = x_priv + x; x_priv = x; <second part> } ``` and ``` int x = 0; #pragma omp simd reduction(inscan, +: x) for (..) { <first part> #pragma omp scan exclusive(x) <second part> } ``` into ``` int x = 0; for (..) { int x_priv = 0; <second part> int temp = x; x = x_priv + x; x_priv = temp; <first part> } ``` Differential revision: https://reviews.llvm.org/D78232
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions