LLVM API Documentation
#include <LTOModule.h>
Public Member Functions | |
const char * | getTargetTriple () |
getTargetTriple - Return the Module's target triple. More... | |
void | setTargetTriple (const char *triple) |
setTargetTriple - Set the Module's target triple. More... | |
uint32_t | getSymbolCount () |
getSymbolCount - Get the number of symbols More... | |
lto_symbol_attributes | getSymbolAttributes (uint32_t index) |
const char * | getSymbolName (uint32_t index) |
getSymbolName - Get the name of the symbol at the specified index. More... | |
llvm::Module * | getLLVVMModule () |
getLLVVMModule - Return the Module. More... | |
const std::vector< const char * > & | getAsmUndefinedRefs () |
getAsmUndefinedRefs - More... | |
Static Public Member Functions | |
static bool | isBitcodeFile (const void *mem, size_t length) |
static bool | isBitcodeFile (const char *path) |
static bool | isBitcodeFileForTarget (const void *mem, size_t length, const char *triplePrefix) |
static bool | isBitcodeFileForTarget (const char *path, const char *triplePrefix) |
static LTOModule * | makeLTOModule (const char *path, llvm::TargetOptions options, std::string &errMsg) |
static LTOModule * | makeLTOModule (int fd, const char *path, size_t size, llvm::TargetOptions options, std::string &errMsg) |
static LTOModule * | makeLTOModule (int fd, const char *path, size_t map_size, off_t offset, llvm::TargetOptions options, std::string &errMsg) |
static LTOModule * | makeLTOModule (const void *mem, size_t length, llvm::TargetOptions options, std::string &errMsg) |
LTOModule - C++ class which implements the opaque lto_module_t type.
Definition at line 39 of file LTOModule.h.
|
inline |
getAsmUndefinedRefs -
Definition at line 134 of file LTOModule.h.
Referenced by LTOCodeGenerator::addModule().
|
inline |
getLLVVMModule - Return the Module.
Definition at line 131 of file LTOModule.h.
References llvm::OwningPtr< T >::get().
Referenced by LTOCodeGenerator::addModule().
|
inline |
getSymbolAttributes - Get the attributes for a symbol at the specified index.
Definition at line 117 of file LTOModule.h.
References attributes.
|
inline |
getSymbolCount - Get the number of symbols
Definition at line 111 of file LTOModule.h.
|
inline |
getSymbolName - Get the name of the symbol at the specified index.
Definition at line 124 of file LTOModule.h.
|
inline |
getTargetTriple - Return the Module's target triple.
Definition at line 101 of file LTOModule.h.
References llvm::Module::getTargetTriple().
|
static |
isBitcodeFile - Returns 'true' if the file or memory contents is LLVM bitcode.
isBitcodeFile - Returns 'true' if the file (or memory contents) is LLVM bitcode.
Definition at line 51 of file LTOModule.cpp.
References llvm::sys::fs::identify_magic().
|
static |
Definition at line 56 of file LTOModule.cpp.
References llvm::sys::fs::identify_magic().
|
static |
isBitcodeFileForTarget - Returns 'true' if the file or memory contents is LLVM bitcode for the specified triple.
isBitcodeFileForTarget - Returns 'true' if the file (or memory contents) is LLVM bitcode for the specified triple.
Definition at line 65 of file LTOModule.cpp.
|
static |
Definition at line 73 of file LTOModule.cpp.
References llvm::OwningPtr< T >::take().
|
static |
makeLTOModule - Create an LTOModule. N.B. These methods take ownership of the buffer. The caller must have initialized the Targets, the TargetMCs, the AsmPrinters, and the AsmParsers by calling:
InitializeAllTargets(); InitializeAllTargetMCs(); InitializeAllAsmPrinters(); InitializeAllAsmParsers();
makeLTOModule - Create an LTOModule. N.B. These methods take ownership of the buffer.
Definition at line 91 of file LTOModule.cpp.
References llvm::OwningPtr< T >::take().
Referenced by makeLTOModule().
|
static |
Definition at line 101 of file LTOModule.cpp.
References makeLTOModule().
|
static |
Definition at line 107 of file LTOModule.cpp.
References makeLTOModule(), and llvm::OwningPtr< T >::take().
|
static |
Definition at line 121 of file LTOModule.cpp.
References makeLTOModule(), and llvm::OwningPtr< T >::take().
|
inline |
setTargetTriple - Set the Module's target triple.
Definition at line 106 of file LTOModule.h.
References llvm::Module::setTargetTriple().