This is an archive of the discontinued LLVM Phabricator instance.

[mips] Disable the selection of mixed microMIPS/MIPS code
ClosedPublic

Authored by atanasyan on Aug 30 2018, 3:31 AM.

Details

Summary

This patch modifies hasStandardEncoding() / inMicroMipsMode() / inMips16Mode() methods of the MipsSubtarget class so only one can be true at any one time. That prevents the selection of microMIPS and MIPS instructions and patterns that are defined in TableGen files at the same time. A few new patterns and instruction definitions hae been added to keep test cases passed.

Diff Detail

Repository
rL LLVM

Event Timeline

atanasyan created this revision.Aug 30 2018, 3:31 AM

It seems that I cannot apply this patch without applying D51482 first, because that patch introduces the test file.
They should be either decoupled or made dependent on phabricator to indicate the relation.

It seems that I cannot apply this patch without applying D51482 first, because that patch introduces the test file.
They should be either decoupled or made dependent on phabricator to indicate the relation.

I committed D51482 patch at rL341221. Now it's possible to apply D51483 to the trunk.

This revision is now accepted and ready to land.Sep 3 2018, 4:15 AM
This revision was automatically updated to reflect the committed changes.