Don't override subreg functions in targets without subregisters.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 3 May 2012 16:26:20 +0000 (16:26 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 3 May 2012 16:26:20 +0000 (16:26 +0000)
commit309076ff76c61e03ddd3a0fbbfded3042d2da2e5
treee23f9cda6f609d11487dc0a940a88b25d4907921
parent71d56462a1bc885c97321eff2fc4b481fd3bf452
Don't override subreg functions in targets without subregisters.

Some targets have no sub-registers at all. Use the TargetRegisterInfo
versions of composeSubRegIndices(), getSubClassWithSubReg(), and
getMatchingSuperRegClass() for those targets.

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