This is an archive of the discontinued LLVM Phabricator instance.

[mips] Move ABI-dependent register selections to MipsABIInfo. NFC.
ClosedPublic

Authored by dsanders on Apr 10 2015, 8:03 AM.

Details

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.

Diff Detail

Event Timeline

dsanders updated this revision to Diff 23602.Apr 10 2015, 8:03 AM
dsanders retitled this revision from to [mips] Move ABI-dependent register selections to MipsABIInfo. NFC..
dsanders updated this object.
dsanders edited the test plan for this revision. (Show Details)
dsanders added a reviewer: tomatabacu.
dsanders added a subscriber: Unknown Object (MLST).
tomatabacu accepted this revision.Apr 10 2015, 9:27 AM
tomatabacu edited edge metadata.

LGTM with a formatting nit.

lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp
124

Extra line at EOF.

This revision is now accepted and ready to land.Apr 10 2015, 9:27 AM
dsanders closed this revision.Apr 17 2015, 2:53 AM