From e97f1a3c474394928caac5f85f8554eab0471a05 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 22 Aug 2008 00:20:26 +0000 Subject: Factor out the predicate check code from DAGISelEmitter.cpp and use it in FastISelEmitter.cpp, and make FastISel subtarget aware. Among other things, this lets it work properly on x86 targets that don't have SSE, where it successfully selects x87 instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55156 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/FastISel.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/CodeGen/SelectionDAG/FastISel.cpp') diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 450596e..3880283 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -220,10 +220,12 @@ FastISel::SelectInstructions(BasicBlock::iterator Begin, } FastISel::FastISel(MachineFunction &mf) - : MF(mf), MRI(mf.getRegInfo()), - TD(*mf.getTarget().getTargetData()), - TII(*mf.getTarget().getInstrInfo()), - TLI(*mf.getTarget().getTargetLowering()) { + : MF(mf), + MRI(mf.getRegInfo()), + TM(mf.getTarget()), + TD(*TM.getTargetData()), + TII(*TM.getInstrInfo()), + TLI(*TM.getTargetLowering()) { } FastISel::~FastISel() {} -- cgit v1.1