diff options
author | Eric Christopher <echristo@gmail.com> | 2014-07-18 23:41:32 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-07-18 23:41:32 +0000 |
commit | 4e7d1e7e7bb36bcd715297b36d688bdc0ed96bdf (patch) | |
tree | a7c30c18e955d430a9e192d803dd196d06e7be18 /llvm/lib/Target/Mips/MipsModuleISelDAGToDAG.cpp | |
parent | e54f10ee77cc973ae83a425efdb7494a111683ab (diff) | |
download | bcm5719-llvm-4e7d1e7e7bb36bcd715297b36d688bdc0ed96bdf.tar.gz bcm5719-llvm-4e7d1e7e7bb36bcd715297b36d688bdc0ed96bdf.zip |
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
Diffstat (limited to 'llvm/lib/Target/Mips/MipsModuleISelDAGToDAG.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsModuleISelDAGToDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsModuleISelDAGToDAG.cpp b/llvm/lib/Target/Mips/MipsModuleISelDAGToDAG.cpp index 03c76eaf199..b011e8fcd8b 100644 --- a/llvm/lib/Target/Mips/MipsModuleISelDAGToDAG.cpp +++ b/llvm/lib/Target/Mips/MipsModuleISelDAGToDAG.cpp @@ -20,7 +20,7 @@ namespace llvm { bool MipsModuleDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) { DEBUG(errs() << "In MipsModuleDAGToDAGISel::runMachineFunction\n"); - const_cast<MipsSubtarget&>(Subtarget).resetSubtarget(&MF); + TM.resetSubtarget(&MF); return false; } |