rocm.bindings.llvm.c.bitreader#

2026-09-24

6 min read time

Applies to Linux and Windows

Advanced Micro Devices, Inc.

Functions#

has_symbol(→ bool)

LLVMParseBitcode(MemBuf)

(No short description, might be part of a group.)

LLVMParseBitcode2(MemBuf)

(No short description, might be part of a group.)

LLVMParseBitcodeInContext(ContextRef, MemBuf)

This is deprecated. Use LLVMParseBitcodeInContext2.

LLVMParseBitcodeInContext2(ContextRef, MemBuf)

This is deprecated. Use LLVMParseBitcodeInContext2.

LLVMGetBitcodeModuleInContext(ContextRef, MemBuf)

Reads a module from the specified path, returning via the OutMP parameter

LLVMGetBitcodeModuleInContext2(ContextRef, MemBuf)

Reads a module from the given memory buffer, returning via the OutMP

LLVMGetBitcodeModule(MemBuf)

(No short description, might be part of a group.)

LLVMGetBitcodeModule2(MemBuf)

(No short description, might be part of a group.)

Module Contents#

rocm.bindings.llvm.c.bitreader.has_symbol(name: str | bytes | bytearray) → bool#
rocm.bindings.llvm.c.bitreader.LLVMParseBitcode(MemBuf)#

(No short description, might be part of a group.)

Args:
MemBuf (Pointer/object):

(undocumented)

Returns:

A tuple of size 3 that contains (in that order):

C signature

LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, LLVMModuleRef * OutModule, char ** OutMessage)
rocm.bindings.llvm.c.bitreader.LLVMParseBitcode2(MemBuf)#

(No short description, might be part of a group.)

Args:
MemBuf (Pointer/object):

(undocumented)

Returns:

A tuple of size 2 that contains (in that order):

C signature

LLVMBool LLVMParseBitcode2(LLVMMemoryBufferRef MemBuf, LLVMModuleRef * OutModule)
rocm.bindings.llvm.c.bitreader.LLVMParseBitcodeInContext(ContextRef, MemBuf)#

This is deprecated. Use LLVMParseBitcodeInContext2.

Args:
ContextRef (Pointer/object):

(undocumented)

MemBuf (Pointer/object):

(undocumented)

Returns:

A tuple of size 3 that contains (in that order):

C signature

LLVMBool LLVMParseBitcodeInContext(LLVMContextRef ContextRef, LLVMMemoryBufferRef MemBuf, LLVMModuleRef * OutModule, char ** OutMessage)
rocm.bindings.llvm.c.bitreader.LLVMParseBitcodeInContext2(ContextRef, MemBuf)#

This is deprecated. Use LLVMParseBitcodeInContext2.

Args:
ContextRef (Pointer/object):

(undocumented)

MemBuf (Pointer/object):

(undocumented)

Returns:

A tuple of size 2 that contains (in that order):

C signature

LLVMBool LLVMParseBitcodeInContext2(LLVMContextRef ContextRef, LLVMMemoryBufferRef MemBuf, LLVMModuleRef * OutModule)
rocm.bindings.llvm.c.bitreader.LLVMGetBitcodeModuleInContext(ContextRef, MemBuf)#

Reads a module from the specified path, returning via the OutMP parameter a module provider which performs lazy deserialization.

Returns 0 on success. Optionally returns a human-readable error message via OutMessage. This is deprecated. Use LLVMGetBitcodeModuleInContext2.

Args:
ContextRef (Pointer/object):

(undocumented)

MemBuf (Pointer/object):

(undocumented)

Returns:

A tuple of size 3 that contains (in that order):

C signature

LLVMBool LLVMGetBitcodeModuleInContext(LLVMContextRef ContextRef, LLVMMemoryBufferRef MemBuf, LLVMModuleRef * OutM, char ** OutMessage)
rocm.bindings.llvm.c.bitreader.LLVMGetBitcodeModuleInContext2(ContextRef, MemBuf)#

Reads a module from the given memory buffer, returning via the OutMP parameter a module provider which performs lazy deserialization.

Returns 0 on success.

Takes ownership of MemBuf if (and only if) the module was read successfully.

Args:
ContextRef (Pointer/object):

(undocumented)

MemBuf (Pointer/object):

(undocumented)

Returns:

A tuple of size 2 that contains (in that order):

C signature

LLVMBool LLVMGetBitcodeModuleInContext2(LLVMContextRef ContextRef, LLVMMemoryBufferRef MemBuf, LLVMModuleRef * OutM)
rocm.bindings.llvm.c.bitreader.LLVMGetBitcodeModule(MemBuf)#

(No short description, might be part of a group.)

Args:
MemBuf (Pointer/object):

(undocumented)

Returns:

A tuple of size 3 that contains (in that order):

C signature

LLVMBool LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf, LLVMModuleRef * OutM, char ** OutMessage)
rocm.bindings.llvm.c.bitreader.LLVMGetBitcodeModule2(MemBuf)#

(No short description, might be part of a group.)

Args:
MemBuf (Pointer/object):

(undocumented)

Returns:

A tuple of size 2 that contains (in that order):

C signature

LLVMBool LLVMGetBitcodeModule2(LLVMMemoryBufferRef MemBuf, LLVMModuleRef * OutM)