diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-02 06:34:30 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-02 06:34:30 +0000 |
| commit | f98f124a73178cf01e62efe7bddbdbb58876b332 (patch) | |
| tree | 8cd565dffafcc3fa21eaef9b85d7142ac259bab9 /llvm/lib/Target/Blackfin | |
| parent | 118dc6a6456e1c293584f4917f3b8e83e065cd5e (diff) | |
| download | bcm5719-llvm-f98f124a73178cf01e62efe7bddbdbb58876b332.tar.gz bcm5719-llvm-f98f124a73178cf01e62efe7bddbdbb58876b332.zip | |
Sink InstructionSelect() out of each target into SDISel, and rename it
DoInstructionSelection. Inline "SelectRoot" into it from DAGISelHeader.
Sink some other stuff out of DAGISelHeader into SDISel.
Eliminate the various 'Indent' stuff from various targets, which dates
to when isel was recursive.
17 files changed, 114 insertions(+), 430 deletions(-)
llvm-svn: 97555
Diffstat (limited to 'llvm/lib/Target/Blackfin')
| -rw-r--r-- | llvm/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp b/llvm/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp index 2c9cc6019f7..c8d71aabd1b 100644 --- a/llvm/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp +++ b/llvm/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp @@ -41,7 +41,7 @@ namespace { BlackfinDAGToDAGISel(BlackfinTargetMachine &TM, CodeGenOpt::Level OptLevel) : SelectionDAGISel(TM, OptLevel) {} - virtual void InstructionSelect(); + virtual void PostprocessISelDAG(); virtual const char *getPassName() const { return "Blackfin DAG->DAG Pattern Instruction Selection"; @@ -72,13 +72,7 @@ FunctionPass *llvm::createBlackfinISelDag(BlackfinTargetMachine &TM, return new BlackfinDAGToDAGISel(TM, OptLevel); } -/// InstructionSelect - This callback is invoked by -/// SelectionDAGISel when it has created a SelectionDAG for us to codegen. -void BlackfinDAGToDAGISel::InstructionSelect() { - // Select target instructions for the DAG. - SelectRoot(*CurDAG); - DEBUG(errs() << "Selected selection DAG before regclass fixup:\n"); - DEBUG(CurDAG->dump()); +void BlackfinDAGToDAGISel::PostprocessISelDAG() { FixRegisterClasses(*CurDAG); } |

