[mips] Move out the WrapperPat declaration from the NotInMicroMips predicate
authorSimon Atanasyan <simon@atanasyan.com>
Sat, 21 Jul 2018 16:16:03 +0000 (16:16 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Sat, 21 Jul 2018 16:16:03 +0000 (16:16 +0000)
commitecd1e0afdd30c136689c13b5b5ef16482b718753
treebc7eaecfa4cd42c670ed4af03d2357b85f776109
parentc93b870c54303806371ba9132af686e88e256a78
[mips] Move out the WrapperPat declaration from the NotInMicroMips predicate

This is a follow-up to the rL335185. Those commit adds some WrapperPat
patterns for microMIPS target. But declaration of the WrapperPat class
is under the NotInMicroMips predicate and microMIPS patterns cannot be
selected because predicate (Subtarget->inMicroMipsMode()) &&
(!Subtarget->inMicroMipsMode()) is always false.

This change move out the WrapperPat class declaration from the
NotInMicroMips predicate and enables microMIPS WrapperPat patterns.

Differential revision: https://reviews.llvm.org/D49533

llvm-svn: 337646
llvm/lib/Target/Mips/MipsInstrInfo.td
llvm/test/CodeGen/Mips/tglobaladdr-wrapper.ll [new file with mode: 0644]
llvm/test/CodeGen/Mips/tls.ll