rocm.bindings.llvm.c.linker#

2026-09-24

4 min read time

Applies to Linux and Windows

Advanced Micro Devices, Inc.

Classes#

LLVMLinkerMode

(No short description)

Functions#

has_symbol(→ bool)

LLVMLinkModules2(Dest, Src)

Links the source module into the destination module.

Module Contents#

rocm.bindings.llvm.c.linker.has_symbol(name: str | bytes | bytearray) → bool#
class rocm.bindings.llvm.c.linker.LLVMLinkerMode#

Bases: enum.IntEnum

(No short description)

LLVMLinkerDestroySource: int#
LLVMLinkerPreserveSource_Removed: int#
rocm.bindings.llvm.c.linker.LLVMLinkModules2(Dest, Src)#

Links the source module into the destination module.

The source module is destroyed. The return value is true if an error occurred, false otherwise. Use the diagnostic handler to get any diagnostic message.

Args:
Dest (Pointer/object):

(undocumented)

Src (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMLinkModules2(LLVMModuleRef Dest, LLVMModuleRef Src)