LLVM API Documentation

llvm::CBE Class Reference

#include <ToolRunner.h>

Inheritance diagram for llvm::CBE:

Inheritance graph
[legend]
Collaboration diagram for llvm::CBE:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CBE (const sys::Path &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, sys::Path &OutputCFile)

Detailed Description

Definition at line 121 of file ToolRunner.h.


Constructor & Destructor Documentation

llvm::CBE::CBE ( const sys::Path llcPath,
GCC Gcc,
const std::vector< std::string > *  Args 
) [inline]

Definition at line 126 of file ToolRunner.h.

llvm::CBE::~CBE (  )  [inline]

Definition at line 131 of file ToolRunner.h.


Member Function Documentation

void CBE::compileProgram ( const std::string &  Bytecode  )  [virtual]

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 322 of file ToolRunner.cpp.

References llvm::sys::Path::eraseFromDisk(), and OutputC().

int CBE::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]

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 328 of file ToolRunner.cpp.

References llvm::GCC::CFile, llvm::GCC::ExecuteProgram(), OutputC(), and llvm::sys::Path::toString().

void CBE::OutputC ( const std::string &  Bytecode,
sys::Path OutputCFile 
) [virtual]

Definition at line 293 of file ToolRunner.cpp.

References llvm::sys::Path::c_str(), DEBUG, llvm::sys::Path::makeUnique(), ProcessFailure(), and RunProgramWithTimeout().

Referenced by compileProgram(), and ExecuteProgram().


The documentation for this class was generated from the following files: