Add TargetInstrInfo::copyPhysReg hook and use it from LowerSubregs.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 8 Jul 2010 05:01:41 +0000 (05:01 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 8 Jul 2010 05:01:41 +0000 (05:01 +0000)
commit3651d92d91062ea4b1ee8b2a88eca03bd39e1968
treed51c9f1abff59248eafc4fff6c6f5dd62d4a4536
parent515fe3a58877c745a922252a4492e866a2f1e42e
Add TargetInstrInfo::copyPhysReg hook and use it from LowerSubregs.

This target hook is intended to replace copyRegToReg entirely, but for now it
calls copyRegToReg.

Any remaining calls to copyRegToReg wil be replaced by COPY instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107854 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/LowerSubregs.cpp
lib/CodeGen/TargetInstrInfoImpl.cpp