aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp
diff options
context:
space:
mode:
authorDominik Adamski <dominik.adamski@amd.com>2024-01-29 10:33:15 +0100
committerGitHub <noreply@github.com>2024-01-29 10:33:15 +0100
commitce8032394fa4ff55c36d857e85241c1bd0cacc60 (patch)
tree2ed2267dc19285826c188b9eb10af78b081a5e56 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp
parent9f80ecb308c989523cc32d4256f7ab61c5b788d7 (diff)
downloadllvm-ce8032394fa4ff55c36d857e85241c1bd0cacc60.zip
llvm-ce8032394fa4ff55c36d857e85241c1bd0cacc60.tar.gz
llvm-ce8032394fa4ff55c36d857e85241c1bd0cacc60.tar.bz2
[Flang][OpenMP] Use simdloop operation only for omp simd pragma (#79559)
OpenMP standard differentiates between omp simd (2.9.3.1) and omp do/for simd (2.9.3.2 for OpenMP 5.0 standard) pragmas. The first one describes the loop which needs to be vectorized. The second pragma describes the loop which needs to be workshared between existing threads. Each thread can use SIMD instructions to execute its chunk of the loop. That's why we need to model ``` !$omp simd do-loop ``` as `omp.simdloop` operation and add compiler hints for vectorization. The worksharing loop: !$omp do simd do-loop should be represented as worksharing loop (`omp.wsloop`). Currently Flang denotes both types of OpenMP pragmas by `omp.simdloop` operation. In consequence we cannot differentiate between: ``` !$omp parallel simd do-loop ``` and ``` !$omp parallel do simd do-loop ``` The second loop should be workshared between multiple threads. The first one describes the loop which needs to be redundantly executed by multiple threads. Current Flang implementation does not perform worksharing for `!$omp do simd` pragma and generates valid code only for the first case.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp')
0 files changed, 0 insertions, 0 deletions