The X86 target will soon have an implementation of createFastISel.
authorDan Gohman <gohman@apple.com>
Tue, 19 Aug 2008 21:32:53 +0000 (21:32 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 19 Aug 2008 21:32:53 +0000 (21:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55010 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h

index b67c625287b1a27ff73bd7449252dc3ed5d6d4f0..3f49c11170c220c76ac841ab87681225f2a5f114 100644 (file)
@@ -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
 //===----------------------------------------------------------------------===//
index 63866e76daccfa3adcd2bb0d75e8cbd302e97043..1415be7b63d38857b7efcdaad474e4c557e37713 100644 (file)
@@ -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