[PATCH] D51483: [mips] Disable the selection of mixed microMIPS/MIPS code

Simon Atanasyan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 30 03:31:12 PDT 2018


atanasyan created this revision.
atanasyan added reviewers: abeserminji, petarj, smaksimovic.
Herald added subscribers: jrtc27, arichardson, sdardis.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D51483

Files:
  lib/Target/Mips/MicroMipsInstrFPU.td
  lib/Target/Mips/MicroMipsInstrInfo.td
  lib/Target/Mips/MipsSEInstrInfo.cpp
  lib/Target/Mips/MipsSubtarget.h
  test/CodeGen/Mips/micromips-mtc-mfc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51483.163292.patch
Type: text/x-patch
Size: 5470 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180830/d0dae9b3/attachment.bin>


More information about the llvm-commits mailing list