LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
Collaboration diagram for Bit Reader:

Functions

LLVMBool LLVMParseBitcode (LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule, char **OutMessage)
 
LLVMBool LLVMParseBitcodeInContext (LLVMContextRef ContextRef, LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule, char **OutMessage)
 
LLVMBool LLVMGetBitcodeModuleInContext (LLVMContextRef ContextRef, LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM, char **OutMessage)
 
LLVMBool LLVMGetBitcodeModule (LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM, char **OutMessage)
 
LLVMBool LLVMGetBitcodeModuleProviderInContext (LLVMContextRef ContextRef, LLVMMemoryBufferRef MemBuf, LLVMModuleProviderRef *OutMP, char **OutMessage)
 
LLVMBool LLVMGetBitcodeModuleProvider (LLVMMemoryBufferRef MemBuf, LLVMModuleProviderRef *OutMP, char **OutMessage)
 

Detailed Description

Function Documentation

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

Definition at line 67 of file BitReader.cpp.

References LLVMGetBitcodeModuleInContext(), 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.

Definition at line 49 of file BitReader.cpp.

References llvm::getLazyBitcodeModule(), llvm::LibFunc::strdup, llvm::unwrap(), and llvm::wrap().

Referenced by LLVMGetBitcodeModule(), and LLVMGetBitcodeModuleProviderInContext().

LLVMBool LLVMGetBitcodeModuleProvider ( LLVMMemoryBufferRef  MemBuf,
LLVMModuleProviderRef OutMP,
char **  OutMessage 
)

Deprecated: Use LLVMGetBitcodeModule instead.

Definition at line 84 of file BitReader.cpp.

References LLVMGetBitcodeModuleProviderInContext(), and LLVMGetGlobalContext().

LLVMBool LLVMGetBitcodeModuleProviderInContext ( LLVMContextRef  ContextRef,
LLVMMemoryBufferRef  MemBuf,
LLVMModuleProviderRef OutMP,
char **  OutMessage 
)

Deprecated: Use LLVMGetBitcodeModuleInContext instead.

Definition at line 74 of file BitReader.cpp.

References LLVMGetBitcodeModuleInContext().

Referenced by LLVMGetBitcodeModuleProvider().

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

Definition at line 23 of file BitReader.cpp.

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

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

Definition at line 29 of file BitReader.cpp.

References llvm::ParseBitcodeFile(), llvm::LibFunc::strdup, llvm::unwrap(), and llvm::wrap().

Referenced by LLVMParseBitcode().