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/XCore | |
| 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/XCore')
| -rw-r--r-- | lib/Target/XCore/XCoreISelDAGToDAG.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/Target/XCore/XCoreISelDAGToDAG.cpp b/lib/Target/XCore/XCoreISelDAGToDAG.cpp index 3e1639e..b1ab132 100644 --- a/lib/Target/XCore/XCoreISelDAGToDAG.cpp +++ b/lib/Target/XCore/XCoreISelDAGToDAG.cpp @@ -65,8 +65,6 @@ namespace { bool SelectADDRcpii(SDNode *Op, SDValue Addr, SDValue &Base, SDValue &Offset); - virtual void InstructionSelect(); - virtual const char *getPassName() const { return "XCore DAG->DAG Pattern Instruction Selection"; } @@ -147,15 +145,6 @@ bool XCoreDAGToDAGISel::SelectADDRcpii(SDNode *Op, SDValue Addr, return false; } -/// InstructionSelect - This callback is invoked by -/// SelectionDAGISel when it has created a SelectionDAG for us to codegen. -void XCoreDAGToDAGISel::InstructionSelect() { - // Select target instructions for the DAG. - SelectRoot(*CurDAG); - - CurDAG->RemoveDeadNodes(); -} - SDNode *XCoreDAGToDAGISel::Select(SDNode *N) { DebugLoc dl = N->getDebugLoc(); EVT NVT = N->getValueType(0); |
