Add a new pass FunctionTargetTransformInfo. This pass serves as a
[oota-llvm.git] / include / llvm / Analysis / TargetTransformInfo.h
index 2e841092ec7856f5d859da8bd169d5420637232f..9acaaa6f2eb7466931d26a2bb7fbb9cde83adc18 100644 (file)
@@ -28,6 +28,7 @@
 
 namespace llvm {
 
+class Function;
 class GlobalValue;
 class Loop;
 class Type;
@@ -227,7 +228,8 @@ public:
   /// \brief Get target-customized preferences for the generic loop unrolling
   /// transformation. The caller will initialize UP with the current
   /// target-independent defaults.
-  virtual void getUnrollingPreferences(Loop *L, UnrollingPreferences &UP) const;
+  virtual void getUnrollingPreferences(const Function *F, Loop *L,
+                                       UnrollingPreferences &UP) const;
 
   /// @}