LLVM  mainline
Functions
Bit Reader
LLVM-C: C interface to LLVM
Collaboration diagram for Bit Reader:

Functions

LLVMBool LLVMParseBitcode (LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule, char **OutMessage)
LLVMBool LLVMParseBitcode2 (LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule)
LLVMBool LLVMParseBitcodeInContext (LLVMContextRef ContextRef, LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule, char **OutMessage)
LLVMBool LLVMParseBitcodeInContext2 (LLVMContextRef ContextRef, LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule)
LLVMBool LLVMGetBitcodeModuleInContext (LLVMContextRef ContextRef, LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM, char **OutMessage)
 Reads a module from the specified path, returning via the OutMP parameter a module provider which performs lazy deserialization.
LLVMBool LLVMGetBitcodeModuleInContext2 (LLVMContextRef ContextRef, LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM)
 Reads a module from the specified path, returning via the OutMP parameter a module provider which performs lazy deserialization.
LLVMBool LLVMGetBitcodeModule (LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM, char **OutMessage)
LLVMBool LLVMGetBitcodeModule2 (LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM)

Function Documentation

LLVMBool LLVMGetBitcodeModule ( LLVMMemoryBufferRef  MemBuf,
LLVMModuleRef OutM,
char **  OutMessage 
)

Definition at line 140 of file BitReader.cpp.

References LLVMGetBitcodeModuleInContext(), and LLVMGetGlobalContext().

Definition at line 146 of file BitReader.cpp.

References LLVMGetBitcodeModuleInContext2(), and LLVMGetGlobalContext().

LLVMBool LLVMGetBitcodeModuleInContext ( LLVMContextRef  ContextRef,
LLVMMemoryBufferRef  MemBuf,
LLVMModuleRef OutM,
char **  OutMessage 
)

Reads a module from the specified path, returning via the OutMP parameter a module provider which performs lazy deserialization.

Returns 0 on success. Optionally returns a human-readable error message via OutMessage. This is deprecated. Use LLVMGetBitcodeModuleInContext2.

Definition at line 92 of file BitReader.cpp.

References diagnosticHandler(), llvm::ErrorOr< T >::get(), llvm::LLVMContext::getDiagnosticContext(), llvm::LLVMContext::getDiagnosticHandler(), llvm::ErrorOr< T >::getError(), llvm::getLazyBitcodeModule(), llvm::LLVMContext::setDiagnosticHandler(), llvm::unwrap(), and llvm::wrap().

Referenced by LLVMGetBitcodeModule().

Reads a module from the specified path, returning via the OutMP parameter a module provider which performs lazy deserialization.

Returns 0 on success.

Definition at line 121 of file BitReader.cpp.

References llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), llvm::getLazyBitcodeModule(), llvm::unwrap(), and llvm::wrap().

Referenced by LLVMGetBitcodeModule2().

LLVMBool LLVMParseBitcode ( LLVMMemoryBufferRef  MemBuf,
LLVMModuleRef OutModule,
char **  OutMessage 
)

Definition at line 26 of file BitReader.cpp.

References llvm::getGlobalContext(), LLVMParseBitcodeInContext(), and llvm::wrap().

LLVMBool LLVMParseBitcodeInContext ( LLVMContextRef  ContextRef,
LLVMMemoryBufferRef  MemBuf,
LLVMModuleRef OutModule,
char **  OutMessage 
)