/external/llvm-project/llvm/lib/LTO/ |
D | Caching.cpp | 46 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in localCache() local 51 if (MBOrErr) { in localCache() 52 AddBuffer(Task, std::move(*MBOrErr)); in localCache() 55 EC = MBOrErr.getError(); in localCache() 90 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in localCache() local 94 if (!MBOrErr) in localCache() 97 MBOrErr.getError().message() + "\n"); in localCache() 114 auto MBCopy = MemoryBuffer::getMemBufferCopy((*MBOrErr)->getBuffer(), in localCache() 116 MBOrErr = std::move(MBCopy); in localCache() 129 AddBuffer(Task, std::move(*MBOrErr)); in localCache()
|
D | LTOBackend.cpp | 710 ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> MBOrErr = in loadReferencedModules() local 712 if (!MBOrErr) { in loadReferencedModules() 714 << "': " << MBOrErr.getError().message() << "\n"; in loadReferencedModules() 718 Expected<BitcodeModule> BMOrErr = findThinLTOModule(**MBOrErr); in loadReferencedModules() 727 OwnedImportsLifetimeManager.push_back(std::move(*MBOrErr)); in loadReferencedModules()
|
D | LTOModule.cpp | 174 Expected<MemoryBufferRef> MBOrErr = in parseBitcodeFileImpl() local 176 if (Error E = MBOrErr.takeError()) { in parseBitcodeFileImpl() 185 parseBitcodeFile(*MBOrErr, Context)); in parseBitcodeFileImpl() 191 getLazyBitcodeModule(*MBOrErr, Context, true /*ShouldLazyLoadMetadata*/)); in parseBitcodeFileImpl()
|
D | ThinLTOCodeGenerator.cpp | 378 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getOpenFile( in tryLoadingBuffer() local 381 return MBOrErr; in tryLoadingBuffer()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/ |
D | Caching.cpp | 46 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in localCache() local 51 if (MBOrErr) { in localCache() 52 AddBuffer(Task, std::move(*MBOrErr)); in localCache() 55 EC = MBOrErr.getError(); in localCache() 90 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in localCache() local 94 if (!MBOrErr) in localCache() 97 MBOrErr.getError().message() + "\n"); in localCache() 114 auto MBCopy = MemoryBuffer::getMemBufferCopy((*MBOrErr)->getBuffer(), in localCache() 116 MBOrErr = std::move(MBCopy); in localCache() 129 AddBuffer(Task, std::move(*MBOrErr)); in localCache()
|
D | LTOModule.cpp | 172 Expected<MemoryBufferRef> MBOrErr = in parseBitcodeFileImpl() local 174 if (Error E = MBOrErr.takeError()) { in parseBitcodeFileImpl() 183 parseBitcodeFile(*MBOrErr, Context)); in parseBitcodeFileImpl() 189 getLazyBitcodeModule(*MBOrErr, Context, true /*ShouldLazyLoadMetadata*/)); in parseBitcodeFileImpl()
|
D | ThinLTOCodeGenerator.cpp | 362 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getOpenFile( in tryLoadingBuffer() local 365 return MBOrErr; in tryLoadingBuffer()
|
/external/llvm/tools/sanstats/ |
D | sanstats.cpp | 116 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in main() local 118 if (!MBOrErr) { in main() 120 << MBOrErr.getError().message() << '\n'; in main() 123 std::unique_ptr<MemoryBuffer> MB = std::move(MBOrErr.get()); in main()
|
/external/llvm-project/llvm/tools/sanstats/ |
D | sanstats.cpp | 128 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in main() local 130 if (!MBOrErr) { in main() 132 << MBOrErr.getError().message() << '\n'; in main() 135 std::unique_ptr<MemoryBuffer> MB = std::move(MBOrErr.get()); in main()
|
/external/llvm/tools/llvm-dis/ |
D | llvm-dis.cpp | 143 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in openInputFile() local 145 if (!MBOrErr) in openInputFile() 146 return errorCodeToError(MBOrErr.getError()); in openInputFile() 148 getLazyBitcodeModule(std::move(*MBOrErr), Context, in openInputFile()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | CommandFlags.cpp | 480 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in getBBSectionsMode() local 482 if (!MBOrErr) { in getBBSectionsMode() 484 << MBOrErr.getError().message() << "\n"; in getBBSectionsMode() 486 Options.BBSectionsFuncListBuf = std::move(*MBOrErr); in getBBSectionsMode() 499 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in getStackProtectorGuardMode() local 501 if (!MBOrErr) in getStackProtectorGuardMode() 503 << MBOrErr.getError().message() << "\n"; in getStackProtectorGuardMode() 505 Options.BBSectionsFuncListBuf = std::move(*MBOrErr); in getStackProtectorGuardMode()
|
/external/llvm-project/llvm/unittests/Support/ |
D | TarWriterTest.cpp | 55 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in createTar() local 57 EXPECT_TRUE((bool)MBOrErr); in createTar() 58 std::unique_ptr<MemoryBuffer> MB = std::move(*MBOrErr); in createTar()
|
/external/llvm-project/llvm/lib/Support/ |
D | LockFileManager.cpp | 59 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in readLockFile() local 61 if (!MBOrErr) { in readLockFile() 65 MemoryBuffer &MB = *MBOrErr.get(); in readLockFile()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | LockFileManager.cpp | 54 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in readLockFile() local 56 if (!MBOrErr) { in readLockFile() 60 MemoryBuffer &MB = *MBOrErr.get(); in readLockFile()
|
/external/llvm/lib/Support/ |
D | LockFileManager.cpp | 45 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in readLockFile() local 47 if (!MBOrErr) { in readLockFile() 51 MemoryBuffer &MB = *MBOrErr.get(); in readLockFile()
|
/external/llvm-project/lld/ELF/ |
D | LTO.cpp | 103 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in createConfig() local 105 if (!MBOrErr) { in createConfig() 107 MBOrErr.getError().message()); in createConfig() 109 c.Options.BBSectionsFuncListBuf = std::move(*MBOrErr); in createConfig()
|
/external/llvm/lib/LTO/ |
D | LTOModule.cpp | 173 ErrorOr<MemoryBufferRef> MBOrErr = in parseBitcodeFileImpl() local 175 if (std::error_code EC = MBOrErr.getError()) { in parseBitcodeFileImpl() 182 ErrorOr<std::unique_ptr<Module>> M = parseBitcodeFile(*MBOrErr, Context); in parseBitcodeFileImpl() 190 MemoryBuffer::getMemBuffer(*MBOrErr, false); in parseBitcodeFileImpl()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | BackendUtil.cpp | 524 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in initTargetOptions() local 526 if (!MBOrErr) { in initTargetOptions() 528 << MBOrErr.getError().message(); in initTargetOptions() 531 Options.BBSectionsFuncListBuf = std::move(*MBOrErr); in initTargetOptions()
|
/external/llvm/lib/IR/ |
D | Core.cpp | 3133 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getFile(Path); in LLVMCreateMemoryBufferWithContentsOfFile() local 3134 if (std::error_code EC = MBOrErr.getError()) { in LLVMCreateMemoryBufferWithContentsOfFile() 3138 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithContentsOfFile() 3144 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getSTDIN(); in LLVMCreateMemoryBufferWithSTDIN() local 3145 if (std::error_code EC = MBOrErr.getError()) { in LLVMCreateMemoryBufferWithSTDIN() 3149 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithSTDIN()
|
/external/llvm-project/llvm/lib/IR/ |
D | Core.cpp | 4057 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getFile(Path); in LLVMCreateMemoryBufferWithContentsOfFile() local 4058 if (std::error_code EC = MBOrErr.getError()) { in LLVMCreateMemoryBufferWithContentsOfFile() 4062 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithContentsOfFile() 4068 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getSTDIN(); in LLVMCreateMemoryBufferWithSTDIN() local 4069 if (std::error_code EC = MBOrErr.getError()) { in LLVMCreateMemoryBufferWithSTDIN() 4073 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithSTDIN()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Core.cpp | 4008 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getFile(Path); in LLVMCreateMemoryBufferWithContentsOfFile() local 4009 if (std::error_code EC = MBOrErr.getError()) { in LLVMCreateMemoryBufferWithContentsOfFile() 4013 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithContentsOfFile() 4019 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getSTDIN(); in LLVMCreateMemoryBufferWithSTDIN() local 4020 if (std::error_code EC = MBOrErr.getError()) { in LLVMCreateMemoryBufferWithSTDIN() 4024 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithSTDIN()
|