rocm.bindings.llvm.c.error#
2026-09-24
5 min read time
Advanced Micro Devices, Inc.
Attributes#
Classes#
(No short description) |
Functions#
|
|
|
Returns the type id for the given error instance, which must be a failure |
|
Dispose of the given error without handling it. |
|
Report a fatal error if Err is a failure value. |
|
Returns the given string's error message. |
|
Dispose of the given error message. |
Returns the type id for llvm StringError. |
|
|
Create a StringError. |
Module Contents#
- class rocm.bindings.llvm.c.error.LLVMOpaqueError(*args, **kwargs)#
Bases:
rocm.bindings.util.types.Pointer(No short description)
- rocm.bindings.llvm.c.error.LLVMErrorRef#
- rocm.bindings.llvm.c.error.LLVMGetErrorTypeId(Err)#
Returns the type id for the given error instance, which must be a failure value (i.e.
non-null).
- Args:
- Err (
LLVMOpaqueError/object): (undocumented)
- Err (
- Returns:
None: (undocumented)
C signature
LLVMErrorTypeId LLVMGetErrorTypeId(LLVMErrorRef Err)
- rocm.bindings.llvm.c.error.LLVMConsumeError(Err)#
Dispose of the given error without handling it.
This operation consumes the error, and the given LLVMErrorRef value is not usable once this call returns. Note: This method only needs to be called if the error is not being passed to some other consuming operation, e.g. LLVMGetErrorMessage.
- Args:
- Err (
LLVMOpaqueError/object): (undocumented)
- Err (
C signature
void LLVMConsumeError(LLVMErrorRef Err)
- rocm.bindings.llvm.c.error.LLVMCantFail(Err)#
Report a fatal error if Err is a failure value.
This function can be used to wrap calls to fallible functions ONLY when it is known that the Error will always be a success value.
- Args:
- Err (
LLVMOpaqueError/object): (undocumented)
- Err (
C signature
void LLVMCantFail(LLVMErrorRef Err)
- rocm.bindings.llvm.c.error.LLVMGetErrorMessage(Err)#
Returns the given string’s error message.
This operation consumes the error, and the given LLVMErrorRef value is not usable once this call returns. The caller is responsible for disposing of the string by calling LLVMDisposeErrorMessage.
- Args:
- Err (
LLVMOpaqueError/object): (undocumented)
- Err (
- Returns:
bytes: (undocumented)
C signature
char * LLVMGetErrorMessage(LLVMErrorRef Err)
- rocm.bindings.llvm.c.error.LLVMDisposeErrorMessage(ErrMsg)#
Dispose of the given error message.
C signature
void LLVMDisposeErrorMessage(char * ErrMsg)