15 #ifndef LLVM_IRREADER_IRREADER_H 16 #define LLVM_IRREADER_IRREADER_H 24 class MemoryBufferRef;
34 std::unique_ptr<Module>
36 bool ShouldLazyLoadMetadata =
false);
45 std::unique_ptr<Module>
parseIR(MemoryBufferRef Buffer, SMDiagnostic &Err,
48 StringRef DataLayoutString =
"");
57 std::unique_ptr<Module>
parseIRFile(StringRef Filename, SMDiagnostic &Err,
60 StringRef DataLayoutString =
"");
std::unique_ptr< Module > parseIR(MemoryBufferRef Buffer, SMDiagnostic &Err, LLVMContext &Context, bool UpgradeDebugInfo=true, StringRef DataLayoutString="")
If the given MemoryBuffer holds a bitcode image, return a Module for it.
This class represents lattice values for constants.
bool UpgradeDebugInfo(Module &M)
Check the debug info version number, if it is out-dated, drop the debug info.
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 > parseIRFile(StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, bool UpgradeDebugInfo=true, StringRef DataLayoutString="")
If the given file holds a bitcode image, return a Module for it.