diff options
author | Sander de Smalen <sander.desmalen@arm.com> | 2020-12-08 14:20:04 +0000 |
---|---|---|
committer | Sander de Smalen <sander.desmalen@arm.com> | 2020-12-09 11:25:21 +0000 |
commit | d568cff696e8fb89ce1b040561c037412767af60 (patch) | |
tree | 682bb4d9750172ed760ffdc31e26df4f89c35477 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h | |
parent | adc37145dec9cadf76af05326150ed22a3cc2fdd (diff) | |
download | llvm-d568cff696e8fb89ce1b040561c037412767af60.zip llvm-d568cff696e8fb89ce1b040561c037412767af60.tar.gz llvm-d568cff696e8fb89ce1b040561c037412767af60.tar.bz2 |
[LoopVectorizer][SVE] Vectorize a simple loop with with a scalable VF.
* Steps are scaled by `vscale`, a runtime value.
* Changes to circumvent the cost-model for now (temporary)
so that the cost-model can be implemented separately.
This can vectorize the following loop [1]:
void loop(int N, double *a, double *b) {
#pragma clang loop vectorize_width(4, scalable)
for (int i = 0; i < N; i++) {
a[i] = b[i] + 1.0;
}
}
[1] This source-level example is based on the pragma proposed
separately in D89031. This patch only implements the LLVM part.
Reviewed By: dmgreen
Differential Revision: https://reviews.llvm.org/D91077
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h')
0 files changed, 0 insertions, 0 deletions