The X86 target will soon have an implementation of createFastISel.
llvm-svn: 55010
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index b67c625..3f49c11 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -1869,6 +1869,14 @@
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 63866e7..1415be7 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.h
+++ b/llvm/lib/Target/X86/X86ISelLowering.h
@@ -466,6 +466,12 @@
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