[#llvm-getLazyBitcodeModule] = xref:llvm.adoc[llvm]::getLazyBitcodeModule :relfileprefix: ../ :mrdocs: Read bitcode and prepare a module for lazy function deserialization. == Synopsis Declared in `<llvm/Bitcode/BitcodeReader.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:llvm/Expected.adoc[Expected<std::unique_ptr<Module>>] getLazyBitcodeModule( xref:llvm/MemoryBufferRef.adoc[MemoryBufferRef] Buffer, xref:llvm/LLVMContext.adoc[LLVMContext]& Context, bool ShouldLazyLoadMetadata = false, bool IsImporting = false, xref:llvm/ParserCallbacks.adoc[ParserCallbacks] Callbacks = {}); ---- == Description If ShouldLazyLoadMetadata is true, lazily load metadata as well. If IsImporting is true, this module is being parsed for ThinLTO importing into another module. == Return Value A Module prepared for lazy deserialization, or an Error on failure. == Parameters [cols="1,4"] |=== | Name| Description | *Buffer* | Memory buffer containing the bitcode. | *Context* | LLVM context that owns the created module. | *ShouldLazyLoadMetadata* | If true, defer loading metadata. | *IsImporting* | If true, parse for ThinLTO importing. | *Callbacks* | Optional parser customization callbacks. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#