rocm.bindings.llvm.c.support#

2026-09-24

5 min read time

Applies to Linux and Windows

Advanced Micro Devices, Inc.

Functions#

has_symbol(→ bool)

LLVMLoadLibraryPermanently(Filename)

This function permanently loads the dynamic library at the given path.

LLVMParseCommandLineOptions(argc, argv, Overview)

This function parses the given arguments using the LLVM command line parser.

LLVMSearchForAddressOfSymbol(symbolName)

This function will search through all previously loaded dynamic

LLVMAddSymbol(symbolName, symbolValue)

This functions permanently adds the symbol symbolName with the

Module Contents#

rocm.bindings.llvm.c.support.has_symbol(name: str | bytes | bytearray) → bool#
rocm.bindings.llvm.c.support.LLVMLoadLibraryPermanently(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:

sys::DynamicLibrary::LoadLibraryPermanently()

Args:
Filename (CStr/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMLoadLibraryPermanently(const char * Filename)
rocm.bindings.llvm.c.support.LLVMParseCommandLineOptions(argc, argv, 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:

llvm::cl::ParseCommandLineOptions()

Args:
argc (int):

(undocumented)

argv (Pointer/object):

(undocumented)

Overview (CStr/object):

(undocumented)

C signature

void LLVMParseCommandLineOptions(int argc, const char *const * argv, const char * Overview)
rocm.bindings.llvm.c.support.LLVMSearchForAddressOfSymbol(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:

sys::DynamicLibrary::SearchForAddressOfSymbol()

Args:
symbolName (CStr/object):

(undocumented)

Returns:

None: (undocumented)

C signature

void * LLVMSearchForAddressOfSymbol(const char * symbolName)
rocm.bindings.llvm.c.support.LLVMAddSymbol(symbolName, symbolValue)#

This functions permanently adds the symbol symbolName with the value symbolValue. These symbols are searched before any libraries.

See:

sys::DynamicLibrary::AddSymbol()

Args:
symbolName (CStr/object):

(undocumented)

symbolValue (Pointer/object):

(undocumented)

C signature

void LLVMAddSymbol(const char * symbolName, void * symbolValue)