rocm.bindings.llvm.c.errorhandling#

2026-09-24

4 min read time

Applies to Linux and Windows

Advanced Micro Devices, Inc.

Classes#

LLVMFatalErrorHandler

(No short description)

Functions#

has_symbol(→ bool)

LLVMInstallFatalErrorHandler(Handler)

Install a fatal error handler.

LLVMResetFatalErrorHandler()

Reset the fatal error handler.

LLVMEnablePrettyStackTrace()

Enable LLVM's built-in stack trace code.

Module Contents#

rocm.bindings.llvm.c.errorhandling.has_symbol(name: str | bytes | bytearray) → bool#
class rocm.bindings.llvm.c.errorhandling.LLVMFatalErrorHandler(*args, **kwargs)#

Bases: rocm.bindings.util.types.Pointer

(No short description)

rocm.bindings.llvm.c.errorhandling.LLVMInstallFatalErrorHandler(Handler)#

Install a fatal error handler.

By default, if LLVM detects a fatal error, it will call exit(1). This may not be appropriate in many contexts. For example, doing exit(1) will bypass many crash reporting/tracing system tools. This function allows you to install a callback that will be invoked prior to the call to exit(1).

Args:
Handler (LLVMFatalErrorHandler/object):

(undocumented)

C signature

void LLVMInstallFatalErrorHandler(LLVMFatalErrorHandler Handler)
rocm.bindings.llvm.c.errorhandling.LLVMResetFatalErrorHandler()#

Reset the fatal error handler.

This resets LLVM’s fatal error handling behavior to the default.

C signature

void LLVMResetFatalErrorHandler()
rocm.bindings.llvm.c.errorhandling.LLVMEnablePrettyStackTrace()#

Enable LLVM’s built-in stack trace code.

This intercepts the OS’s crash signals and prints which component of LLVM you were in at the time if the crash.

C signature

void LLVMEnablePrettyStackTrace()