Reland [GlobalISel] NFC: Have LLT::getSizeInBits/Bytes return a TypeSize.
authorSander de Smalen <sander.desmalen@arm.com>
Sun, 27 Jun 2021 15:07:19 +0000 (16:07 +0100)
committerSander de Smalen <sander.desmalen@arm.com>
Mon, 28 Jun 2021 14:24:27 +0000 (15:24 +0100)
commit0e09d18c6a0a73dc9ed9e45584407a7a44fbbc4a
tree6954a54ec5dac7d46d794b2ea435e0de658720a1
parent31ef15e0442ac13135717179d32f438af5bd6ab1
Reland [GlobalISel] NFC: Have LLT::getSizeInBits/Bytes return a TypeSize.

This patch relands https://reviews.llvm.org/D104454, but fixes some failing
builds on Mac OS which apparently has a different definition for size_t,
that caused 'ambiguous operator overload' for the implicit conversion
of TypeSize to a scalar value.

This reverts commit b732e6c9a8438e5204ac96c8ca76f9b11abf98ff.
llvm/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
llvm/include/llvm/Support/LowLevelTypeImpl.h
llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
llvm/unittests/CodeGen/LowLevelTypeTest.cpp
llvm/utils/TableGen/GlobalISelEmitter.cpp