[GlobalISel] NFC: Have LLT::getSizeInBits/Bytes return a TypeSize.
authorSander de Smalen <sander.desmalen@arm.com>
Fri, 25 Jun 2021 14:55:03 +0000 (15:55 +0100)
committerSander de Smalen <sander.desmalen@arm.com>
Fri, 25 Jun 2021 16:06:50 +0000 (17:06 +0100)
commitaeab9d9570ac8cb554aff6e1af24a471fdf5b4e5
tree2c7d2c17c1c06e45080c385af2605bf6bf09f15a
parentc3cc9d1eb283373b5216e4b726c270bcfe3806d5
[GlobalISel] NFC: Have LLT::getSizeInBits/Bytes return a TypeSize.

To reflect that the size may be scalable, a TypeSize is returned
instead of an unsigned. In places where the result is used,
it currently relies on an implicit cast of TypeSize -> uint64_t,
which asserts that the type is not scalable.

This patch is NFC for fixed-width vectors.

Reviewed By: aemerson

Differential Revision: https://reviews.llvm.org/D104454
llvm/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
llvm/include/llvm/Support/LowLevelTypeImpl.h
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp
llvm/unittests/CodeGen/LowLevelTypeTest.cpp
llvm/utils/TableGen/GlobalISelEmitter.cpp