GlobalISel: improve representation of G_SEQUENCE and G_EXTRACT
authorTim Northover <tnorthover@apple.com>
Fri, 19 Aug 2016 18:32:14 +0000 (18:32 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 19 Aug 2016 18:32:14 +0000 (18:32 +0000)
commit26b76f2c599c0f5104319a5786093199b173f80d
tree05e2d7538c0d5f972261a12d1400cbca39df2eee
parentfbfa3ee4f613af83ef6af70c15b3fccfd5f50444
GlobalISel: improve representation of G_SEQUENCE and G_EXTRACT

First, make sure all types involved are represented, rather than being implicit
from the register width.

Second, canonicalize all types to scalar. These operations just act in bits and
don't care about vectors.

Also standardize spelling of Indices in the MachineIRBuilder (NFC here).

llvm-svn: 279294
llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
llvm/lib/CodeGen/GlobalISel/MachineLegalizeHelper.cpp
llvm/test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll
llvm/test/CodeGen/AArch64/GlobalISel/legalize-add.mir