/external/llvm-project/llvm/lib/Bitcode/Reader/ |
D | BitReader.cpp | 42 Expected<std::unique_ptr<Module>> ModuleOrErr = parseBitcodeFile(Buf, Ctx); in LLVMParseBitcodeInContext() local 43 if (Error Err = ModuleOrErr.takeError()) { in LLVMParseBitcodeInContext() 54 *OutModule = wrap(ModuleOrErr.get().release()); in LLVMParseBitcodeInContext() 64 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = in LLVMParseBitcodeInContext2() local 66 if (ModuleOrErr.getError()) { in LLVMParseBitcodeInContext2() 71 *OutModule = wrap(ModuleOrErr.get().release()); in LLVMParseBitcodeInContext2() 83 Expected<std::unique_ptr<Module>> ModuleOrErr = in LLVMGetBitcodeModuleInContext() local 89 if (Error Err = ModuleOrErr.takeError()) { in LLVMGetBitcodeModuleInContext() 100 *OutM = wrap(ModuleOrErr.get().release()); in LLVMGetBitcodeModuleInContext() 111 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = expectedToErrorOrAndEmitErrors( in LLVMGetBitcodeModuleInContext2() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/ |
D | BitReader.cpp | 42 Expected<std::unique_ptr<Module>> ModuleOrErr = parseBitcodeFile(Buf, Ctx); in LLVMParseBitcodeInContext() local 43 if (Error Err = ModuleOrErr.takeError()) { in LLVMParseBitcodeInContext() 54 *OutModule = wrap(ModuleOrErr.get().release()); in LLVMParseBitcodeInContext() 64 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = in LLVMParseBitcodeInContext2() local 66 if (ModuleOrErr.getError()) { in LLVMParseBitcodeInContext2() 71 *OutModule = wrap(ModuleOrErr.get().release()); in LLVMParseBitcodeInContext2() 83 Expected<std::unique_ptr<Module>> ModuleOrErr = in LLVMGetBitcodeModuleInContext() local 89 if (Error Err = ModuleOrErr.takeError()) { in LLVMGetBitcodeModuleInContext() 100 *OutM = wrap(ModuleOrErr.get().release()); in LLVMGetBitcodeModuleInContext() 111 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = expectedToErrorOrAndEmitErrors( in LLVMGetBitcodeModuleInContext2() local [all …]
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitReader.cpp | 57 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = parseBitcodeFile(Buf, Ctx); in LLVMParseBitcodeInContext() local 61 if (ModuleOrErr.getError()) { in LLVMParseBitcodeInContext() 68 *OutModule = wrap(ModuleOrErr.get().release()); in LLVMParseBitcodeInContext() 78 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = parseBitcodeFile(Buf, Ctx); in LLVMParseBitcodeInContext2() local 79 if (ModuleOrErr.getError()) { in LLVMParseBitcodeInContext2() 84 *OutModule = wrap(ModuleOrErr.get().release()); in LLVMParseBitcodeInContext2() 103 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = in LLVMGetBitcodeModuleInContext() local 108 if (ModuleOrErr.getError()) { in LLVMGetBitcodeModuleInContext() 115 *OutM = wrap(ModuleOrErr.get().release()); in LLVMGetBitcodeModuleInContext() 126 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = in LLVMGetBitcodeModuleInContext2() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IRReader/ |
D | IRReader.cpp | 37 Expected<std::unique_ptr<Module>> ModuleOrErr = getOwningLazyBitcodeModule( in getLazyIRModule() local 39 if (Error E = ModuleOrErr.takeError()) { in getLazyIRModule() 46 return std::move(ModuleOrErr.get()); in getLazyIRModule() 77 Expected<std::unique_ptr<Module>> ModuleOrErr = in parseIR() local 79 if (Error E = ModuleOrErr.takeError()) { in parseIR() 87 ModuleOrErr.get()->setDataLayout(DataLayoutString); in parseIR() 88 return std::move(ModuleOrErr.get()); in parseIR()
|
/external/llvm/lib/IRReader/ |
D | IRReader.cpp | 37 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = getLazyBitcodeModule( in getLazyIRModule() local 39 if (std::error_code EC = ModuleOrErr.getError()) { in getLazyIRModule() 44 return std::move(ModuleOrErr.get()); in getLazyIRModule() 72 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = in parseIR() local 74 if (std::error_code EC = ModuleOrErr.getError()) { in parseIR() 79 return std::move(ModuleOrErr.get()); in parseIR()
|
/external/llvm-project/llvm/lib/IRReader/ |
D | IRReader.cpp | 37 Expected<std::unique_ptr<Module>> ModuleOrErr = getOwningLazyBitcodeModule( in getLazyIRModule() local 39 if (Error E = ModuleOrErr.takeError()) { in getLazyIRModule() 46 return std::move(ModuleOrErr.get()); in getLazyIRModule() 76 Expected<std::unique_ptr<Module>> ModuleOrErr = in parseIR() local 78 if (Error E = ModuleOrErr.takeError()) { in parseIR() 85 return std::move(ModuleOrErr.get()); in parseIR()
|
/external/llvm/lib/LTO/ |
D | LTO.cpp | 26 ErrorOr<std::unique_ptr<Module>> ModuleOrErr(nullptr); in loadModuleFromBuffer() local 28 ModuleOrErr = in loadModuleFromBuffer() 32 ModuleOrErr = parseBitcodeFile(Buffer, Context); in loadModuleFromBuffer() 34 if (std::error_code EC = ModuleOrErr.getError()) { in loadModuleFromBuffer() 40 return std::move(ModuleOrErr.get()); in loadModuleFromBuffer()
|
/external/llvm-project/libclc/utils/ |
D | prepare-builtins.cpp | 48 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = in main() local 55 if (std::error_code ec = ModuleOrErr.getError()) in main() 58 M = ModuleOrErr.get().release(); in main()
|
/external/llvm-project/llvm/tools/llvm-lto/ |
D | llvm-lto.cpp | 423 ErrorOr<std::unique_ptr<LTOModule>> ModuleOrErr = in printMachOCPUOnly() local 425 if (!ModuleOrErr) in printMachOCPUOnly() 426 error(ModuleOrErr, "llvm-lto: "); in printMachOCPUOnly() 428 Expected<uint32_t> CPUType = (*ModuleOrErr)->getMachOCPUType(); in printMachOCPUOnly() 429 Expected<uint32_t> CPUSubType = (*ModuleOrErr)->getMachOCPUSubType(); in printMachOCPUOnly() 527 auto ModuleOrErr = Mod.parseModule(CTX); in loadModuleFromInput() local 528 if (!ModuleOrErr) { in loadModuleFromInput() 529 handleAllErrors(ModuleOrErr.takeError(), [&](ErrorInfoBase &EIB) { in loadModuleFromInput() 536 maybeVerifyModule(**ModuleOrErr); in loadModuleFromInput() 540 (*ModuleOrErr)->setModuleIdentifier(ThinLTOModuleId); in loadModuleFromInput() [all …]
|
/external/llvm/unittests/Bitcode/ |
D | BitReaderTest.cpp | 60 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = in getLazyModuleFromAssembly() local 62 return std::move(ModuleOrErr.get()); in getLazyModuleFromAssembly() 89 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = in getStreamedModuleFromAssembly() local 91 return std::move(ModuleOrErr.get()); in getStreamedModuleFromAssembly()
|
/external/llvm-project/llvm/unittests/Bitcode/ |
D | BitReaderTest.cpp | 54 Expected<std::unique_ptr<Module>> ModuleOrErr = in getLazyModuleFromAssembly() local 56 if (!ModuleOrErr) in getLazyModuleFromAssembly() 58 return std::move(ModuleOrErr.get()); in getLazyModuleFromAssembly()
|
/external/llvm-project/llvm/lib/LTO/ |
D | ThinLTOCodeGenerator.cpp | 193 Expected<std::unique_ptr<Module>> ModuleOrErr = in loadModuleFromInput() local 197 if (!ModuleOrErr) { in loadModuleFromInput() 198 handleAllErrors(ModuleOrErr.takeError(), [&](ErrorInfoBase &EIB) { in loadModuleFromInput() 206 verifyLoadedModule(*ModuleOrErr.get()); in loadModuleFromInput() 207 return std::move(*ModuleOrErr); in loadModuleFromInput()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/ |
D | ThinLTOCodeGenerator.cpp | 188 Expected<std::unique_ptr<Module>> ModuleOrErr = in loadModuleFromInput() local 192 if (!ModuleOrErr) { in loadModuleFromInput() 193 handleAllErrors(ModuleOrErr.takeError(), [&](ErrorInfoBase &EIB) { in loadModuleFromInput() 201 verifyLoadedModule(*ModuleOrErr.get()); in loadModuleFromInput() 202 return std::move(*ModuleOrErr); in loadModuleFromInput()
|
/external/clang/lib/CodeGen/ |
D | CodeGenAction.cpp | 734 ErrorOr<std::unique_ptr<llvm::Module>> ModuleOrErr = in CreateASTConsumer() local 736 if (std::error_code EC = ModuleOrErr.getError()) { in CreateASTConsumer() 742 addLinkModule(ModuleOrErr.get().release(), I.first); in CreateASTConsumer()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CodeGenAction.cpp | 950 Expected<std::unique_ptr<llvm::Module>> ModuleOrErr = in CreateASTConsumer() local 952 if (!ModuleOrErr) { in CreateASTConsumer() 953 handleAllErrors(ModuleOrErr.takeError(), [&](ErrorInfoBase &EIB) { in CreateASTConsumer() 960 LinkModules.push_back({std::move(ModuleOrErr.get()), F.PropagateAttrs, in CreateASTConsumer()
|
/external/llvm/tools/llvm-lto/ |
D | llvm-lto.cpp | 773 ErrorOr<std::unique_ptr<LTOModule>> ModuleOrErr = in main() local 775 std::unique_ptr<LTOModule> &Module = *ModuleOrErr; in main()
|