This is an archive of the discontinued LLVM Phabricator instance.

[mips] [IAS] Rename getATRegNum and setATReg to {g,s}etATRegIndex. NFC.
ClosedPublic

Authored by tomatabacu on Mar 20 2015, 5:29 AM.

Diff Detail

Event Timeline

tomatabacu updated this revision to Diff 22341.Mar 20 2015, 5:29 AM
tomatabacu retitled this revision from to [mips] [IAS] Rename MipsAssemblerOptions::getATRegNum to getATReg. NFC..
tomatabacu updated this object.
tomatabacu edited the test plan for this revision. (Show Details)
tomatabacu added a reviewer: dsanders.
tomatabacu added a subscriber: Unknown Object (MLST).
dsanders edited edge metadata.Mar 24 2015, 4:11 AM

I agree with the principle that the set/get functions should have the same names. I think we ought to make it clear that it's an index though. Maybe, [gs]etATRegIndex()?

lib/Target/Mips/AsmParser/MipsAsmParser.cpp
2207

Are you going to eliminate the casts in a follow up?

Replied to an inline comment.

lib/Target/Mips/AsmParser/MipsAsmParser.cpp
2207

D8479 takes care of those casts.

tomatabacu updated this revision to Diff 23411.Apr 8 2015, 4:13 AM
tomatabacu edited edge metadata.

Renamed getATRegNum to getATRegIndex instead of getATReg.
Also renamed setATReg to setATRegIndex.

tomatabacu retitled this revision from [mips] [IAS] Rename MipsAssemblerOptions::getATRegNum to getATReg. NFC. to [mips] [IAS] Rename getATRegNum and setATReg to {g,s}etATRegIndex. NFC..Apr 8 2015, 4:13 AM
tomatabacu updated this object.
dsanders accepted this revision.Apr 27 2015, 2:25 AM
dsanders edited edge metadata.

LGTM

This revision is now accepted and ready to land.Apr 27 2015, 2:25 AM
tomatabacu updated this object.Apr 27 2015, 4:04 AM
tomatabacu edited edge metadata.
tomatabacu closed this revision.Apr 27 2015, 6:16 AM