[SVE] Make EVT::getScalarSizeInBits and others consistent with Type::getScalarSizeInBits
authorDavid Sherwood <david.sherwood@arm.com>
Fri, 18 Sep 2020 07:39:31 +0000 (08:39 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Wed, 23 Sep 2020 08:20:08 +0000 (09:20 +0100)
commite077367a28102128483f4b2555d2ad31e21b1965
tree9a589763ff8b40be133487dad2d6da3076525ea1
parente46c1def523323eedfad1174fd2fabbece8f40cc
[SVE] Make EVT::getScalarSizeInBits and others consistent with Type::getScalarSizeInBits

An existing function Type::getScalarSizeInBits returns a uint64_t
instead of a TypeSize class because the caller is requesting a
scalar size, which cannot be scalable. This patch makes other
similar functions requesting a scalar size consistent with that,
thereby eliminating more than 1000 implicit TypeSize -> uint64_t
casts.

Differential revision: https://reviews.llvm.org/D87889
llvm/include/llvm/CodeGen/SelectionDAGNodes.h
llvm/include/llvm/CodeGen/ValueTypes.h
llvm/include/llvm/Support/MachineValueType.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/CodeGen/TargetLoweringBase.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/ARM/ARMISelLowering.cpp