[CodeGen] Split MVT::changeTypeToInteger() functionality from EVT::changeTypeToInteger().
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 22 Oct 2020 13:27:19 +0000 (14:27 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 22 Oct 2020 13:27:42 +0000 (14:27 +0100)
commit794dc7ad26c21064a282046277bdb53c8d9690d5
tree66ece20129a90e994bd64399a217b1f2896b9e22
parent088f3c83cc8fad7765a4dfd386519ffa6799be6c
[CodeGen] Split MVT::changeTypeToInteger() functionality from EVT::changeTypeToInteger().

Add the MVT equivalent handling for EVT changeTypeToInteger/changeVectorElementType/changeVectorElementTypeToInteger.

All the SimpleVT code already exists inside the EVT equivalents, but by splitting this out we can use these directly inside MVT types without converting to/from EVT.
llvm/include/llvm/CodeGen/ValueTypes.h
llvm/include/llvm/Support/MachineValueType.h
llvm/lib/Target/X86/X86ISelLowering.cpp