LLVM API Documentation
#include <ToolRunner.h>
Inheritance diagram for llvm::CBE:
Public Member Functions | |
CBE (const std::string &llcPath, GCC *Gcc, const std::vector< std::string > *Args) | |
~CBE () | |
virtual void | compileProgram (const std::string &Bytecode) |
virtual int | ExecuteProgram (const std::string &Bytecode, const std::vector< std::string > &Args, const std::string &InputFile, const std::string &OutputFile, const std::vector< std::string > &SharedLibs=std::vector< std::string >(), unsigned Timeout=0) |
virtual void | OutputC (const std::string &Bytecode, std::string &OutputCFile) |
Definition at line 120 of file ToolRunner.h.
|
Definition at line 125 of file ToolRunner.h. |
|
Definition at line 130 of file ToolRunner.h. |
|
compileProgram - Compile the specified program from bytecode to executable code. This does not produce any output, it is only used when debugging the code generator. If the code generator fails, an exception should be thrown, otherwise, this function will just return. Reimplemented from llvm::AbstractInterpreter. Definition at line 294 of file ToolRunner.cpp. References OutputC(), and llvm::removeFile(). |
|
ExecuteProgram - Run the specified bytecode file, emitting output to the specified filename. This returns the exit code of the program. Implements llvm::AbstractInterpreter. Definition at line 300 of file ToolRunner.cpp. References llvm::GCC::CFile, llvm::GCC::ExecuteProgram(), and OutputC(). |
|
Definition at line 266 of file ToolRunner.cpp. References DEBUG, llvm::getUniqueFilename(), ProcessFailure(), and llvm::RunProgramWithTimeout(). Referenced by compileProgram(), and ExecuteProgram(). |