LLVM  3.7.0
Public Member Functions | Static Public Member Functions | List of all members
llvm::LTOCodeGenerator Struct Reference

C++ class which implements the opaque lto_code_gen_t type. More...

#include <LTOCodeGenerator.h>

Public Member Functions

 LTOCodeGenerator ()
 
 LTOCodeGenerator (std::unique_ptr< LLVMContext > Context)
 
 ~LTOCodeGenerator ()
 
bool addModule (struct LTOModule *)
 
void setModule (struct LTOModule *)
 
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 setOptLevel (unsigned optLevel)
 
void setShouldInternalize (bool Value)
 
void setShouldEmbedUselists (bool Value)
 
void addMustPreserveSymbol (StringRef sym)
 
void setCodeGenDebugOptions (const char *opts)
 setCodeGenDebugOptions - Set codegen debugging options to aid in debugging LTO problems. More...
 
void parseCodeGenDebugOptions ()
 
bool writeMergedModules (const char *path, std::string &errMsg)
 
bool compile_to_file (const char **name, bool disableInline, bool disableGVNLoadPRE, bool disableVectorization, std::string &errMsg)
 
std::unique_ptr< MemoryBuffercompile (bool disableInline, bool disableGVNLoadPRE, bool disableVectorization, std::string &errMsg)
 
bool optimize (bool disableInline, bool disableGVNLoadPRE, bool disableVectorization, std::string &errMsg)
 Optimize merged modules using various IPO passes. More...
 
std::unique_ptr< MemoryBuffercompileOptimized (std::string &errMsg)
 
void setDiagnosticHandler (lto_diagnostic_handler_t, void *)
 
LLVMContextgetContext ()
 

Static Public Member Functions

static const char * getVersionString ()
 

Detailed Description

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 66 of file LTOCodeGenerator.cpp.

LTOCodeGenerator::LTOCodeGenerator ( std::unique_ptr< LLVMContext Context)

Definition at line 71 of file LTOCodeGenerator.cpp.

LTOCodeGenerator::~LTOCodeGenerator ( )

Definition at line 87 of file LTOCodeGenerator.cpp.

References I.

Member Function Documentation

bool LTOCodeGenerator::addModule ( struct LTOModule mod)
void llvm::LTOCodeGenerator::addMustPreserveSymbol ( StringRef  sym)
inline

Definition at line 85 of file LTOCodeGenerator.h.

std::unique_ptr< MemoryBuffer > LTOCodeGenerator::compile ( bool  disableInline,
bool  disableGVNLoadPRE,
bool  disableVectorization,
std::string &  errMsg 
)

Definition at line 288 of file LTOCodeGenerator.cpp.

References compileOptimized(), and optimize().

bool LTOCodeGenerator::compile_to_file ( const char **  name,
bool  disableInline,
bool  disableGVNLoadPRE,
bool  disableVectorization,
std::string &  errMsg 
)

Definition at line 275 of file LTOCodeGenerator.cpp.

References optimize().

std::unique_ptr< MemoryBuffer > LTOCodeGenerator::compileOptimized ( std::string &  errMsg)
LLVMContext& llvm::LTOCodeGenerator::getContext ( )
inline

Definition at line 138 of file LTOCodeGenerator.h.

const char * LTOCodeGenerator::getVersionString ( )
static

Definition at line 58 of file LTOCodeGenerator.cpp.

bool LTOCodeGenerator::optimize ( bool  disableInline,
bool  disableGVNLoadPRE,
bool  disableVectorization,
std::string &  errMsg 
)
void LTOCodeGenerator::parseCodeGenDebugOptions ( )

Definition at line 587 of file LTOCodeGenerator.cpp.

References llvm::cl::ParseCommandLineOptions().

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

Definition at line 79 of file LTOCodeGenerator.h.

void LTOCodeGenerator::setCodeGenDebugOptions ( const char *  options)

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

Definition at line 576 of file LTOCodeGenerator.cpp.

References llvm::getToken().

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

Definition at line 78 of file LTOCodeGenerator.h.

void LTOCodeGenerator::setDebugInfo ( lto_debug_model  debug)
void LTOCodeGenerator::setDiagnosticHandler ( lto_diagnostic_handler_t  DiagHandler,
void *  Ctxt 
)

Definition at line 630 of file LTOCodeGenerator.cpp.

void LTOCodeGenerator::setModule ( struct LTOModule Mod)
void llvm::LTOCodeGenerator::setOptLevel ( unsigned  optLevel)
inline

Definition at line 80 of file LTOCodeGenerator.h.

void llvm::LTOCodeGenerator::setShouldEmbedUselists ( bool  Value)
inline

Definition at line 83 of file LTOCodeGenerator.h.

void llvm::LTOCodeGenerator::setShouldInternalize ( bool  Value)
inline

Definition at line 82 of file LTOCodeGenerator.h.

void LTOCodeGenerator::setTargetOptions ( TargetOptions  options)

Definition at line 158 of file LTOCodeGenerator.cpp.

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

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