Searched refs:Err (Results 1 - 25 of 249) sorted by relevance

12345678910

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm-c/
H A DError.h37 LLVMErrorTypeId LLVMGetErrorTypeId(LLVMErrorRef Err);
45 void LLVMConsumeError(LLVMErrorRef Err);
53 char *LLVMGetErrorMessage(LLVMErrorRef Err);
/freebsd-11-stable/contrib/diff/lib/
H A Dxstrtol.h58 # define _STRTOL_ERROR(Exit_code, Str, Argument_type_string, Err) \
61 switch ((Err)) \
85 # define STRTOL_FATAL_ERROR(Str, Argument_type_string, Err) \
86 _STRTOL_ERROR (exit_failure, Str, Argument_type_string, Err)
88 # define STRTOL_FAIL_WARN(Str, Argument_type_string, Err) \
89 _STRTOL_ERROR (0, Str, Argument_type_string, Err)
/freebsd-11-stable/gnu/usr.bin/grep/
H A Dxstrtol.h32 # define _STRTOL_ERROR(Exit_code, Str, Argument_type_string, Err) \
35 switch ((Err)) \
58 # define STRTOL_FATAL_ERROR(Str, Argument_type_string, Err) \
59 _STRTOL_ERROR (2, Str, Argument_type_string, Err)
61 # define STRTOL_FAIL_WARN(Str, Argument_type_string, Err) \
62 _STRTOL_ERROR (0, Str, Argument_type_string, Err)
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DParser.h35 /// \param Err Error result info.
44 parseAssemblyFile(StringRef Filename, SMDiagnostic &Err, LLVMContext &Context,
55 /// \param Err Error result info.
64 SMDiagnostic &Err,
85 /// \param Err Error result info.
94 parseAssemblyFileWithIndex(StringRef Filename, SMDiagnostic &Err,
106 /// \param Err Error result info.
108 parseSummaryIndexAssemblyFile(StringRef Filename, SMDiagnostic &Err);
113 /// \param Err Error result info.
120 std::unique_ptr<Module> parseAssembly(MemoryBufferRef F, SMDiagnostic &Err,
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DDataExtractor.cpp28 bool isLittleEndian, const char *Data, llvm::Error *Err) {
29 ErrorAsOutParameter ErrAsOut(Err);
31 if (isError(Err))
36 unexpectedEndReached(Err);
51 llvm::Error *Err) {
52 ErrorAsOutParameter ErrAsOut(Err);
53 if (isError(Err))
59 unexpectedEndReached(Err);
64 *value_ptr = getU<T>(offset_ptr, de, isLittleEndian, Data, Err);
72 uint8_t DataExtractor::getU8(uint64_t *offset_ptr, llvm::Error *Err) cons
27 getU(uint64_t *offset_ptr, const DataExtractor *de, bool isLittleEndian, const char *Data, llvm::Error *Err) argument
49 getUs(uint64_t *offset_ptr, T *dst, uint32_t count, const DataExtractor *de, bool isLittleEndian, const char *Data, llvm::Error *Err) argument
[all...]
H A DError.cpp93 std::error_code errorToErrorCode(Error Err) { argument
95 handleAllErrors(std::move(Err), [&](const ErrorInfoBase &EI) {
140 void report_fatal_error(Error Err, bool GenCrashDiag) { argument
141 assert(Err && "report_fatal_error called with success value");
145 logAllUnhandledErrors(std::move(Err), ErrStream);
152 LLVMErrorTypeId LLVMGetErrorTypeId(LLVMErrorRef Err) { argument
153 return reinterpret_cast<ErrorInfoBase *>(Err)->dynamicClassID();
156 void LLVMConsumeError(LLVMErrorRef Err) { consumeError(unwrap(Err)); } argument
158 char *LLVMGetErrorMessage(LLVMErrorRef Err) { argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/MCA/
H A DPipeline.cpp42 if (Error Err = runCycle())
43 return std::move(Err);
52 Error Err = ErrorSuccess(); local
54 for (auto I = Stages.rbegin(), E = Stages.rend(); I != E && !Err; ++I) {
56 Err = S->cycleStart();
62 while (!Err && FirstStage.isAvailable(IR))
63 Err = FirstStage.execute(IR);
67 Err = S->cycleEnd();
68 if (Err)
72 return Err;
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Object/
H A DTapiUniversal.cpp23 TapiUniversal::TapiUniversal(MemoryBufferRef Source, Error &Err) argument
26 ErrorAsOutParameter ErrAsOuParam(&Err);
28 Err = Result.takeError();
49 Error Err = Error::success(); local
50 std::unique_ptr<TapiUniversal> Ret(new TapiUniversal(Source, Err));
51 if (Err)
52 return std::move(Err);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/AsmParser/
H A DParser.cpp26 ModuleSummaryIndex *Index, SMDiagnostic &Err,
34 return LLParser(F.getBuffer(), SM, Err, M, Index,
41 llvm::parseAssembly(MemoryBufferRef F, SMDiagnostic &Err, LLVMContext &Context, argument
47 if (parseAssemblyInto(F, M.get(), nullptr, Err, Slots, UpgradeDebugInfo,
55 llvm::parseAssemblyFile(StringRef Filename, SMDiagnostic &Err, argument
61 Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
66 return parseAssembly(FileOrErr.get()->getMemBufferRef(), Err, Context, Slots,
71 MemoryBufferRef F, SMDiagnostic &Err, LLVMContext &Context,
78 if (parseAssemblyInto(F, M.get(), Index.get(), Err, Slots, UpgradeDebugInfo,
86 StringRef Filename, SMDiagnostic &Err, LLVMContex
25 parseAssemblyInto(MemoryBufferRef F, Module *M, ModuleSummaryIndex *Index, SMDiagnostic &Err, SlotMapping *Slots, bool UpgradeDebugInfo, StringRef DataLayoutString) argument
70 parseAssemblyWithIndex( MemoryBufferRef F, SMDiagnostic &Err, LLVMContext &Context, SlotMapping *Slots, bool UpgradeDebugInfo, StringRef DataLayoutString) argument
85 parseAssemblyFileWithIndex( StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, SlotMapping *Slots, bool UpgradeDebugInfo, StringRef DataLayoutString) argument
102 parseAssemblyString(StringRef AsmString, SMDiagnostic &Err, LLVMContext &Context, SlotMapping *Slots, bool UpgradeDebugInfo, StringRef DataLayoutString) argument
110 parseSummaryIndexAssemblyInto(MemoryBufferRef F, ModuleSummaryIndex &Index, SMDiagnostic &Err) argument
124 parseSummaryIndexAssembly(MemoryBufferRef F, SMDiagnostic &Err) argument
135 parseSummaryIndexAssemblyFile(StringRef Filename, SMDiagnostic &Err) argument
147 parseConstantValue(StringRef Asm, SMDiagnostic &Err, const Module &M, const SlotMapping *Slots) argument
159 parseType(StringRef Asm, SMDiagnostic &Err, const Module &M, const SlotMapping *Slots) argument
175 parseTypeAtBeginning(StringRef Asm, unsigned &Read, SMDiagnostic &Err, const Module &M, const SlotMapping *Slots) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IRReader/
H A DIRReader.h36 SMDiagnostic &Err, LLVMContext &Context,
45 getLazyIRFileModule(StringRef Filename, SMDiagnostic &Err, LLVMContext &Context,
55 std::unique_ptr<Module> parseIR(MemoryBufferRef Buffer, SMDiagnostic &Err,
67 std::unique_ptr<Module> parseIRFile(StringRef Filename, SMDiagnostic &Err,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DEHFrameSupport.cpp58 if (auto Err = processBlock(G, B, BCache))
59 return Err;
93 if (auto Err = BlockReader.readInteger(Length))
94 return Err;
96 if (auto Err = BlockReader.skip(Length))
97 return Err;
100 if (auto Err = BlockReader.readInteger(ExtendedLength))
101 return Err;
102 if (auto Err = BlockReader.skip(ExtendedLength))
103 return Err;
[all...]
H A DJITLinkGeneric.cpp35 if (auto Err = runPasses(Passes.PrePrunePasses))
36 return Ctx->notifyFailed(std::move(Err));
51 if (auto Err = runPasses(Passes.PostPrunePasses))
52 return Ctx->notifyFailed(std::move(Err));
58 if (auto Err = allocateSegments(Layout))
59 return Ctx->notifyFailed(std::move(Err));
103 if (auto Err = copyAndFixUpBlocks(Layout, *Alloc))
104 return deallocateAndBailOut(std::move(Err));
111 if (auto Err = runPasses(Passes.PostFixupPasses))
112 return deallocateAndBailOut(std::move(Err));
124 linkPhase3(std::unique_ptr<JITLinkerBase> Self, Error Err) argument
305 deallocateAndBailOut(Error Err) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Testing/Support/
H A DError.cpp15 llvm::detail::ErrorHolder llvm::detail::TakeError(llvm::Error Err) { argument
17 handleAllErrors(std::move(Err),
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A Dfallible_iterator.h43 /// fallible_iterator<ArchiveChildItr> children_begin(Error &Err);
46 /// children(Error &Err) {
47 /// return make_range(children_begin(Err), children_end());
52 /// Error Err = Error::success();
53 /// for (auto &C : A.children(Err)) {
56 /// if (Err) {
84 static fallible_iterator itr(Underlying I, Error &Err) { argument
85 (void)!!Err;
86 return fallible_iterator(std::move(I), &Err);
129 if (auto Err
197 fallible_iterator(Underlying I, Error *Err) argument
206 handleError(Error Err) argument
223 make_fallible_itr(Underlying I, Error &Err) argument
236 make_fallible_range(Underlying I, Underlying E, Error &Err) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IRReader/
H A DIRReader.cpp33 llvm::getLazyIRModule(std::unique_ptr<MemoryBuffer> Buffer, SMDiagnostic &Err, argument
41 Err = SMDiagnostic(Buffer->getBufferIdentifier(), SourceMgr::DK_Error,
49 return parseAssembly(Buffer->getMemBufferRef(), Err, Context);
53 SMDiagnostic &Err,
59 Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
64 return getLazyIRModule(std::move(FileOrErr.get()), Err, Context,
68 std::unique_ptr<Module> llvm::parseIR(MemoryBufferRef Buffer, SMDiagnostic &Err, argument
81 Err = SMDiagnostic(Buffer.getBufferIdentifier(), SourceMgr::DK_Error,
91 return parseAssembly(Buffer, Err, Context, nullptr, UpgradeDebugInfo,
95 std::unique_ptr<Module> llvm::parseIRFile(StringRef Filename, SMDiagnostic &Err, argument
52 getLazyIRFileModule(StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, bool ShouldLazyLoadMetadata) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Basic/
H A DDiagnosticError.h39 static Optional<PartialDiagnosticAt> take(llvm::Error &Err) { argument
41 Err = llvm::handleErrors(std::move(Err), [&](DiagnosticError &E) {
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/
H A DRefactoringCallbacks.cpp52 llvm::Error Err = variable
55 if (Err) {
58 << toString(std::move(Err)) << "\n";
91 auto Err = Replace.add(tooling::Replacement( local
96 if (Err) {
97 llvm::errs() << llvm::toString(std::move(Err)) << "\n";
111 auto Err = Replace.add( local
115 if (Err) {
116 llvm::errs() << llvm::toString(std::move(Err)) << "\n";
131 auto Err local
142 auto Err = local
231 llvm::Error Err = Replace.add(Replacement); local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DLLJIT.cpp66 if (auto Err =
68 return Err;
130 LLJIT::LLJIT(LLJITBuilderState &S, Error &Err) argument
137 ErrorAsOutParameter _(&Err);
142 Err = DLOrErr.takeError();
149 Err = CompileFunction.takeError();
196 if (auto Err = LLJITBuilderState::prepareForConstruction())
197 return Err;
205 if (auto Err = TSM.withModuleDo([&](Module &M) -> Error {
206 if (auto Err
217 LLLazyJIT(LLLazyJITBuilderState &S, Error &Err) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDKernelCodeTUtils.cpp119 static bool expectAbsExpression(MCAsmParser &MCParser, int64_t &Value, raw_ostream& Err) { argument
122 Err << "expected '='";
128 Err << "integer absolute expression expected";
136 raw_ostream &Err) {
138 if (!expectAbsExpression(MCParser, Value, Err))
146 raw_ostream &Err) {
148 if (!expectAbsExpression(MCParser, Value, Err))
157 raw_ostream &Err);
171 raw_ostream &Err) {
174 Err << "unexpecte
135 parseField(amd_kernel_code_t &C, MCAsmParser &MCParser, raw_ostream &Err) argument
145 parseBitField(amd_kernel_code_t &C, MCAsmParser &MCParser, raw_ostream &Err) argument
168 parseAmdKernelCodeField(StringRef ID, MCAsmParser &MCParser, amd_kernel_code_t &C, raw_ostream &Err) argument
[all...]
H A DAMDKernelCodeTUtils.h31 amd_kernel_code_t &C, raw_ostream &Err);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DDataExtractor.h56 Error Err; member in class:llvm::DataExtractor::Cursor
62 explicit Cursor(uint64_t Offset) : Offset(Offset), Err(Error::success()) {}
67 explicit operator bool() { return !Err; }
75 Error takeError() { return std::move(Err); }
165 /// @param[in,out] Err
175 Error *Err = nullptr) const;
181 return getUnsigned(&C.Offset, Size, &C.Err);
247 /// @param[in,out] Err
255 uint8_t getU8(uint64_t *offset_ptr, Error *Err = nullptr) const;
260 uint8_t getU8(Cursor &C) const { return getU8(&C.Offset, &C.Err); }
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/tools/opt/
H A DNewPMDriver.cpp125 if (auto Err = PB.parsePassPipeline(PM, PipelineOpt)) {
127 << " pipeline: " << toString(std::move(Err))
142 ExitOnError Err("Unable to parse PeepholeEP pipeline: ");
143 Err(PB.parsePassPipeline(PM, PeepholeEPPipeline, VerifyEachPass,
151 ExitOnError Err("Unable to parse LateLoopOptimizationsEP pipeline: ");
152 Err(PB.parsePassPipeline(PM, LateLoopOptimizationsEPPipeline,
159 ExitOnError Err("Unable to parse LoopOptimizerEndEP pipeline: ");
160 Err(PB.parsePassPipeline(PM, LoopOptimizerEndEPPipeline,
168 ExitOnError Err("Unable to parse ScalarOptimizerLateEP pipeline: ");
169 Err(P
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/RPC/
H A DRPCSerialization.h295 if (auto Err =
298 return Err;
299 if (auto Err = SequenceTraits<ChannelT>::emitSeparator(C))
300 return Err;
308 if (auto Err =
310 return Err;
311 if (auto Err = SequenceTraits<ChannelT>::consumeSeparator(C))
312 return Err;
336 std::function<Error(ChannelT &C, Error &Err)>;
367 if (auto Err
374 serialize(ChannelT &C, Error &&Err) argument
389 deserialize(ChannelT &C, Error &Err) argument
524 serialize(ChannelT &C, Error &&Err) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ProfileData/Coverage/
H A DCoverageMappingReader.cpp70 if (auto Err = readULEB128(Result))
71 return Err;
78 if (auto Err = readULEB128(Result))
79 return Err;
88 if (auto Err = readSize(Length))
89 return Err;
97 if (auto Err = readSize(NumFilenames))
98 return Err;
101 if (auto Err = readString(Filename))
102 return Err;
775 Error Err = Error::success(); local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/
H A DBuffer.cpp53 Error Err = Buf->commit(); local
56 return Err ? createFileError(getName(), std::move(Err)) : std::move(Err);

Completed in 167 milliseconds

12345678910