OSDN Git Service

[mips] Move ABI-dependent register selections to MipsABIInfo. NFC.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 17 Apr 2015 09:50:21 +0000 (09:50 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 17 Apr 2015 09:50:21 +0000 (09:50 +0000)
commit01218af77f6b1ebd965b2decbfa9d289896d607f
tree9eb0f5a1bb565eed5716b683e8a579a82049dcef
parent5e708e26db256c46ca369270b5494ba11a79e4ad
[mips] Move ABI-dependent register selections to MipsABIInfo. NFC.

Summary:
For example, a common idiom was 'isN64 ? Mips::SP_64 : Mips::SP'. This has
been moved to MipsABIInfo and replaced with 'ABI.GetStackPtr()'.

There are others that should also be moved. This patch sticks to the ones that
are obviously non-functional. The others have minor mistakes that need fixing
at the same time, mostly involving checks for 64-bit GPR's instead of checks
for 64-bit pointers.

Reviewers: tomatabacu

Reviewed By: tomatabacu

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D8972

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235173 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp
lib/Target/Mips/MCTargetDesc/MipsABIInfo.h
lib/Target/Mips/MipsRegisterInfo.cpp
lib/Target/Mips/MipsSEFrameLowering.cpp
lib/Target/Mips/MipsSEInstrInfo.cpp
lib/Target/Mips/MipsSERegisterInfo.cpp