Lines Matching refs:Program
1 //===- ExecutionDriver.cpp - Allow execution of LLVM program --------------===//
10 // This file contains code used to execute the program utilizing one of the
72 cl::desc("Specify the path to the \"safe\" backend program"),
106 // program being debugged.
108 InputArgv("args", cl::Positional, cl::desc("<program arguments>..."),
267 // Emit the program to a bitcode file...
271 OutputPrefix + "-test-program-%%%%%%%.bc", BitcodeFD, BitcodeFile);
286 // Actually compile the program!
291 /// executeProgram - This method runs "Program", capturing the output of the
292 /// program to a file, returning the filename of the file. A recommended
295 std::string BugDriver::executeProgram(const Module *Program,
306 // Emit the program to a bitcode file...
310 OutputPrefix + "-test-program-%%%%%%%.bc", UniqueFD, UniqueFilename);
318 if (writeProgramToFile(BitcodeFile, UniqueFD, Program)) {
359 "*** Program execution timed out! This mechanism is designed to handle\n"
380 std::string BugDriver::executeProgramSafely(const Module *Program,
383 return executeProgram(Program, OutputFile, "", "", SafeInterpreter, Error);
418 compileProgram(Program, &Error);
422 ReferenceOutputFile = executeProgramSafely(Program, Filename, &Error);
442 bool BugDriver::diffProgram(const Module *Program,
447 // Execute the program, generating an output file...
449 executeProgram(Program, "", BitcodeFile, SharedObject, 0, ErrMsg));