This is an archive of the discontinued LLVM Phabricator instance.

[mips] Add ISA_<name> adverbs and start using them instead of AdditionalPredicates overrides
ClosedPublic

Authored by dsanders on May 7 2014, 3:37 AM.

Details

Summary

One small functional change. The recently added PAUSE instruction now has
the HasStdEnc predicate which was accidentally removed by a Requires<>.

Depends on D3640

Diff Detail

Event Timeline

dsanders updated this revision to Diff 9155.May 7 2014, 3:37 AM
dsanders retitled this revision from to [mips] Add ISA_<name> adverbs and start using them instead of AdditionalPredicates overrides.
dsanders updated this object.
dsanders edited the test plan for this revision. (Show Details)
dsanders added a reviewer: vmedic.
vmedic added inline comments.May 7 2014, 5:06 AM
lib/Target/Mips/Mips64InstrInfo.td
121

This looks like an alignment issue:

lib/Target/Mips/MipsInstrInfo.td
1010

Alignment

I've fixed those two alignment issues in my working copy. Does it look good to you apart from them?

lib/Target/Mips/Mips64InstrInfo.td
121

The line wrap occurs before the last argument to shift_rotate_imm on this def (because the immZExt6 is slightly too long for 80 cols), whereas the other two wrap after the last argument.

I'll line-wrap again after the last argument to make it look less strange:

def DROTR  : shift_rotate_imm<"drotr", uimm6, GPR64Opnd, II_DROTR, rotr,          
                              immZExt6>,                                          
             SRA_FM<0x3a, 1>, ISA_MIPS64R2;
lib/Target/Mips/MipsInstrInfo.td
1010

The same thing happened here. I'll solve it the same way:

def ROTR  : MMRel, shift_rotate_imm<"rotr", uimm5, GPR32Opnd, II_ROTR, rotr,      
                                    immZExt5>,                                    
            SRA_FM<2, 1>, ISA_MIPS32R2;
vmedic accepted this revision.May 7 2014, 6:28 AM
vmedic edited edge metadata.

LGTM

This revision is now accepted and ready to land.May 7 2014, 6:28 AM
dsanders closed this revision.May 7 2014, 7:04 AM