Pass the value type to TLI::getRegisterByName
authorHal Finkel <hfinkel@anl.gov>
Sun, 11 May 2014 19:29:07 +0000 (19:29 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sun, 11 May 2014 19:29:07 +0000 (19:29 +0000)
commit24f554f05277413fd8ec77f80c3241d0298ab57f
tree8339a672600d106f7b480e878c979caa9c1274ad
parent94a03fcf38f2b9a4e9e07747f2a0d8be8d4510e7
Pass the value type to TLI::getRegisterByName

We must validate the value type in TLI::getRegisterByName, because if we
don't and the wrong type was used with the IR intrinsic, then we'll assert
(because we won't be able to find a valid register class with which to
construct the requested copy operation). For PPC64, additionally, the type
information is necessary to decide between the 64-bit register and the 32-bit
subregister.

No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208508 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/Target/AArch64/AArch64ISelLowering.cpp
lib/Target/AArch64/AArch64ISelLowering.h
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMISelLowering.h
lib/Target/ARM64/ARM64ISelLowering.cpp
lib/Target/ARM64/ARM64ISelLowering.h
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h