diff options
author | Christopher Tetreault <ctetreau@quicinc.com> | 2020-04-22 08:02:02 -0700 |
---|---|---|
committer | Christopher Tetreault <ctetreau@quicinc.com> | 2020-04-22 08:59:01 -0700 |
commit | 2dea3f129878e929e5d1f00b91a622eb1ec8be4e (patch) | |
tree | 8199e47ebd1a535856124674a63a688f67a27079 /llvm/lib/IR/DataLayout.cpp | |
parent | 3df8135286a2180a8fadcdddfcf9d9c232fb6ad7 (diff) | |
download | llvm-2dea3f129878e929e5d1f00b91a622eb1ec8be4e.zip llvm-2dea3f129878e929e5d1f00b91a622eb1ec8be4e.tar.gz llvm-2dea3f129878e929e5d1f00b91a622eb1ec8be4e.tar.bz2 |
[SVE] Add new VectorType subclasses
Summary:
Introduce new types for fixed width and scalable vectors.
Does not remove getNumElements yet so as to not break code during transition
period.
Reviewers: deadalnix, efriedma, sdesmalen, craig.topper, huntergr
Reviewed By: sdesmalen
Subscribers: jholewinski, arsenm, jvesely, nhaehnle, mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, csigg, arpith-jacob, mgester, lucyrfox, liufengdb, kerbowa, Joonsoo, grosul1, frgossen, lldb-commits, tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm, #lldb
Differential Revision: https://reviews.llvm.org/D77587
Diffstat (limited to 'llvm/lib/IR/DataLayout.cpp')
-rw-r--r-- | llvm/lib/IR/DataLayout.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp index c2ac1c3..cb50389 100644 --- a/llvm/lib/IR/DataLayout.cpp +++ b/llvm/lib/IR/DataLayout.cpp @@ -739,7 +739,8 @@ Align DataLayout::getAlignment(Type *Ty, bool abi_or_pref) const { AlignType = FLOAT_ALIGN; break; case Type::X86_MMXTyID: - case Type::VectorTyID: + case Type::FixedVectorTyID: + case Type::ScalableVectorTyID: AlignType = VECTOR_ALIGN; break; default: |