summaryrefslogtreecommitdiff
path: root/tools/bugpoint/BugDriver.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-18 21:35:28 +0000
committerChris Lattner <sabre@nondot.org>2004-02-18 21:35:28 +0000
commita36ec88203a979a686b0ed1d49e0d7039194f040 (patch)
tree2c35edbde04ed762575181341e998fbe656910cb /tools/bugpoint/BugDriver.h
parentf913f40be8501738fa4bdcae2015dd196dcbfc50 (diff)
downloadllvm-a36ec88203a979a686b0ed1d49e0d7039194f040.tar.gz
llvm-a36ec88203a979a686b0ed1d49e0d7039194f040.tar.bz2
llvm-a36ec88203a979a686b0ed1d49e0d7039194f040.tar.xz
make a bunch of methods public
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.h')
-rw-r--r--tools/bugpoint/BugDriver.h51
1 files changed, 25 insertions, 26 deletions
diff --git a/tools/bugpoint/BugDriver.h b/tools/bugpoint/BugDriver.h
index 38630a6fed..64a5235ce6 100644
--- a/tools/bugpoint/BugDriver.h
+++ b/tools/bugpoint/BugDriver.h
@@ -127,6 +127,31 @@ public:
/// the specified one as the current program.
void setNewProgram(Module *M);
+ /// executeProgram - This method runs "Program", capturing the output of the
+ /// program to a file, returning the filename of the file. A recommended
+ /// filename may be optionally specified. If there is a problem with the code
+ /// generator (e.g., llc crashes), this will throw an exception.
+ ///
+ std::string executeProgram(std::string RequestedOutputFilename = "",
+ std::string Bytecode = "",
+ const std::string &SharedObjects = "",
+ AbstractInterpreter *AI = 0,
+ bool *ProgramExitedNonzero = 0);
+
+ /// executeProgramWithCBE - Used to create reference output with the C
+ /// backend, if reference output is not provided. If there is a problem with
+ /// the code generator (e.g., llc crashes), this will throw an exception.
+ ///
+ std::string executeProgramWithCBE(std::string OutputFile = "");
+
+ /// diffProgram - This method executes the specified module and diffs the
+ /// output against the file specified by ReferenceOutputFile. If the output
+ /// is different, true is returned. If there is a problem with the code
+ /// generator (e.g., llc crashes), this will throw an exception.
+ ///
+ bool diffProgram(const std::string &BytecodeFile = "",
+ const std::string &SharedObj = "",
+ bool RemoveBytecode = false);
private:
/// ParseInputFile - Given a bytecode or assembly input filename, parse and
/// return it, or return null if not possible.
@@ -188,32 +213,6 @@ private:
/// environment for executing LLVM programs.
///
bool initializeExecutionEnvironment();
-
- /// executeProgram - This method runs "Program", capturing the output of the
- /// program to a file, returning the filename of the file. A recommended
- /// filename may be optionally specified. If there is a problem with the code
- /// generator (e.g., llc crashes), this will throw an exception.
- ///
- std::string executeProgram(std::string RequestedOutputFilename = "",
- std::string Bytecode = "",
- const std::string &SharedObjects = "",
- AbstractInterpreter *AI = 0,
- bool *ProgramExitedNonzero = 0);
-
- /// executeProgramWithCBE - Used to create reference output with the C
- /// backend, if reference output is not provided. If there is a problem with
- /// the code generator (e.g., llc crashes), this will throw an exception.
- ///
- std::string executeProgramWithCBE(std::string OutputFile = "");
-
- /// diffProgram - This method executes the specified module and diffs the
- /// output against the file specified by ReferenceOutputFile. If the output
- /// is different, true is returned. If there is a problem with the code
- /// generator (e.g., llc crashes), this will throw an exception.
- ///
- bool diffProgram(const std::string &BytecodeFile = "",
- const std::string &SharedObj = "",
- bool RemoveBytecode = false);
};
/// getPassesString - Turn a list of passes into a string which indicates the