15 #ifndef LLVM_IRREADER_IRREADER_H
16 #define LLVM_IRREADER_IRREADER_H
23 class MemoryBufferRef;
33 std::unique_ptr<Module>
35 bool ShouldLazyLoadMetadata =
false);
40 std::unique_ptr<Module>
parseIR(MemoryBufferRef Buffer, SMDiagnostic &Err,
46 std::unique_ptr<Module>
parseIRFile(StringRef Filename, SMDiagnostic &Err,
std::unique_ptr< Module > parseIRFile(StringRef Filename, SMDiagnostic &Err, LLVMContext &Context)
If the given file holds a bitcode image, return a Module for it.
std::unique_ptr< Module > getLazyIRFileModule(StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, bool ShouldLazyLoadMetadata=false)
If the given file holds a bitcode image, return a Module for it which does lazy deserialization of fu...
std::unique_ptr< Module > parseIR(MemoryBufferRef Buffer, SMDiagnostic &Err, LLVMContext &Context)
If the given MemoryBuffer holds a bitcode image, return a Module for it.