Replace tablegen uses of EVT with MVT. Add isOverloaded() to MVT to facilitate. Remov...
[oota-llvm.git] / include / llvm / CodeGen / LiveIntervalAnalysis.h
index d8437f09aaa7a1d9d2624857286ed54e08d47ceb..74e47413d8e33e786901d31b1264a70f99f5bfb4 100644 (file)
@@ -45,6 +45,7 @@ namespace llvm {
   class TargetInstrInfo;
   class TargetRegisterClass;
   class VirtRegMap;
+  class MachineBlockFrequencyInfo;
 
   class LiveIntervals : public MachineFunctionPass {
     MachineFunction* MF;
@@ -100,7 +101,9 @@ namespace llvm {
     virtual ~LiveIntervals();
 
     // Calculate the spill weight to assign to a single instruction.
-    static float getSpillWeight(bool isDef, bool isUse, BlockFrequency freq);
+    static float getSpillWeight(bool isDef, bool isUse,
+                                const MachineBlockFrequencyInfo *MBFI,
+                                const MachineInstr *Instr);
 
     LiveInterval &getInterval(unsigned Reg) {
       if (hasInterval(Reg))