aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-19 21:32:53 +0000
committerDan Gohman <gohman@apple.com>2008-08-19 21:32:53 +0000
commitd9f3c480a7bc0969b08ace68af7dcde40f6caff1 (patch)
tree5c297604a82d8ad888af6e57482ab32296de3c98
parentd4641a254ce3413b1542b8efb8bb30f27b5022c7 (diff)
The X86 target will soon have an implementation of createFastISel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55010 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86ISelLowering.cpp8
-rw-r--r--lib/Target/X86/X86ISelLowering.h6
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index b67c625287..3f49c11170 100644
--- a/lib/Target/X86/X86ISelLowering.cpp
+++ b/lib/Target/X86/X86ISelLowering.cpp
@@ -1869,6 +1869,14 @@ bool X86TargetLowering::IsEligibleForTailCallOptimization(SDValue Call,
return false;
}
+FastISel *X86TargetLowering::createFastISel(MachineBasicBlock *mbb,
+ MachineFunction *mf,
+ const TargetInstrInfo *tii) {
+ // FastISel isn't yet supported.
+ return 0;
+}
+
+
//===----------------------------------------------------------------------===//
// Other Lowering Hooks
//===----------------------------------------------------------------------===//
diff --git a/lib/Target/X86/X86ISelLowering.h b/lib/Target/X86/X86ISelLowering.h
index 63866e76da..1415be7b63 100644
--- a/lib/Target/X86/X86ISelLowering.h
+++ b/lib/Target/X86/X86ISelLowering.h
@@ -466,6 +466,12 @@ namespace llvm {
return (VT == MVT::f64 && X86ScalarSSEf64) || // f64 is when SSE2
(VT == MVT::f32 && X86ScalarSSEf32); // f32 is when SSE1
}
+
+ /// createFastISel - This method returns a target specific FastISel object,
+ /// or null if the target does not support "fast" ISel.
+ virtual FastISel *createFastISel(MachineBasicBlock *mbb,
+ MachineFunction *mf,
+ const TargetInstrInfo *tii);
private:
/// Subtarget - Keep a pointer to the X86Subtarget around so that we can