| /llvm-project-15.0.7/libc/test/src/stdlib/ |
| H A D | strtoll_test.cpp | 20 ASSERT_EQ(__llvm_libc::strtoll(ten, nullptr, -1), 0ll); in TEST() 29 ASSERT_EQ(__llvm_libc::strtoll(ten, &str_end, 10), 10ll); in TEST() 33 ASSERT_EQ(__llvm_libc::strtoll(ten, nullptr, 10), 10ll); in TEST() 38 ASSERT_EQ(__llvm_libc::strtoll(hundred, &str_end, 10), 100ll); in TEST() 44 ASSERT_EQ(__llvm_libc::strtoll(negative, &str_end, 10), -100ll); in TEST() 56 ASSERT_EQ(__llvm_libc::strtoll(big_negative_number, &str_end, 10), in TEST() 125 ASSERT_EQ(__llvm_libc::strtoll(word_before, &str_end, 10), 0ll); in TEST() 143 ASSERT_EQ(__llvm_libc::strtoll(two_signs, &str_end, 10), 0ll); in TEST() 155 ASSERT_EQ(__llvm_libc::strtoll(sign_after, &str_end, 10), 2ll); in TEST() 218 __llvm_libc::strtoll(small_string, nullptr, base), in TEST() [all …]
|
| H A D | CMakeLists.txt | 91 libc.src.stdlib.strtoll
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/ |
| H A D | strtoll_strict.c | 36 long long r = strtoll(array, &endptr, 3); in test1() 44 long long r = strtoll(array, &endptr, 35); in test2() 53 long long r = strtoll(array + 1, NULL, -1); in test3() 60 long long r = strtoll(array + 3, NULL, 1); in test4() 69 long long r = strtoll(array, NULL, 0); in test5() 77 long long r = strtoll(array, &endptr, 0); in test6() 85 long long r = strtoll(array + 2, NULL, 0); in test7()
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | str-int-3.ll | 11 declare i64 @strtoll(i8*, i8**, i32) 280 ; Fold strtoll(a[0].a, 0, 0) to 1. 282 %ia0a = call i64 @strtoll(i8* %pa0a, i8** null, i32 0) 286 ; Fold strtoll(a[0].b + 1, 0, 0, i8** null, i32 0) to 2. 288 %ia0bp1 = call i64 @strtoll(i8* %pa0bp1, i8** null, i32 0) 292 ; Fold strtoll(a[0].c + 3, 0, 0, i8** null, i32 0) to 89. 294 %ia0cp3 = call i64 @strtoll(i8* %pa0cp3, i8** null, i32 0) 298 ; Fold strtoll(a[1].a + 2, 0, 0, i8** null, i32 0) to 3. 300 %ia1ap2 = call i64 @strtoll(i8* %pa1ap2, i8** null, i32 0) 304 ; Fold strtoll(a[1].b + 3, 0, 0, i8** null, i32 0) to 4. [all …]
|
| H A D | strto-1.ll | 19 declare i64 @strtoll(i8* %s, i8** %endptr, i32 %base) 20 ; CHECK: declare i64 @strtoll(i8* readonly, i8** nocapture, i32) 58 call i64 @strtoll(i8* %x, i8** null, i32 10) 59 ; CHECK-NEXT: call i64 @strtoll(i8* nocapture %x, i8** null, i32 10)
|
| H A D | str-int-4.ll | 2 ; Verify that calls to strtol and strtoll are interpreted correctly even 8 declare i64 @strtoll(i8*, i8**, i32) 311 ; Exercise folding calls to the 64-bit strtoll. 330 %im123 = call i64 @strtoll(i8* %pwsm123, i8** @endptr, i32 10) 336 %ip234 = call i64 @strtoll(i8* %pwsp234, i8** @endptr, i32 10) 342 %min = call i64 @strtoll(i8* %psmin, i8** @endptr, i32 10) 348 %max = call i64 @strtoll(i8* %psmax, i8** @endptr, i32 10) 356 ; Exercise not folding calls to the 64-bit strtoll. 375 %minm1 = call i64 @strtoll(i8* %psminm1, i8** @endptr, i32 10) 387 %nws = call i64 @strtoll(i8* %psws, i8** @endptr, i32 10) [all …]
|
| H A D | str-int.ll | 17 declare i32 @strtoll(i8*, i8**, i32) 142 ; CHECK-NEXT: [[CALL:%.*]] = call i32 @strtoll(i8* nocapture getelementptr inbounds ([11 x i8], … 146 …%call = call i32 @strtoll(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i32 0, i32 0)…
|
| H A D | str-int-2.ll | 17 declare i64 @strtoll(i8*, i8**, i32) 140 …%call = call i64 @strtoll(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i32 0, i32 0)…
|
| H A D | disable-simplify-libcalls.ll | 37 declare i64 @strtoll(i8*, i8**, i32) 222 %ret = call i64 @strtoll(i8* %x, i8** %y, i32 10) 224 ; CHECK: call i64 @strtoll
|
| /llvm-project-15.0.7/compiler-rt/lib/memprof/ |
| H A D | memprof_interceptors.cpp | 311 INTERCEPTOR(long long, strtoll, const char *nptr, char **endptr, int base) { in INTERCEPTOR() argument 313 MEMPROF_INTERCEPTOR_ENTER(ctx, strtoll); in INTERCEPTOR() 316 long long result = REAL(strtoll)(nptr, &real_endptr, base); in INTERCEPTOR() 326 long long result = REAL(strtoll)(nptr, &real_endptr, 10); in INTERCEPTOR() 353 MEMPROF_INTERCEPT_FUNC(strtoll); in InitializeMemprofInterceptors()
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/ |
| H A D | asan_interceptors.cpp | 542 INTERCEPTOR(long long, strtoll, const char *nptr, char **endptr, int base) { in INTERCEPTOR() argument 544 ASAN_INTERCEPTOR_ENTER(ctx, strtoll); in INTERCEPTOR() 547 return REAL(strtoll)(nptr, endptr, base); in INTERCEPTOR() 550 long long result = REAL(strtoll)(nptr, &real_endptr, base); in INTERCEPTOR() 563 long long result = REAL(strtoll)(nptr, &real_endptr, 10); in INTERCEPTOR() 655 ASAN_INTERCEPT_FUNC(strtoll); in InitializeAsanInterceptors()
|
| /llvm-project-15.0.7/libc/src/stdlib/ |
| H A D | CMakeLists.txt | 92 strtoll 94 strtoll.cpp 96 strtoll.h
|
| H A D | strtoll.h | 14 long long strtoll(const char *__restrict str, char **__restrict str_end,
|
| H A D | strtoll.cpp | 15 LLVM_LIBC_FUNCTION(long long, strtoll,
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | libcalls-fno-builtin.c | 39 long long int strtoll(const char *nptr, char **endptr, int base); 137 long int t22(char **x) { return strtoll("1234", x, 10); } in t22()
|
| /llvm-project-15.0.7/libcxx/include/__support/musl/ |
| H A D | xlocale.h | 29 return ::strtoll(__nptr, __endptr, __base); in strtoll_l()
|
| /llvm-project-15.0.7/lldb/tools/debugserver/source/ |
| H A D | StringConvert.cpp | 19 int64_t uval = ::strtoll(s, &end, base); in ToSInt64()
|
| /llvm-project-15.0.7/libcxx/include/__support/xlocale/ |
| H A D | __strtonum_fallback.h | 39 return ::strtoll(__nptr, __endptr, __base); in strtoll_l()
|
| /llvm-project-15.0.7/libcxx/include/__support/solaris/ |
| H A D | xlocale.h | 37 return ::strtoll(__nptr, __endptr, __base); in strtoll_l()
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | cstdlib | 42 long long strtoll (const char* restrict nptr, char** restrict endptr, int base); // C99 106 using ::strtoll _LIBCPP_USING_IF_EXISTS;
|
| /llvm-project-15.0.7/libcxx/include/__support/ibm/ |
| H A D | xlocale.h | 61 return ::strtoll(__nptr, __endptr, __base); in strtoll_l()
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | charconv_test_helpers.h | 138 auto r = strtoll(p, &last, base); in fromchars_impl() 156 __int128_t r = strtoll(p, &last, base); in fromchars128_impl()
|
| /llvm-project-15.0.7/llvm/lib/TableGen/ |
| H A D | TGLexer.cpp | 473 CurIntVal = strtoll(NumStart, nullptr, 16); in LexNumber() 494 CurIntVal = strtoll(NumStart, nullptr, 2); in LexNumber() 509 CurIntVal = strtoll(TokStart, nullptr, 10); in LexNumber()
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cert/ |
| H A D | err33-c.rst | 111 * strtoll()
|
| /llvm-project-15.0.7/libc/config/linux/arm/ |
| H A D | entrypoints.txt | 74 libc.src.stdlib.strtoll
|