rocm.bindings.llvm.c.comdat#

2026-09-24

5 min read time

Applies to Linux and Windows

Advanced Micro Devices, Inc.

Classes#

LLVMComdatSelectionKind

(No short description)

Functions#

has_symbol(→ bool)

LLVMGetOrInsertComdat(M, Name)

Return the Comdat in the module with the specified name.

LLVMGetComdat(V)

Get the Comdat assigned to the given global object.

LLVMSetComdat(V, C)

Assign the Comdat to the given global object.

LLVMGetComdatSelectionKind(C)

Get the conflict resolution selection kind for the Comdat.

LLVMSetComdatSelectionKind(C, Kind)

Set the conflict resolution selection kind for the Comdat.

Module Contents#

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

Bases: enum.IntEnum

(No short description)

LLVMAnyComdatSelectionKind: int#
LLVMExactMatchComdatSelectionKind: int#
LLVMLargestComdatSelectionKind: int#
LLVMNoDeduplicateComdatSelectionKind: int#
LLVMSameSizeComdatSelectionKind: int#
rocm.bindings.llvm.c.comdat.LLVMGetOrInsertComdat(M, Name)#

Return the Comdat in the module with the specified name.

It is created if it didn’t already exist.

See:

llvm::Module::getOrInsertComdat()

Args:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMComdatRef LLVMGetOrInsertComdat(LLVMModuleRef M, const char * Name)
rocm.bindings.llvm.c.comdat.LLVMGetComdat(V)#

Get the Comdat assigned to the given global object.

See:

llvm::GlobalObject::getComdat()

Args:
V (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMComdatRef LLVMGetComdat(LLVMValueRef V)
rocm.bindings.llvm.c.comdat.LLVMSetComdat(V, C)#

Assign the Comdat to the given global object.

See:

llvm::GlobalObject::setComdat()

Args:
V (Pointer/object):

(undocumented)

C (Pointer/object):

(undocumented)

C signature

void LLVMSetComdat(LLVMValueRef V, LLVMComdatRef C)
rocm.bindings.llvm.c.comdat.LLVMGetComdatSelectionKind(C)#

Get the conflict resolution selection kind for the Comdat.

See:

llvm::Comdat::getSelectionKind()

Args:
C (Pointer/object):

(undocumented)

Returns:

LLVMComdatSelectionKind: (undocumented)

C signature

LLVMComdatSelectionKind LLVMGetComdatSelectionKind(LLVMComdatRef C)
rocm.bindings.llvm.c.comdat.LLVMSetComdatSelectionKind(C, Kind)#

Set the conflict resolution selection kind for the Comdat.

See:

llvm::Comdat::setSelectionKind()

Args:
C (Pointer/object):

(undocumented)

Kind (LLVMComdatSelectionKind):

(undocumented)

C signature

void LLVMSetComdatSelectionKind(LLVMComdatRef C, LLVMComdatSelectionKind Kind)