LLVM API Documentation

Public Member Functions | Static Public Member Functions
llvm::LTOCodeGenerator Struct Reference

#include <LTOCodeGenerator.h>

List of all members.

Public Member Functions

 LTOCodeGenerator ()
 ~LTOCodeGenerator ()
bool addModule (struct LTOModule *, std::string &errMsg)
void setTargetOptions (TargetOptions options)
void setDebugInfo (lto_debug_model)
void setCodePICModel (lto_codegen_model)
void setCpu (const char *mCpu)
void setAttr (const char *mAttr)
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)
void setDiagnosticHandler (lto_diagnostic_handler_t, void *)

Static Public Member Functions

static const char * getVersionString ()

Detailed Description

C++ class which implements the opaque lto_code_gen_t type.

Definition at line 60 of file LTOCodeGenerator.h.


Constructor & Destructor Documentation

Definition at line 66 of file LTOCodeGenerator.cpp.

Definition at line 74 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 
)

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 
)

Definition at line 58 of file LTOCodeGenerator.cpp.

References PACKAGE_NAME, and PACKAGE_VERSION.

Definition at line 510 of file LTOCodeGenerator.cpp.

References llvm::cl::ParseCommandLineOptions().

void llvm::LTOCodeGenerator::setAttr ( const char *  mAttr) [inline]

Definition at line 74 of file LTOCodeGenerator.h.

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

Definition at line 499 of file LTOCodeGenerator.cpp.

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

void llvm::LTOCodeGenerator::setCpu ( const char *  mCpu) [inline]

Definition at line 73 of file LTOCodeGenerator.h.

void LTOCodeGenerator::setDiagnosticHandler ( lto_diagnostic_handler_t  DiagHandler,
void *  Ctxt 
)

Definition at line 553 of file LTOCodeGenerator.cpp.

Definition at line 126 of file LTOCodeGenerator.cpp.

bool LTOCodeGenerator::writeMergedModules ( const char *  path,
std::string &  errMsg 
)

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