Home
last modified time | relevance | path

Searched refs:FileOrErr (Results 1 – 11 of 11) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
DParser.cpp58 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseAssemblyFile() local
60 if (std::error_code EC = FileOrErr.getError()) { in parseAssemblyFile()
66 return parseAssembly(FileOrErr.get()->getMemBufferRef(), Err, Context, Slots, in parseAssemblyFile()
88 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseAssemblyFileWithIndex() local
90 if (std::error_code EC = FileOrErr.getError()) { in parseAssemblyFileWithIndex()
96 return parseAssemblyWithIndex(FileOrErr.get()->getMemBufferRef(), Err, in parseAssemblyFileWithIndex()
136 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseSummaryIndexAssemblyFile() local
138 if (std::error_code EC = FileOrErr.getError()) { in parseSummaryIndexAssemblyFile()
144 return parseSummaryIndexAssembly(FileOrErr.get()->getMemBufferRef(), Err); in parseSummaryIndexAssemblyFile()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IRReader/
DIRReader.cpp56 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in getLazyIRFileModule() local
58 if (std::error_code EC = FileOrErr.getError()) { in getLazyIRFileModule()
64 return getLazyIRModule(std::move(FileOrErr.get()), Err, Context, in getLazyIRFileModule()
99 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseIRFile() local
101 if (std::error_code EC = FileOrErr.getError()) { in parseIRFile()
107 return parseIR(FileOrErr.get()->getMemBufferRef(), Err, Context, in parseIRFile()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DFileOutputBuffer.cpp129 Expected<fs::TempFile> FileOrErr = in createOnDiskBuffer() local
131 if (!FileOrErr) in createOnDiskBuffer()
132 return FileOrErr.takeError(); in createOnDiskBuffer()
133 fs::TempFile File = std::move(*FileOrErr); in createOnDiskBuffer()
DSpecialCaseList.cpp103 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in createInternal() local
105 if (std::error_code EC = FileOrErr.getError()) { in createInternal()
110 if (!parse(FileOrErr.get().get(), Sections, ParseError)) { in createInternal()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DBinary.cpp97 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in createBinary() local
100 if (std::error_code EC = FileOrErr.getError()) in createBinary()
102 std::unique_ptr<MemoryBuffer> &Buffer = FileOrErr.get(); in createBinary()
DObjectFile.cpp176 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in createObjectFile() local
178 if (std::error_code EC = FileOrErr.getError()) in createObjectFile()
180 std::unique_ptr<MemoryBuffer> Buffer = std::move(FileOrErr.get()); in createObjectFile()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/
DMain.cpp87 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in TableGenMain() local
89 if (std::error_code EC = FileOrErr.getError()) in TableGenMain()
94 SrcMgr.AddNewSourceBuffer(std::move(*FileOrErr), SMLoc()); in TableGenMain()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/
DLTO.cpp289 auto FileOrErr = MemoryBuffer::getFile(Conf.SampleProfile); in computeLTOCacheKey() local
290 if (FileOrErr) { in computeLTOCacheKey()
291 Hasher.update(FileOrErr.get()->getBuffer()); in computeLTOCacheKey()
294 FileOrErr = MemoryBuffer::getFile(Conf.ProfileRemapping); in computeLTOCacheKey()
295 if (FileOrErr) in computeLTOCacheKey()
296 Hasher.update(FileOrErr.get()->getBuffer()); in computeLTOCacheKey()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DControlHeightReduction.cpp72 auto FileOrErr = MemoryBuffer::getFile(CHRModuleList); in parseCHRFilterFiles() local
73 if (!FileOrErr) { in parseCHRFilterFiles()
77 StringRef Buf = FileOrErr->get()->getBuffer(); in parseCHRFilterFiles()
87 auto FileOrErr = MemoryBuffer::getFile(CHRFunctionList); in parseCHRFilterFiles() local
88 if (!FileOrErr) { in parseCHRFilterFiles()
92 StringRef Buf = FileOrErr->get()->getBuffer(); in parseCHRFilterFiles()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/MIRParser/
DMIRParser.cpp940 auto FileOrErr = MemoryBuffer::getFileOrSTDIN(Filename); in createMIRParserFromFile() local
941 if (std::error_code EC = FileOrErr.getError()) { in createMIRParserFromFile()
946 return createMIRParser(std::move(FileOrErr.get()), Context, in createMIRParserFromFile()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp6734 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in getModuleSummaryIndexForFile() local
6736 if (!FileOrErr) in getModuleSummaryIndexForFile()
6737 return errorCodeToError(FileOrErr.getError()); in getModuleSummaryIndexForFile()
6738 if (IgnoreEmptyThinLTOIndexFile && !(*FileOrErr)->getBufferSize()) in getModuleSummaryIndexForFile()
6740 return getModuleSummaryIndex(**FileOrErr); in getModuleSummaryIndexForFile()