ΒΆstd::unique_ptr<Module> parseIRFile(
llvm::StringRef Filename,
llvm::SMDiagnostic& Err,
llvm::LLVMContext& Context,
bool UpgradeDebugInfo = true,
llvm::StringRef DataLayoutString = "")
std::unique_ptr<Module> parseIRFile(
llvm::StringRef Filename,
llvm::SMDiagnostic& Err,
llvm::LLVMContext& Context,
bool UpgradeDebugInfo = true,
llvm::StringRef DataLayoutString = "")
Description
If the given file holds a bitcode image, return a Module for it. Otherwise, attempt to parse it as LLVM Assembly and return a Module for it.
Declared at: llvm/include/llvm/IRReader/IRReader.h:67
Parameters
- llvm::StringRef Filename
- llvm::SMDiagnostic& Err
- llvm::LLVMContext& Context
- bool UpgradeDebugInfo = true
- Run UpgradeDebugInfo, which runs the Verifier. This option should only be set to false by llvm-as for use inside the LLVM testuite!
- llvm::StringRef DataLayoutString = ""
- Override datalayout in the llvm assembly.