This is an archive of the discontinued LLVM Phabricator instance.

[mips] Access $at only if necessary.
ClosedPublic

Authored by matheusalmeida on Jun 16 2014, 8:35 AM.

Details

Summary

This patch doesn't really change the logic behind expandMemInst but it allows
us to assemble .S files that use .set noat with some macros. For example:

.set noat
lw $k0, offset($k1)

Can expand to:
lui $k0, %hi(offset)
addu $k0, $k0, $k1
lw $k0, %lo(offset)($k0)

with no need to access $at.

Diff Detail

Event Timeline

matheusalmeida retitled this revision from to [mips] Access $at only if necessary..
matheusalmeida updated this object.
matheusalmeida edited the test plan for this revision. (Show Details)
dsanders accepted this revision.Jun 18 2014, 3:26 AM
dsanders edited edge metadata.

LGTM. The test case for the error case is already in mips-noat.s

This revision is now accepted and ready to land.Jun 18 2014, 3:26 AM
vmedic accepted this revision.Jun 18 2014, 5:27 AM
vmedic edited edge metadata.

LGTM