This is an archive of the discontinued LLVM Phabricator instance.

[mips] Print warning when using register names not available in N32/64
ClosedPublic

Authored by vkalintiris on Sep 9 2014, 8:33 AM.

Details

Summary

The register names t4-t7 are not available in the N32 and N64 ABIs.
This patch prints a warning, when those names are used in N32/64,
along with a fix-it with the correct register names.

Depends on D5270

Diff Detail

Event Timeline

vkalintiris updated this revision to Diff 13472.Sep 9 2014, 8:33 AM
vkalintiris retitled this revision from to [mips] Print warning when using register names not available in N32/64.
vkalintiris updated this object.
vkalintiris edited the test plan for this revision. (Show Details)
vkalintiris added a reviewer: dsanders.
dsanders accepted this revision.Sep 11 2014, 7:33 AM
dsanders edited edge metadata.

LGTM with a couple nits

include/llvm/MC/MCParser/MCAsmLexer.h
77

I'd spell this 'getLocRange()'

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

We should assert that FixedName is not empty.

This revision is now accepted and ready to land.Sep 11 2014, 7:33 AM
vkalintiris edited edge metadata.

Renamed getRange() to getLocRange() and added an assert for the FixedName string.

dsanders requested changes to this revision.Sep 14 2014, 7:20 AM
dsanders edited edge metadata.

Thanks. I nearly forgot about this: We need to send it to the list since it touches common code but I'll be happy to LGTM it properly once I see it there.

This revision now requires changes to proceed.Sep 14 2014, 7:20 AM
vkalintiris added a subscriber: Unknown Object (MLST).Sep 26 2014, 6:46 AM

Added llvm-commits because this patch now touches common code.

dsanders accepted this revision.Sep 29 2014, 7:05 AM
dsanders edited edge metadata.

LGTM

This revision is now accepted and ready to land.Sep 29 2014, 7:05 AM
dsanders closed this revision.Oct 3 2014, 8:47 AM