14 #ifndef LLVM_IRREADER_IRREADER_H 15 #define LLVM_IRREADER_IRREADER_H 24 class MemoryBufferRef;
35 std::unique_ptr<Module>
getLazyIRModule(std::unique_ptr<MemoryBuffer> Buffer,
36 SMDiagnostic &Err, LLVMContext &
Context,
37 bool ShouldLazyLoadMetadata =
false);
44 std::unique_ptr<Module>
46 bool ShouldLazyLoadMetadata =
false);
55 std::unique_ptr<Module>
parseIR(MemoryBufferRef Buffer, SMDiagnostic &Err,
58 StringRef DataLayoutString =
"");
67 std::unique_ptr<Module>
parseIRFile(StringRef Filename, SMDiagnostic &Err,
70 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.
std::unique_ptr< Module > getLazyIRModule(std::unique_ptr< MemoryBuffer > Buffer, SMDiagnostic &Err, LLVMContext &Context, bool ShouldLazyLoadMetadata=false)
If the given MemoryBuffer holds a bitcode image, return a Module for it which does lazy deserializati...
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.