rocm.bindings.llvm.c.analysis#

2026-09-24

5 min read time

Applies to Linux and Windows

Advanced Micro Devices, Inc.

Classes#

LLVMVerifierFailureAction

(No short description)

Functions#

has_symbol(→ bool)

LLVMVerifyModule(M, Action)

Verifies that a module is valid, taking the specified action if not.

LLVMVerifyFunction(Fn, Action)

Verifies that a single function is valid, taking the specified action.

LLVMViewFunctionCFG(Fn)

Open up a ghostview window that displays the CFG of the current function.

LLVMViewFunctionCFGOnly(Fn)

Open up a ghostview window that displays the CFG of the current function.

Module Contents#

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

Bases: enum.IntEnum

(No short description)

LLVMAbortProcessAction: int#
LLVMPrintMessageAction: int#
LLVMReturnStatusAction: int#
rocm.bindings.llvm.c.analysis.LLVMVerifyModule(M, Action)#

Verifies that a module is valid, taking the specified action if not.

Optionally returns a human-readable description of any invalid constructs. OutMessage must be disposed with LLVMDisposeMessage.

Args:
M (Pointer/object):

(undocumented)

Action (LLVMVerifierFailureAction):

(undocumented)

Returns:

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

C signature

LLVMBool LLVMVerifyModule(LLVMModuleRef M, LLVMVerifierFailureAction Action, char ** OutMessage)
rocm.bindings.llvm.c.analysis.LLVMVerifyFunction(Fn, Action)#

Verifies that a single function is valid, taking the specified action.

Useful for debugging.

Args:
Fn (Pointer/object):

(undocumented)

Action (LLVMVerifierFailureAction):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMVerifyFunction(LLVMValueRef Fn, LLVMVerifierFailureAction Action)
rocm.bindings.llvm.c.analysis.LLVMViewFunctionCFG(Fn)#

Open up a ghostview window that displays the CFG of the current function.

Useful for debugging.

Args:
Fn (Pointer/object):

(undocumented)

C signature

void LLVMViewFunctionCFG(LLVMValueRef Fn)
rocm.bindings.llvm.c.analysis.LLVMViewFunctionCFGOnly(Fn)#

Open up a ghostview window that displays the CFG of the current function.

Useful for debugging.

Args:
Fn (Pointer/object):

(undocumented)

C signature

void LLVMViewFunctionCFGOnly(LLVMValueRef Fn)