rocm.bindings.llvm.c.errorhandling#
2026-09-24
4 min read time
Advanced Micro Devices, Inc.
Classes#
(No short description) |
Functions#
|
|
|
Install a fatal error handler. |
Reset the fatal error handler. |
|
Enable LLVM's built-in stack trace code. |
Module Contents#
- 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)
- Handler (
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()