Move TargetRegisterInfo::getSubReg() to MCRegisterInfo.
authorJim Grosbach <grosbach@apple.com>
Thu, 1 Mar 2012 17:30:39 +0000 (17:30 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 1 Mar 2012 17:30:39 +0000 (17:30 +0000)
commitb3acdcc00c9dfb01663780e858e586cc5f04423f
tree3e599f9e2ce9387b4ca051dc16aa85fdc882f07d
parent194f3fa9eadc7dfe9f1750c16e1c2a8ebe11c88c
Move TargetRegisterInfo::getSubReg() to MCRegisterInfo.

Allows us to de-virtualize the function and provides access to it in
the instruction printer, which is useful for handling composite
physical registers (e.g., ARM register lists).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151815 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCRegisterInfo.h
include/llvm/Target/TargetRegisterInfo.h
utils/TableGen/RegisterInfoEmitter.cpp