This modules provide an interface to libLLVMCore, which implements the LLVM intermediate representation as well as other related types and utilities.
Many exotic languages can interoperate with C code but have a harder time with C++ due to name mangling. So in addition to C, this interface enables tools written in such languages.
◆ LLVMAddSymbol()
void LLVMAddSymbol |
( |
const char * |
symbolName, |
|
|
void * |
symbolValue |
|
) |
| |
This functions permanently adds the symbol symbolName
with the value symbolValue
. These symbols are searched before any libraries.
- See also
- sys::DynamicLibrary::AddSymbol()
◆ LLVMCreateMessage()
char * LLVMCreateMessage |
( |
const char * |
Message | ) |
|
◆ LLVMDisposeMessage()
void LLVMDisposeMessage |
( |
char * |
Message | ) |
|
◆ LLVMGetVersion()
void LLVMGetVersion |
( |
unsigned * |
Major, |
|
|
unsigned * |
Minor, |
|
|
unsigned * |
Patch |
|
) |
| |
Return the major, minor, and patch version of LLVM
The version components are returned via the function's three output parameters or skipped if a NULL pointer was supplied.
◆ LLVMLoadLibraryPermanently()
LLVMBool LLVMLoadLibraryPermanently |
( |
const char * |
Filename | ) |
|
This function permanently loads the dynamic library at the given path. It is safe to call this function multiple times for the same library.
- See also
- sys::DynamicLibrary::LoadLibraryPermanently()
◆ LLVMParseCommandLineOptions()
void LLVMParseCommandLineOptions |
( |
int |
argc, |
|
|
const char *const * |
argv, |
|
|
const char * |
Overview |
|
) |
| |
This function parses the given arguments using the LLVM command line parser. Note that the only stable thing about this function is its signature; you cannot rely on any particular set of command line arguments being interpreted the same way across LLVM versions.
- See also
- llvm::cl::ParseCommandLineOptions()
◆ LLVMSearchForAddressOfSymbol()
void * LLVMSearchForAddressOfSymbol |
( |
const char * |
symbolName | ) |
|
This function will search through all previously loaded dynamic libraries for the symbol symbolName
. If it is found, the address of that symbol is returned. If not, null is returned.
- See also
- sys::DynamicLibrary::SearchForAddressOfSymbol()
◆ LLVMShutdown()
void LLVMShutdown |
( |
void |
| ) |
|
Deallocate and destroy all ManagedStatic variables.
- See also
- llvm::llvm_shutdown
-
ManagedStatic