Use the 'target-features' and 'target-cpu' attributes to reset the subtarget features.
[oota-llvm.git] / include / llvm / Target / TargetSubtargetInfo.h
index 3f22f47a0de68c957fdb825f3727bcc92cbd5a44..b2d405de8464cdcd31c68374a85908e13bd8539a 100644 (file)
@@ -19,6 +19,7 @@
 
 namespace llvm {
 
+class MachineFunction;
 class MachineInstr;
 class SDep;
 class SUnit;
@@ -73,6 +74,9 @@ public:
   // the latency of a schedule dependency.
   virtual void adjustSchedDependency(SUnit *def, SUnit *use,
                                      SDep& dep) const { }
+
+  /// \brief Reset the features for the subtarget.
+  virtual void resetSubtargetFeatures(const MachineFunction *MF) { }
 };
 
 } // End llvm namespace