[LLVM] Use llvm::ElementCount with LLVM 11+ when creating vectors (#5265)
authorKrzysztof Parzyszek <kparzysz@quicinc.com>
Tue, 7 Apr 2020 22:49:07 +0000 (17:49 -0500)
committerGitHub <noreply@github.com>
Tue, 7 Apr 2020 22:49:07 +0000 (15:49 -0700)
commitdf8a6f3b85b2ae24560d6cac7587ce6a6f08033c
treebd25a8d02191c4eb47734cbb89a60b3b4d11990f
parent36ce2e2401fe1f63ff582d6c41c1afbcd96d40af
[LLVM] Use llvm::ElementCount with LLVM 11+ when creating vectors (#5265)

LLVM 11 added support for scalable vectors, and now the number of
elements in a vector is represented by a llvm::ElementCount class,
not just a number.
src/target/llvm/codegen_llvm.cc