Home
last modified time | relevance | path

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

12

/external/llvm/lib/IRReader/
DIRReader.cpp54 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in getLazyIRFileModule() local
56 if (std::error_code EC = FileOrErr.getError()) { in getLazyIRFileModule()
62 return getLazyIRModule(std::move(FileOrErr.get()), Err, Context, in getLazyIRFileModule()
87 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseIRFile() local
89 if (std::error_code EC = FileOrErr.getError()) { in parseIRFile()
95 return parseIR(FileOrErr.get()->getMemBufferRef(), Err, Context); in parseIRFile()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/AsmParser/
DParser.cpp59 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseAssemblyFile() local
61 if (std::error_code EC = FileOrErr.getError()) { in parseAssemblyFile()
67 return parseAssembly(FileOrErr.get()->getMemBufferRef(), Err, Context, Slots, in parseAssemblyFile()
89 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseAssemblyFileWithIndex() local
91 if (std::error_code EC = FileOrErr.getError()) { in parseAssemblyFileWithIndex()
97 return parseAssemblyWithIndex(FileOrErr.get()->getMemBufferRef(), Err, in parseAssemblyFileWithIndex()
137 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseSummaryIndexAssemblyFile() local
139 if (std::error_code EC = FileOrErr.getError()) { in parseSummaryIndexAssemblyFile()
145 return parseSummaryIndexAssembly(FileOrErr.get()->getMemBufferRef(), Err); in parseSummaryIndexAssemblyFile()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IRReader/
DIRReader.cpp57 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in getLazyIRFileModule() local
59 if (std::error_code EC = FileOrErr.getError()) { in getLazyIRFileModule()
65 return getLazyIRModule(std::move(FileOrErr.get()), Err, Context, in getLazyIRFileModule()
100 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseIRFile() local
102 if (std::error_code EC = FileOrErr.getError()) { in parseIRFile()
108 return parseIR(FileOrErr.get()->getMemBufferRef(), Err, Context, in parseIRFile()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-mt/
Dllvm-mt.cpp151 Expected<std::unique_ptr<FileOutputBuffer>> FileOrErr = in main() local
153 if (!FileOrErr) in main()
154 reportError(OutputFile, errorToErrorCode(FileOrErr.takeError())); in main()
155 std::unique_ptr<FileOutputBuffer> FileBuffer = std::move(*FileOrErr); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/TableGen/
DMain.cpp81 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in TableGenMain() local
83 if (std::error_code EC = FileOrErr.getError()) in TableGenMain()
88 SrcMgr.AddNewSourceBuffer(std::move(*FileOrErr), SMLoc()); in TableGenMain()
/external/llvm/lib/TableGen/
DMain.cpp77 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in TableGenMain() local
79 if (std::error_code EC = FileOrErr.getError()) { in TableGenMain()
86 SrcMgr.AddNewSourceBuffer(std::move(*FileOrErr), SMLoc()); in TableGenMain()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DFileOutputBuffer.cpp115 Expected<fs::TempFile> FileOrErr = in createOnDiskBuffer() local
117 if (!FileOrErr) in createOnDiskBuffer()
118 return FileOrErr.takeError(); in createOnDiskBuffer()
119 fs::TempFile File = std::move(*FileOrErr); in createOnDiskBuffer()
DSpecialCaseList.cpp102 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in createInternal() local
104 if (std::error_code EC = FileOrErr.getError()) { in createInternal()
109 if (!parse(FileOrErr.get().get(), Sections, ParseError)) { in createInternal()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DBinary.cpp90 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in createBinary() local
92 if (std::error_code EC = FileOrErr.getError()) in createBinary()
94 std::unique_ptr<MemoryBuffer> &Buffer = FileOrErr.get(); in createBinary()
DObjectFile.cpp154 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in createObjectFile() local
156 if (std::error_code EC = FileOrErr.getError()) in createObjectFile()
158 std::unique_ptr<MemoryBuffer> Buffer = std::move(FileOrErr.get()); in createObjectFile()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-cvtres/
Dllvm-cvtres.cpp195 auto FileOrErr = in main() local
197 if (!FileOrErr) in main()
198 reportError(OutputFile, errorToErrorCode(FileOrErr.takeError())); in main()
199 std::unique_ptr<FileOutputBuffer> FileBuffer = std::move(*FileOrErr); in main()
/external/llvm/lib/Object/
DBinary.cpp78 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in createBinary() local
80 if (std::error_code EC = FileOrErr.getError()) in createBinary()
82 std::unique_ptr<MemoryBuffer> &Buffer = FileOrErr.get(); in createBinary()
DModuleSummaryIndexObjectFile.cpp111 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in getModuleSummaryIndexForFile() local
113 std::error_code EC = FileOrErr.getError(); in getModuleSummaryIndexForFile()
116 MemoryBufferRef BufferRef = (FileOrErr.get())->getMemBufferRef(); in getModuleSummaryIndexForFile()
DObjectFile.cpp113 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in createObjectFile() local
115 if (std::error_code EC = FileOrErr.getError()) in createObjectFile()
117 std::unique_ptr<MemoryBuffer> Buffer = std::move(FileOrErr.get()); in createObjectFile()
/external/llvm/lib/AsmParser/
DParser.cpp51 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseAssemblyFile() local
53 if (std::error_code EC = FileOrErr.getError()) { in parseAssemblyFile()
59 return parseAssembly(FileOrErr.get()->getMemBufferRef(), Err, Context, Slots); in parseAssemblyFile()
/external/llvm/lib/Support/
DSpecialCaseList.cpp54 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in create() local
56 if (std::error_code EC = FileOrErr.getError()) { in create()
61 if (!SCL->parse(FileOrErr.get().get(), ParseError)) { in create()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-cfi-verify/
Dllvm-cfi-verify.cpp64 auto FileOrErr = MemoryBuffer::getFile(LineInfo.FileName); in printBlameContext() local
65 if (!FileOrErr) { in printBlameContext()
70 std::unique_ptr<MemoryBuffer> File = std::move(FileOrErr.get()); in printBlameContext()
/external/llvm/utils/FileCheck/
DFileCheck.cpp868 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in ReadCheckFile() local
870 if (std::error_code EC = FileOrErr.getError()) { in ReadCheckFile()
879 std::move(FileOrErr.get()), NoCanonicalizeWhiteSpace); in ReadCheckFile()
1335 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in main() local
1337 if (std::error_code EC = FileOrErr.getError()) { in main()
1342 std::unique_ptr<MemoryBuffer> &File = FileOrErr.get(); in main()
/external/clang/lib/Lex/
DPTHLexer.cpp436 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> FileOrErr = in Create() local
439 if (!FileOrErr) { in Create()
444 std::unique_ptr<llvm::MemoryBuffer> File = std::move(FileOrErr.get()); in Create()
/external/llvm/lib/CodeGen/MIRParser/
DMIRParser.cpp774 auto FileOrErr = MemoryBuffer::getFile(Filename); in createMIRParserFromFile() local
775 if (std::error_code EC = FileOrErr.getError()) { in createMIRParserFromFile()
780 return createMIRParser(std::move(FileOrErr.get()), Context); in createMIRParserFromFile()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/MIRParser/
DMIRParser.cpp903 auto FileOrErr = MemoryBuffer::getFileOrSTDIN(Filename); in createMIRParserFromFile() local
904 if (std::error_code EC = FileOrErr.getError()) { in createMIRParserFromFile()
909 return createMIRParser(std::move(FileOrErr.get()), Context); in createMIRParserFromFile()
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/PowerPC/
Dtoc-load-sched-bug.ll176 %FileOrErr = alloca %"class.llvm::ErrorOr", align 8
187 …oryBuffer14getFileOrSTDINENS_9StringRefEl(%"class.llvm::ErrorOr"* sret %FileOrErr, [2 x i64] %.fca…
188 …%HasError.i24 = getelementptr inbounds %"class.llvm::ErrorOr", %"class.llvm::ErrorOr"* %FileOrErr,…
195 %retval.sroa.0.0..sroa_cast.i = bitcast %"class.llvm::ErrorOr"* %FileOrErr to i64*
197 …getelementptr inbounds %"class.llvm::ErrorOr", %"class.llvm::ErrorOr"* %FileOrErr, i64 0, i32 0, i…
406 …%_M_head_impl.i.i.i.i.i = bitcast %"class.llvm::ErrorOr"* %FileOrErr to %"class.llvm::MemoryBuffer…
419 …%_M_head_impl.i.i.i.i.i.i = bitcast %"class.llvm::ErrorOr"* %FileOrErr to %"class.llvm::MemoryBuff…
/external/llvm/test/CodeGen/PowerPC/
Dtoc-load-sched-bug.ll176 %FileOrErr = alloca %"class.llvm::ErrorOr", align 8
187 …oryBuffer14getFileOrSTDINENS_9StringRefEl(%"class.llvm::ErrorOr"* sret %FileOrErr, [2 x i64] %.fca…
188 …%HasError.i24 = getelementptr inbounds %"class.llvm::ErrorOr", %"class.llvm::ErrorOr"* %FileOrErr,…
195 %retval.sroa.0.0..sroa_cast.i = bitcast %"class.llvm::ErrorOr"* %FileOrErr to i64*
197 …getelementptr inbounds %"class.llvm::ErrorOr", %"class.llvm::ErrorOr"* %FileOrErr, i64 0, i32 0, i…
406 …%_M_head_impl.i.i.i.i.i = bitcast %"class.llvm::ErrorOr"* %FileOrErr to %"class.llvm::MemoryBuffer…
419 …%_M_head_impl.i.i.i.i.i.i = bitcast %"class.llvm::ErrorOr"* %FileOrErr to %"class.llvm::MemoryBuff…
/external/swiftshader/third_party/llvm-7.0/llvm/lib/LTO/
DLTO.cpp273 auto FileOrErr = MemoryBuffer::getFile(Conf.SampleProfile); in computeCacheKey() local
274 if (FileOrErr) in computeCacheKey()
275 Hasher.update(FileOrErr.get()->getBuffer()); in computeCacheKey()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp5951 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in getModuleSummaryIndexForFile() local
5953 if (!FileOrErr) in getModuleSummaryIndexForFile()
5954 return errorCodeToError(FileOrErr.getError()); in getModuleSummaryIndexForFile()
5955 if (IgnoreEmptyThinLTOIndexFile && !(*FileOrErr)->getBufferSize()) in getModuleSummaryIndexForFile()
5957 return getModuleSummaryIndex(**FileOrErr); in getModuleSummaryIndexForFile()

12