GlobalISel: cache pointer sizes in LLT
authorTim Northover <tnorthover@apple.com>
Thu, 15 Sep 2016 09:20:34 +0000 (09:20 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 15 Sep 2016 09:20:34 +0000 (09:20 +0000)
commit5ae8350af67a26c694da82342e71036470084c21
tree4a53c9b18b5f48c551d15fa6f0dbb9070cf4ba79
parent97a3c35443da90a80d7aead1252a9492e5dea57a
GlobalISel: cache pointer sizes in LLT

Otherwise everything that needs to work out what size they are has to keep a
DataLayout handy, which is a bit silly and very annoying.

llvm-svn: 281597
llvm/include/llvm/CodeGen/LowLevelType.h
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/lib/CodeGen/LowLevelType.cpp
llvm/lib/CodeGen/MIRParser/MIParser.cpp
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp
llvm/unittests/CodeGen/GlobalISel/MachineLegalizerTest.cpp
llvm/unittests/CodeGen/LowLevelTypeTest.cpp