LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::LLC Class Reference

#include <ToolRunner.h>

Inheritance diagram for llvm::LLC:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLC (const std::string &llcPath, GCC *Gcc, const std::vector< std::string > *Args)
 ~LLC ()
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)
void OutputAsm (const std::string &Bytecode, std::string &OutputAsmFile)

Detailed Description

Definition at line 157 of file ToolRunner.h.


Constructor & Destructor Documentation

llvm::LLC::LLC const std::string &  llcPath,
GCC Gcc,
const std::vector< std::string > *  Args
[inline]
 

Definition at line 162 of file ToolRunner.h.

llvm::LLC::~LLC  )  [inline]
 

Definition at line 167 of file ToolRunner.h.


Member Function Documentation

void LLC::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 151 of file ToolRunner.cpp.

References OutputAsm(), and llvm::removeFile().

int LLC::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 157 of file ToolRunner.cpp.

References llvm::GCC::AsmFile, llvm::GCC::ExecuteProgram(), and OutputAsm().

void LLC::OutputAsm const std::string &  Bytecode,
std::string &  OutputAsmFile
 

Definition at line 125 of file ToolRunner.cpp.

References DEBUG, llvm::getUniqueFilename(), ProcessFailure(), and llvm::RunProgramWithTimeout().

Referenced by compileProgram(), and ExecuteProgram().


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