Go to the documentation of this file.
14 #ifndef LLVM_IRREADER_IRREADER_H
15 #define LLVM_IRREADER_IRREADER_H
26 class MemoryBufferRef;
40 std::unique_ptr<Module>
getLazyIRModule(std::unique_ptr<MemoryBuffer> Buffer,
41 SMDiagnostic &Err, LLVMContext &
Context,
42 bool ShouldLazyLoadMetadata =
false);
49 std::unique_ptr<Module>
51 bool ShouldLazyLoadMetadata =
false);
57 std::unique_ptr<Module>
parseIR(
58 MemoryBufferRef Buffer, SMDiagnostic &Err, LLVMContext &
Context,
66 StringRef Filename, SMDiagnostic &Err, LLVMContext &
Context,
std::unique_ptr< Module > parseIR(MemoryBufferRef Buffer, SMDiagnostic &Err, LLVMContext &Context, DataLayoutCallbackTy DataLayoutCallback=[](StringRef) { return None;})
If the given MemoryBuffer holds a bitcode image, return a Module for it.
This is an optimization pass for GlobalISel generic memory operations.
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...
An efficient, type-erasing, non-owning reference to a callable.
Machine Check Debug Module
std::unique_ptr< Module > parseIRFile(StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, DataLayoutCallbackTy DataLayoutCallback=[](StringRef) { return None;})
If the given file holds a bitcode image, return a Module for it.
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...
llvm::function_ref< Optional< std::string >StringRef)> DataLayoutCallbackTy