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 | 6411e3e62ea9dfe23f5fa24b9d6a84da7ec70a98 (patch) | |
| tree | 5f278461d456eb535cbf5ce0391a8dba7661374b /lib/Target/Blackfin | |
| parent | b99f6f386c561b66675f0b9798487d12ee7a1600 (diff) | |
| download | external_llvm-6411e3e62ea9dfe23f5fa24b9d6a84da7ec70a98.zip external_llvm-6411e3e62ea9dfe23f5fa24b9d6a84da7ec70a98.tar.gz external_llvm-6411e3e62ea9dfe23f5fa24b9d6a84da7ec70a98.tar.bz2 | |
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(-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Blackfin')
| -rw-r--r-- | lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp b/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp index 2c9cc60..c8d71aa 100644 --- a/lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp +++ b/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); } |
