rocm.bindings.llvm.c.bitwriter#
2026-09-24
5 min read time
Advanced Micro Devices, Inc.
Functions#
|
|
|
Writes a module to the specified path. Returns 0 on success. |
|
Writes a module to an open file descriptor. Returns 0 on success. |
|
Deprecated for LLVMWriteBitcodeToFD. |
Writes a module to a new memory buffer and returns it. |
Module Contents#
- rocm.bindings.llvm.c.bitwriter.LLVMWriteBitcodeToFile(M, Path)#
Writes a module to the specified path. Returns 0 on success.
- Args:
- Returns:
int: (undocumented)
C signature
int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char * Path)
- rocm.bindings.llvm.c.bitwriter.LLVMWriteBitcodeToFD(M, FD, ShouldClose, Unbuffered)#
Writes a module to an open file descriptor. Returns 0 on success.
- Args:
- Returns:
int: (undocumented)
C signature
int LLVMWriteBitcodeToFD(LLVMModuleRef M, int FD, int ShouldClose, int Unbuffered)
- rocm.bindings.llvm.c.bitwriter.LLVMWriteBitcodeToFileHandle(M, Handle)#
Deprecated for LLVMWriteBitcodeToFD.
Writes a module to an open file descriptor. Returns 0 on success. Closes the Handle.
C signature
int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int Handle)