[PATCH] D80746: [SVE] Replace deprecated call in changeVectorElementTypeToInteger

Anna Bulanova via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 28 11:01:26 PDT 2020


bas created this revision.
bas added reviewers: sdesmalen, kmclaughlin, dancgr, efriedma, each, andwar, rengolin.
Herald added subscribers: llvm-commits, psnobl, rkruppe, tschuett.
Herald added a project: LLVM.

Replace getVectorNumElements with getVectorElementCount;
gets rid of the warnings in several tests


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80746

Files:
  llvm/include/llvm/CodeGen/ValueTypes.h


Index: llvm/include/llvm/CodeGen/ValueTypes.h
===================================================================
--- llvm/include/llvm/CodeGen/ValueTypes.h
+++ llvm/include/llvm/CodeGen/ValueTypes.h
@@ -97,8 +97,7 @@
       MVT EltTy = getSimpleVT().getVectorElementType();
       unsigned BitWidth = EltTy.getSizeInBits();
       MVT IntTy = MVT::getIntegerVT(BitWidth);
-      MVT VecTy = MVT::getVectorVT(IntTy, getVectorNumElements(),
-                                   isScalableVector());
+      MVT VecTy = MVT::getVectorVT(IntTy, getVectorElementCount());
       assert(VecTy.SimpleTy != MVT::INVALID_SIMPLE_VALUE_TYPE &&
              "Simple vector VT not representable by simple integer vector VT!");
       return VecTy;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80746.266948.patch
Type: text/x-patch
Size: 735 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200528/9bd18991/attachment.bin>


More information about the llvm-commits mailing list