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)
commit4e7d1e7e7bb36bcd715297b36d688bdc0ed96bdf
treea7c30c18e955d430a9e192d803dd196d06e7be18
parente54f10ee77cc973ae83a425efdb7494a111683ab
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.

llvm-svn: 213430
llvm/lib/Target/Mips/Mips16ISelDAGToDAG.cpp
llvm/lib/Target/Mips/MipsAsmPrinter.cpp
llvm/lib/Target/Mips/MipsConstantIslandPass.cpp
llvm/lib/Target/Mips/MipsISelDAGToDAG.h
llvm/lib/Target/Mips/MipsModuleISelDAGToDAG.cpp
llvm/lib/Target/Mips/MipsModuleISelDAGToDAG.h
llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
llvm/lib/Target/Mips/MipsSubtarget.cpp
llvm/lib/Target/Mips/MipsSubtarget.h
llvm/lib/Target/Mips/MipsTargetMachine.cpp
llvm/lib/Target/Mips/MipsTargetMachine.h