Read the specified bitcode file, returning the module.
Synopsis
Declared in <llvm/Bitcode/BitcodeReader.h>
Expected<std::unique_ptr<Module>>
parseBitcodeFile(
MemoryBufferRef Buffer,
LLVMContext& Context,
ParserCallbacks Callbacks = {});
Return Value
The fully materialized Module, or an Error on failure.
Parameters
Name |
Description |
Buffer |
Memory buffer containing the bitcode. |
Context |
LLVM context that owns the created module. |
Callbacks |
Optional parser customization callbacks. |
Created with MrDocs