LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
LTOCodeGenerator Struct Reference

#include <LTOCodeGenerator.h>

Public Member Functions

 LTOCodeGenerator ()
 
 ~LTOCodeGenerator ()
 
bool addModule (struct LTOModule *, std::string &errMsg)
 
void setTargetOptions (llvm::TargetOptions options)
 
void setDebugInfo (lto_debug_model)
 
void setCodePICModel (lto_codegen_model)
 
void setCpu (const char *mCpu)
 
void addMustPreserveSymbol (const char *sym)
 
void setCodeGenDebugOptions (const char *opts)
 
void parseCodeGenDebugOptions ()
 
bool writeMergedModules (const char *path, std::string &errMsg)
 
bool compile_to_file (const char **name, bool disableOpt, bool disableInline, bool disableGVNLoadPRE, std::string &errMsg)
 
const void * compile (size_t *length, bool disableOpt, bool disableInline, bool disableGVNLoadPRE, std::string &errMsg)
 

Static Public Member Functions

static const char * getVersionString ()
 

Detailed Description

LTOCodeGenerator - C++ class which implements the opaque lto_code_gen_t type.

Definition at line 61 of file LTOCodeGenerator.h.

Constructor & Destructor Documentation

LTOCodeGenerator::LTOCodeGenerator ( )

Definition at line 62 of file LTOCodeGenerator.cpp.

LTOCodeGenerator::~LTOCodeGenerator ( )

Definition at line 69 of file LTOCodeGenerator.cpp.

References llvm::Linker::deleteModule(), llvm::LibFunc::free, and I.

Member Function Documentation

bool LTOCodeGenerator::addModule ( struct LTOModule mod,
std::string &  errMsg 
)
void LTOCodeGenerator::addMustPreserveSymbol ( const char *  sym)
inline

Definition at line 76 of file LTOCodeGenerator.h.

const void * LTOCodeGenerator::compile ( size_t *  length,
bool  disableOpt,
bool  disableInline,
bool  disableGVNLoadPRE,
std::string &  errMsg 
)
bool LTOCodeGenerator::compile_to_file ( const char **  name,
bool  disableOpt,
bool  disableInline,
bool  disableGVNLoadPRE,
std::string &  errMsg 
)
const char * LTOCodeGenerator::getVersionString ( )
static

Definition at line 54 of file LTOCodeGenerator.cpp.

void LTOCodeGenerator::parseCodeGenDebugOptions ( )

Definition at line 516 of file LTOCodeGenerator.cpp.

References llvm::cl::ParseCommandLineOptions().

void LTOCodeGenerator::setCodeGenDebugOptions ( const char *  options)

setCodeGenDebugOptions - Set codegen debugging options to aid in debugging LTO problems.

Definition at line 505 of file LTOCodeGenerator.cpp.

References llvm::getToken(), and llvm::LibFunc::strdup.

void LTOCodeGenerator::setCodePICModel ( lto_codegen_model  model)
void LTOCodeGenerator::setCpu ( const char *  mCpu)
inline

Definition at line 74 of file LTOCodeGenerator.h.

void LTOCodeGenerator::setDebugInfo ( lto_debug_model  debug)
void LTOCodeGenerator::setTargetOptions ( llvm::TargetOptions  options)
bool LTOCodeGenerator::writeMergedModules ( const char *  path,
std::string &  errMsg 
)

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