aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-22 00:20:26 +0000
committerDan Gohman <gohman@apple.com>2008-08-22 00:20:26 +0000
commite97f1a3c474394928caac5f85f8554eab0471a05 (patch)
tree6b3248d4c091d2b5b82e3ce2e55ddcf2b8495ee6 /lib/CodeGen/SelectionDAG/FastISel.cpp
parentd3d47fe10ad0095b34b568a454231682878cf117 (diff)
downloadexternal_llvm-e97f1a3c474394928caac5f85f8554eab0471a05.zip
external_llvm-e97f1a3c474394928caac5f85f8554eab0471a05.tar.gz
external_llvm-e97f1a3c474394928caac5f85f8554eab0471a05.tar.bz2
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/FastISel.cpp10
1 files changed, 6 insertions, 4 deletions
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() {}