summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit4619e93bd303d0d71a0c70e52a0cc816b345d1c7 (patch)
treebf06c12ce6e2a6f44c57467363fd4fe1a44c2935 /llvm/lib
parentd68c96e51ae984759415febe688e61881a0a02da (diff)
downloadbcm5719-llvm-4619e93bd303d0d71a0c70e52a0cc816b345d1c7.tar.gz
bcm5719-llvm-4619e93bd303d0d71a0c70e52a0cc816b345d1c7.zip
The X86 target will soon have an implementation of createFastISel.
llvm-svn: 55010
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp8
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.h6
2 files changed, 14 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index b67c625287b..3f49c11170c 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/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/llvm/lib/Target/X86/X86ISelLowering.h b/llvm/lib/Target/X86/X86ISelLowering.h
index 63866e76dac..1415be7b63d 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.h
+++ b/llvm/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
OpenPOWER on IntegriCloud