| /llvm-project/clang/test/Analysis/ |
| H A D | std-c-library-functions-POSIX.c | 171 ssize_t Ret = recvfrom(socket, buffer, length, flags, address, address_len); in test_recvfrom() local 172 if (Ret == 0) in test_recvfrom() 174 if (Ret > 0) in test_recvfrom() 176 if (Ret == -1) in test_recvfrom() 182 ssize_t Ret = sendto(socket, message, length, flags, dest_addr, dest_len); in test_sendto() local 183 if (Ret == 0) in test_sendto() 185 if (Ret > 0) in test_sendto() 187 if (Ret == -1) in test_sendto() 192 ssize_t Ret = recv(sockfd, buf, len, flags); in test_recv() local 193 if (Ret == 0) in test_recv() [all …]
|
| H A D | stream-noopen.c | 35 size_t Ret = fread(RBuf, 1, 10, F); in test_fread() local 37 if (Ret == 10) { in test_fread() 40 clang_analyzer_eval(Ret < 10); // expected-warning {{TRUE}} in test_fread() 48 size_t Ret = fwrite(WBuf, 1, 10, F); in test_fwrite() local 50 if (Ret == 10) { in test_fwrite() 53 clang_analyzer_eval(Ret < 10); // expected-warning {{TRUE}} in test_fwrite() 61 int Ret = fgetc(F); in test_fgetc() local 63 if (Ret != EOF) { in test_fgetc() 74 int Ret = fputc('a', F); in test_fputc() local 76 if (Ret != EOF) { in test_fputc() [all …]
|
| H A D | stream-pedantic.c | 16 size_t Ret = fwrite(Buf, 1, 10, Fp); in check_fwrite() local 17 clang_analyzer_eval(Ret == 0); // nopedantic-warning {{FALSE}} \ in check_fwrite() 28 int Ret = fputc('A', Fp); in check_fputc() local 29 clang_analyzer_eval(Ret == EOF); // nopedantic-warning {{FALSE}} \ in check_fputc() 40 int Ret = fputs("ABC", Fp); in check_fputs() local 41 clang_analyzer_eval(Ret == EOF); // nopedantic-warning {{FALSE}} \ in check_fputs() 52 int Ret = fprintf(Fp, "ABC"); in check_fprintf() local 53 clang_analyzer_eval(Ret < 0); // nopedantic-warning {{FALSE}} \ in check_fprintf() 64 int Ret = fseek(Fp, 0, 0); in check_fseek() local 65 clang_analyzer_eval(Ret == -1); // nopedantic-warning {{FALSE}} \ in check_fseek() [all …]
|
| H A D | stream-error.c | 82 int Ret = fread(Buf, 1, 10, F); in error_fread() local 83 if (Ret == 10) { in error_fread() 99 Ret = fread(Buf, 1, 10, F); // expected-warning {{Use of a stream that might be already closed}} in error_fread() 107 int Ret = fwrite(Buf, 1, 10, F); in error_fwrite() local 108 if (Ret == 10) { in error_fwrite() 116 Ret = fwrite(0, 1, 10, F); // expected-warning {{Use of a stream that might be already closed}} in error_fwrite() 123 int Ret = fgetc(F); in error_fgetc() local 124 if (0 <= Ret && Ret <= 255) { in error_fgetc() 127 clang_analyzer_eval(Ret in error_fgetc() 146 char *Ret = fgets(Buf, sizeof(Buf), F); error_fgets() local 168 int Ret = fputc('X', F); error_fputc() local 186 int Ret = fputs("XYZ", F); error_fputs() local 204 int Ret = fprintf(F, "aaa"); error_fprintf() local 221 int Ret = fscanf(F, "a%ib", A); error_fscanf() local 246 int Ret = ungetc('X', F); error_ungetc() local 266 ssize_t Ret = getdelim(&P, &Sz, '\t', F); error_getdelim() local 288 ssize_t Ret = getline(&P, &Sz, F); error_getline() local 323 size_t Ret; freadwrite_zerosize() local [all...] |
| H A D | stream-errno.c | 59 int Ret = fclose(F); in check_fclose() local 60 if (Ret == EOF) { in check_fclose() 189 int Ret = fgetpos(F, &Pos); in check_fgetpos() local 190 if (Ret) in check_fgetpos() 204 int Ret = fsetpos(F, &Pos); in check_fsetpos() local 205 if (Ret) in check_fsetpos() 218 long Ret = ftell(F); in check_ftell() local 219 if (Ret == -1) { in check_ftell() 223 clang_analyzer_eval(Ret >= 0); // expected-warning{{TRUE}} in check_ftell() 233 off_t Ret = ftello(F); in check_ftello() local [all …]
|
| H A D | errno-stdlibraryfunctions.c | 118 int Ret = execv(Path, Argv); in errno_execv() local 119 clang_analyzer_eval(Ret == -1); // expected-warning{{TRUE}} in errno_execv() 125 int Ret = execvp(File, Argv); in errno_execvp() local 126 clang_analyzer_eval(Ret == -1); // expected-warning{{TRUE}} in errno_execvp() 146 int Ret = pclose(F); in errno_pclose() local 147 if (Ret == -1) { in errno_pclose() 151 clang_analyzer_eval(Ret >= 0); // expected-warning{{TRUE}} in errno_pclose() 157 char *Ret = realpath(Path, Buf); in errno_realpath() local 158 if (!Ret) { in errno_realpath()
|
| H A D | stream-invalidate.c | 88 int Ret = fscanf(F, "%d %u", &a, &b); in test_fscanf() local 89 if (Ret == 0) { in test_fscanf() 94 } else if (Ret == 1) { in test_fscanf() 98 } else if (Ret >= 2) { in test_fscanf() 101 clang_analyzer_eval(Ret == 2); // expected-warning {{FALSE}} expected-warning {{TRUE}} in test_fscanf() 118 ssize_t Ret = getdelim(&P, &Sz, '\t', F); in test_getdelim() local 119 if (Ret < 0) { in test_getdelim() 140 int Ret = fgetpos(F, &Pos); in test_fgetpos() local 141 if (Ret == 0) { in test_fgetpos()
|
| /llvm-project/llvm/lib/Target/VE/ |
| H A D | VETargetMachine.cpp | 38 std::string Ret = "e"; in computeDataLayout() local 41 Ret += "-m:e"; in computeDataLayout() 44 Ret += "-i64:64"; in computeDataLayout() 47 Ret += "-n32:64"; in computeDataLayout() 50 Ret += "-S128"; in computeDataLayout() 55 Ret += "-v64:64:64"; // for v2f32 in computeDataLayout() 56 Ret += "-v128:64:64"; in computeDataLayout() 57 Ret += "-v256:64:64"; in computeDataLayout() 58 Ret += "-v512:64:64"; in computeDataLayout() 59 Ret in computeDataLayout() [all...] |
| /llvm-project/lldb/source/Host/linux/ |
| H A D | Support.cpp | 20 auto Ret = llvm::MemoryBuffer::getFileAsStream(File); in getProcFile() local 21 if (!Ret) in getProcFile() 22 LLDB_LOG(log, "Failed to open {0}: {1}", File, Ret.getError().message()); in getProcFile() 23 return Ret; in getProcFile() 30 auto Ret = llvm::MemoryBuffer::getFileAsStream(File); in getProcFile() local 31 if (!Ret) in getProcFile() 32 LLDB_LOG(log, "Failed to open {0}: {1}", File, Ret.getError().message()); in getProcFile() 33 return Ret; in getProcFile() 40 auto Ret = llvm::MemoryBuffer::getFileAsStream(File); in getProcFile() local 41 if (!Ret) in getProcFile() [all …]
|
| /llvm-project/libcxx/test/support/ |
| H A D | callable_types.h | 21 template <class Ret> 29 constexpr Ret operator()(Args&&...) { return Ret{value}; } in operator() 32 Ret value; 35 template <class Ret> 44 constexpr Ret operator()(Args&&...) { return Ret{value}; } in operator() 47 Ret value; 51 template <class Ret> 60 constexpr Ret operator()(Args&&...) const { return Ret{value}; } in operator() 63 Ret value; 68 template <class Ret> [all …]
|
| /llvm-project/clang/test/CodeGenCXX/ |
| H A D | mangle-ms-template-callback.cpp | 6 template<typename Ret> 7 class C<Ret(void)> {}; 10 template<typename Ret, typename Arg1> 11 class C<Ret(Arg1)> {}; 13 template<typename Ret, typename Arg1, typename Arg2> 14 class C<Ret(Arg1, Arg2)> {}; 45 template<typename Ret> class C<Ret(*)(void)> {}; 50 template<typename Ret> class C<Ret(^)(void)> {};
|
| /llvm-project/libc/test/src/string/ |
| H A D | memmove_test.cpp | 26 void *const Ret = LIBC_NAMESPACE::memmove(Dst, Buffer + 2, 0); in TEST() 27 EXPECT_EQ(Ret, Dst); in TEST() 35 void *const Ret = LIBC_NAMESPACE::memmove(Dst, Buffer, 1); in TEST() 36 EXPECT_EQ(Ret, Dst); in TEST() 46 void *const Ret = LIBC_NAMESPACE::memmove(Dst, Buffer + 2, 2); in TEST() 47 EXPECT_EQ(Ret, Dst); in TEST() 55 void *const Ret = LIBC_NAMESPACE::memmove(Dst, Buffer + 1, 2); in TEST() 56 EXPECT_EQ(Ret, Dst); in TEST() 68 void *const Ret = LIBC_NAMESPACE::memmove(Dst, Buffer + 2, 1); in TEST() 69 EXPECT_EQ(Ret, Ds in TEST() 25 void *const Ret = LIBC_NAMESPACE::memmove(Dst, Buffer + 2, 0); TEST() local 34 void *const Ret = LIBC_NAMESPACE::memmove(Dst, Buffer, 1); TEST() local 45 void *const Ret = LIBC_NAMESPACE::memmove(Dst, Buffer + 2, 2); TEST() local 54 void *const Ret = LIBC_NAMESPACE::memmove(Dst, Buffer + 1, 2); TEST() local 67 void *const Ret = LIBC_NAMESPACE::memmove(Dst, Buffer + 2, 1); TEST() local 76 void *const Ret = LIBC_NAMESPACE::memmove(Dst, Buffer + 1, 1); TEST() local [all...] |
| /llvm-project/clang/unittests/AST/ |
| H A D | RecursiveASTVisitorTest.cpp | 76 bool Ret = RecursiveASTVisitor::TraverseFunctionDecl(D); in TraverseFunctionDecl() local 79 return Ret; in TraverseFunctionDecl() 84 bool Ret = RecursiveASTVisitor::TraverseAttr(A); in TraverseAttr() local 87 return Ret; in TraverseAttr() 92 bool Ret = RecursiveASTVisitor::TraverseEnumDecl(D); in TraverseEnumDecl() local 95 return Ret; in TraverseEnumDecl() 100 bool Ret = RecursiveASTVisitor::TraverseTypedefTypeLoc(TL); in TraverseTypedefTypeLoc() local 103 return Ret; in TraverseTypedefTypeLoc() 108 bool Ret = RecursiveASTVisitor::TraverseObjCInterfaceDecl(ID); in TraverseObjCInterfaceDecl() local 111 return Ret; in TraverseObjCInterfaceDecl() [all …]
|
| /llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCReduceCRLogicals.cpp | 465 CRLogicalOpInfo Ret; in createCRLogicalOpInfo() local 466 Ret.MI = &MIParam; in createCRLogicalOpInfo() 469 Ret.IsNullary = 1; in createCRLogicalOpInfo() 470 Ret.TrueDefs = std::make_pair(nullptr, nullptr); in createCRLogicalOpInfo() 471 Ret.CopyDefs = std::make_pair(nullptr, nullptr); in createCRLogicalOpInfo() 474 Ret.SubregDef1, Ret.CopyDefs.first); in createCRLogicalOpInfo() 476 Ret.DefsSingleUse &= in createCRLogicalOpInfo() 478 Ret.DefsSingleUse &= in createCRLogicalOpInfo() 479 MRI->hasOneNonDBGUse(Ret.CopyDefs.first->getOperand(0).getReg()); in createCRLogicalOpInfo() 481 Ret.IsBinary = 1; in createCRLogicalOpInfo() [all …]
|
| /llvm-project/clang/lib/Basic/ |
| H A D | Sarif.cpp | 72 SmallString<32> Ret = StringRef("file://"); in fileNameToURI() local 78 Ret += Root.drop_front(2).str(); in fileNameToURI() 81 Ret += Twine("/" + Root).str(); in fileNameToURI() 97 Ret += "/"; in fileNameToURI() 101 Ret += percentEncodeURICharacter(C); in fileNameToURI() 105 return std::string(Ret); in fileNameToURI() 131 unsigned int Ret = 1; in adjustColumnPos() local 134 Ret++; in adjustColumnPos() 137 return Ret; in adjustColumnPos() 168 json::Object Ret{{"physicalLocatio in createLocation() local 326 json::Object Ret{{"locations", json::Array{}}}; createThreadFlows() local 380 size_t Ret = CurrentRules.size(); createRule() local 392 json::Object Ret{{"message", createMessage(Result.DiagnosticMessage)}, appendResult() local [all...] |
| /llvm-project/llvm/lib/CodeGen/ |
| H A D | MIRFSDiscriminator.cpp | 68 uint64_t Ret = updateHash(std::to_string(DIL->getLine())); in getCallStackHashV0() local 69 Ret ^= updateHash(BB.getName()); in getCallStackHashV0() 70 Ret ^= updateHash(DIL->getScope()->getSubprogram()->getLinkageName()); in getCallStackHashV0() 72 Ret ^= updateHash(std::to_string(DIL->getLine())); in getCallStackHashV0() 73 Ret ^= updateHash(DIL->getScope()->getSubprogram()->getLinkageName()); in getCallStackHashV0() 75 return Ret; in getCallStackHashV0() 83 uint64_t Ret = 0; in getCallStackHash() local 85 Ret = hashCombine(Ret, xxh3_64bits(ArrayRef<uint8_t>(DIL->getLine()))); in getCallStackHash() 86 Ret = hashCombine(Ret, xxh3_64bits(DIL->getSubprogramLinkageName())); in getCallStackHash() 88 return Ret; in getCallStackHash()
|
| H A D | RegAllocScore.cpp | 59 double Ret = 0.0; 60 Ret += CopyWeight * copyCounts(); in getScore() 61 Ret += LoadWeight * loadCounts(); in getScore() local 62 Ret += StoreWeight * storeCounts(); in getScore() 63 Ret += (LoadWeight + StoreWeight) * loadStoreCounts(); in getScore() 64 Ret += CheapRematWeight * cheapRematCounts(); in getScore() 65 Ret += ExpensiveRematWeight * expensiveRematCounts(); in getScore() 67 return Ret; in getScore()
|
| /llvm-project/offload/src/ |
| H A D | omptarget.cpp | 492 int Ret = in targetLockExplicit() 495 if (Ret != OFFLOAD_SUCCESS) { in targetUnlockExplicit() 551 int Ret = OFFLOAD_SUCCESS; in targetDataBegin() 609 Ret = Device->getMappingInfo().eraseMapEntry(HDTTMap, Entry, DataSize); in targetDataBegin() 612 Ret |= Device->getMappingInfo().deallocTgtPtrAndEntry(Entry, DataSize); in targetDataBegin() 613 if (Ret != OFFLOAD_SUCCESS) { in targetDataBegin() 620 return Ret; in targetDataBegin() 628 int Ret = OFFLOAD_SUCCESS; in targetDataBegin() 645 Ret = targetDataMapper(Loc, Device, ArgBases[I], Args[I], ArgSizes[I], in targetDataBegin() 649 if (Ret ! in targetDataBegin() 707 int Ret = targetDataBegin() local 766 int Ret = OFFLOAD_SUCCESS; postProcessingTargetDataEnd() local 843 int Ret = OFFLOAD_SUCCESS; targetDataEnd() local 1007 int Ret = Device.submitData(TgtPtrBegin, HstPtrBegin, ArgSize, AsyncInfo, targetDataContiguous() local 1014 int Ret = TPR.getEntry()->foreachShadowPointerInfo( targetDataContiguous() local 1038 int Ret = Device.retrieveData(HstPtrBegin, TgtPtrBegin, ArgSize, AsyncInfo, targetDataContiguous() local 1049 int Ret = Entry->foreachShadowPointerInfo( targetDataContiguous() local 1076 int Ret = OFFLOAD_SUCCESS; targetDataNonContiguous() local 1132 int Ret = targetDataMapper(Loc, Device, ArgsBase[I], Args[I], ArgSizes[I], targetDataUpdate() local 1146 int Ret = OFFLOAD_SUCCESS; targetDataUpdate() local 1292 int Ret = Device.submitData(TgtPtr, HstPtr, ArgSize, AsyncInfo); addArg() local 1374 int Ret = Device.submitData(TgtPtr, FirstPrivateArgBuffer.data(), packAndTransfer() local 1402 int Ret = Device.deleteData(P); free() local 1431 int Ret = targetDataBegin(Loc, *DeviceOrErr, ArgNum, ArgBases, Args, ArgSizes, processDataBefore() local 1565 int Ret = targetDataEnd(Loc, *DeviceOrErr, ArgNum, ArgBases, Args, ArgSizes, processDataAfter() local 1578 int Ret = PrivateArgumentManager.free(); processDataAfter() local 1634 int Ret = OFFLOAD_SUCCESS; target() local 1760 int Ret = Device.launchKernel(TgtEntryPtr, TgtArgs, TgtOffsets, KernelArgs, target_replay() local [all...] |
| /llvm-project/llvm/lib/Object/ |
| H A D | SymbolSize.cpp | 51 std::vector<std::pair<SymbolRef, uint64_t>> Ret; in computeSymbolSizes() local 58 Ret.push_back({Sym, Sym.getSize()}); in computeSymbolSizes() 59 return Ret; in computeSymbolSizes() 64 Ret.push_back({Sym, Sym.getSize()}); in computeSymbolSizes() 65 return Ret; in computeSymbolSizes() 70 Ret.push_back({Sym, E->getSymbolSize(Sym)}); in computeSymbolSizes() 72 return Ret; in computeSymbolSizes() 96 return Ret; in computeSymbolSizes() 121 Ret.resize(SymNum); in computeSymbolSizes() 125 Ret[P.Number] = {*P.I, P.Address}; in computeSymbolSizes() [all …]
|
| /llvm-project/llvm/utils/TableGen/ |
| H A D | OptParserEmitter.cpp | |
| /llvm-project/llvm/include/llvm/ADT/ |
| H A D | STLFunctionalExtras.h | 39 template <typename Ret, typename... Params> 40 class LLVM_GSL_POINTER function_ref<Ret(Params...)> { 41 Ret (*callback)(intptr_t callable, Params ...params) = nullptr; 45 static Ret callback_fn(intptr_t callable, Params ...params) { in callback_fn() 61 std::enable_if_t<std::is_void<Ret>::value || 64 Ret>::value> * = nullptr) in callback() 68 Ret operator()(Params ...params) const { in operator() 74 bool operator==(const function_ref<Ret(Params...)> &Other) const {
|
| /llvm-project/libc/src/__support/CPP/ |
| H A D | functional.h | 32 template <typename Ret, typename... Params> class function<Ret(Params...)> { 33 Ret (*callback)(intptr_t callable, Params... params) = nullptr; 37 LIBC_INLINE static Ret callback_fn(intptr_t callable, Params... params) { in callback_fn() 54 enable_if_t<cpp::is_void_v<Ret> || 56 decltype(declval<Callable>()(declval<Params>()...)), Ret>> 61 LIBC_INLINE Ret operator()(Params... params) const { in operator()
|
| /llvm-project/llvm/lib/Demangle/ |
| H A D | DLangDemangle.cpp | 68 void decodeNumber(std::string_view &Mangled, unsigned long &Ret); 81 bool decodeBackrefPos(std::string_view &Mangled, long &Ret); 91 bool decodeBackref(std::string_view &Mangled, std::string_view &Ret); 169 void Demangler::decodeNumber(std::string_view &Mangled, unsigned long &Ret) { in decodeNumber() argument 201 Ret = Val; in decodeNumber() 204 bool Demangler::decodeBackrefPos(std::string_view &Mangled, long &Ret) { in decodeBackrefPos() argument 233 Ret = Val; in decodeBackrefPos() 247 std::string_view &Ret) { in decodeBackref() argument 250 Ret = {}; in decodeBackref() 268 Ret = Qpos - RefPos; in decodeBackref() [all …]
|
| /llvm-project/clang/lib/Basic/Targets/ |
| H A D | RISCV.cpp | 419 ParsedTargetAttr Ret; in parseTargetAttr() 421 return Ret; in parseTargetAttr() 450 Ret.Features.clear(); in parseTargetAttr() 452 Ret.Duplicate = "arch="; in parseTargetAttr() 457 handleArchExtension(AttrString, Ret.Features); in parseTargetAttr() 460 handleFullArchString(AttrString, Ret.Features); in parseTargetAttr() 463 if (!Ret.CPU.empty()) in parseTargetAttr() 464 Ret.Duplicate = "cpu="; in parseTargetAttr() 466 Ret.CPU = AttrString; in parseTargetAttr() 470 StringRef MarchFromCPU = llvm::RISCV::getMArchFromMcpu(Ret in parseTargetAttr() 410 ParsedTargetAttr Ret; parseTargetAttr() local [all...] |
| /llvm-project/llvm/test/Analysis/CostModel/SystemZ/ |
| H A D | cmp-mem.ll | 9 ; CHECK: Cost Model: Found an estimated cost of 2 for instruction: %Ret = zext i1 %Cmp to i32 10 ; CHECK: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %Ret 13 %Ret = zext i1 %Cmp to i32 14 ret i32 %Ret 21 ; CHECK: Cost Model: Found an estimated cost of 2 for instruction: %Ret = zext i1 %Cmp to i32 22 ; CHECK: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %Ret 25 %Ret = zext i1 %Cmp to i32 26 ret i32 %Ret
|