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.h | |
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.h')
-rw-r--r-- | llvm/lib/Target/Mips/MipsModuleISelDAGToDAG.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/Target/Mips/MipsModuleISelDAGToDAG.h b/llvm/lib/Target/Mips/MipsModuleISelDAGToDAG.h index a96862a6a11..f7a03104880 100644 --- a/llvm/lib/Target/Mips/MipsModuleISelDAGToDAG.h +++ b/llvm/lib/Target/Mips/MipsModuleISelDAGToDAG.h @@ -37,8 +37,7 @@ public: static char ID; explicit MipsModuleDAGToDAGISel(MipsTargetMachine &TM_) - : MachineFunctionPass(ID), - TM(TM_), Subtarget(TM.getSubtarget<MipsSubtarget>()) {} + : MachineFunctionPass(ID), TM(TM_) {} // Pass Name const char *getPassName() const override { @@ -48,10 +47,7 @@ public: bool runOnMachineFunction(MachineFunction &MF) override; protected: - /// Keep a pointer to the MipsSubtarget around so that we can make the right - /// decision when generating code for different targets. - const TargetMachine &TM; - const MipsSubtarget &Subtarget; + MipsTargetMachine &TM; }; /// createMipsISelDag - This pass converts a legalized DAG into a |