The preheader insertion pass only depends on the CFG. Mark it as such, which
[oota-llvm.git] / tools / bugpoint / BugDriver.h
index cf2ae58fcdd5ad1e9c856b55f018051cbca4f881..eff11ec0de476974c25296f97d04cfd0c39b4bd3 100644 (file)
@@ -27,6 +27,8 @@ class ReduceCrashingBlocks;
 class CBE;
 class GCC;
 
+extern bool DisableSimplifyCFG;
+
 class BugDriver {
   const std::string ToolName;  // Name of bugpoint
   std::string ReferenceOutputFile; // Name of `good' output file
@@ -91,6 +93,8 @@ public:
   /// functions that are not under consideration.
   bool debugCodeGenerator();
 
+  /// isExecutingJIT - Returns true if bugpoint is currently testing the JIT
+  ///
   bool isExecutingJIT();
 
 private:
@@ -145,9 +149,10 @@ private:
 
   /// performFinalCleanups - This method clones the current Program and performs
   /// a series of cleanups intended to get rid of extra cruft on the module
-  /// before handing it to the user...
+  /// before handing it to the user... if the module parameter is specified, it
+  /// operates directly on the specified Module, modifying it in place.
   ///
-  Module *performFinalCleanups() const;
+  Module *performFinalCleanups(Module *M = 0) const;
 
   /// initializeExecutionEnvironment - This method is used to set up the
   /// environment for executing LLVM programs.