Fundamentally change the MipsSubtarget replacement machinery:
authorEric Christopher <echristo@gmail.com>
Fri, 18 Jul 2014 23:41:32 +0000 (23:41 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 18 Jul 2014 23:41:32 +0000 (23:41 +0000)
commitec3b0fef11e39e70f47468293c72a1db4b64fd36
treea202ea2b29d5e7c13fbedce1928c22d11712dea7
parent0ce4f580bceb132e4ee3c5ab3fb22bcb61af7344
Fundamentally change the MipsSubtarget replacement machinery:

a) Move the replacement level decision to the target machine.
b) Create additional subtargets at the TargetMachine level to
   cache and make replacement easy.
c) Make the mips16 features obvious.
d) Remove the override logic as it no longer does anything.
e) Have MipsModuleDAGToDAGISel take only the target machine.
f) Have the constant islands pass grab the current subtarget
   from the MachineFunction (via the TargetMachine) instead
   of caching it.
g) Unconditionally initialize TLOF.
h) Remove the old complicated subtarget based resetting and
   replace it with simple conditionals.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213430 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/Mips16ISelDAGToDAG.cpp
lib/Target/Mips/MipsAsmPrinter.cpp
lib/Target/Mips/MipsConstantIslandPass.cpp
lib/Target/Mips/MipsISelDAGToDAG.h
lib/Target/Mips/MipsModuleISelDAGToDAG.cpp
lib/Target/Mips/MipsModuleISelDAGToDAG.h
lib/Target/Mips/MipsSEISelDAGToDAG.cpp
lib/Target/Mips/MipsSubtarget.cpp
lib/Target/Mips/MipsSubtarget.h
lib/Target/Mips/MipsTargetMachine.cpp
lib/Target/Mips/MipsTargetMachine.h