Home
last modified time | relevance | path

Searched refs:fwrite (Results 1 – 25 of 79) sorted by relevance

1234

/llvm-project-15.0.7/lldb/test/API/macosx/corefile-default-ptrauth/
H A Dcreate-corefile.c113 fwrite(&mh, sizeof (mh), 1, out); in main()
130 fwrite (&seg, sizeof (seg), 1, out); in main()
133 fwrite (&cmd, sizeof (cmd), 1, out); in main()
135 fwrite (&cmdsize, sizeof (cmdsize), 1, out); in main()
137 fwrite (&flavor, sizeof (flavor), 1, out); in main()
140 fwrite (&count, sizeof (count), 1, out); in main()
143 fwrite (&regstate, sizeof (regstate), 1, out); in main()
162 fwrite (&lcnote, sizeof(lcnote), 1, out); in main()
177 fwrite (&uuid, sizeof (uuid), 1, out); in main()
181 fwrite (&slide, sizeof (slide), 1, out); in main()
[all …]
/llvm-project-15.0.7/clang/test/Analysis/
H A Dstream-error.c91 int Ret = fwrite(Buf, 1, 10, F); in error_fwrite()
104 fwrite(0, 1, 0, F); in freadwrite_zerosize()
105 fwrite(0, 0, 1, F); in freadwrite_zerosize()
111 fwrite(0, 1, 0, F); in freadwrite_zerosize_eofstate()
112 fwrite(0, 0, 1, F); in freadwrite_zerosize_eofstate()
178 fwrite(Buf, 1, 10, F); // no warning in error_indeterminate()
180 fwrite(Buf, 1, 10, F); // expected-warning {{might be 'indeterminate'}} in error_indeterminate()
182 fwrite(Buf, 1, 10, F); // expected-warning {{might be 'indeterminate'}} in error_indeterminate()
197 fwrite(Buf, 1, 10, F); // no warning in error_indeterminate_clearerr()
217 fwrite("1", 1, 1, F); // no warning in error_indeterminate_feof1()
[all …]
H A Dstream.c13 fwrite(0, 0, 0, fp); // expected-warning {{Stream pointer might be NULL}} in check_fwrite()
204 fwrite("1", 1, 1, F); // may fail in check_escape1()
206 fwrite("1", 1, 1, F); // no warning in check_escape1()
213 fwrite("1", 1, 1, F); // may fail in check_escape2()
215 fwrite("1", 1, 1, F); // no warning in check_escape2()
226 fwrite("1", 1, 1, F); // may fail in check_escape3()
227 fwrite("1", 1, 1, F); // no warning in check_escape3()
234 fwrite("1", 1, 1, F); // may fail in check_escape4()
240 fwrite("1", 1, 1, F); // expected-warning {{might be 'indeterminate'}} in check_escape4()
H A Dstd-c-library-functions.c110 size_t fwrite(const void *restrict, size_t, size_t, FILE *restrict);
113 size_t x = fwrite(buf, sizeof(int), 10, fp); in test_fread_fwrite()
119 size_t z = fwrite(buf, sizeof(int), y, fp); in test_fread_fwrite()
H A Dstd-c-library-functions-vs-stream-checker.c43 size_t x = fwrite(buf, sizeof(int), 10, fp); in test_fread_fwrite()
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dfwrite-1.ll1 ; Test that the fwrite library call simplifier works correctly.
12 declare i64 @fwrite(i8*, i64, i64, %FILE *)
14 ; Check fwrite(S, 1, 1, fp) -> fputc(S[0], fp).
19 call i64 @fwrite(i8* %str, i64 1, i64 1, %FILE* %fp)
28 call i64 @fwrite(i8* %str, i64 1, i64 0, %FILE* %fp)
36 call i64 @fwrite(i8* %str, i64 0, i64 1, %FILE* %fp)
44 %ret = call i64 @fwrite(i8* %str, i64 1, i64 1, %FILE* %fp)
45 ; CHECK-NEXT: call i64 @fwrite
53 call i64 @fwrite(i8* %str, i64 %size, i64 1, %FILE* %fp)
54 ; CHECK-NEXT: call i64 @fwrite
H A Derr-rep-cold.ll42 …%1 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str1, i64 0, i64 0), …
45 ; CHECK: tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str1, i64 0, i64 0…
52 declare i64 @fwrite(i8* nocapture, i64, i64, %struct._IO_FILE* nocapture) #1
62 …%1 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str1, i64 0, i64 0), …
65 ; CHECK-NOT: tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str1, i64 0, i…
H A Dfputs-1.ll15 ; Check fputs(str, fp) --> fwrite(str, strlen(s), 1, fp).
25 ; NOTE: The fwrite simplifier simplifies this further to fputc.
40 ; CHECK-NEXT: call i32 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @hello, i32 0, i32 0…
H A Dfputs-opt-size.ll1 ; When optimising for size, we don't want to rewrite fputs to fwrite
19 ; CHECK-NOT: call i64 @fwrite
36 ; PGSO-NOT: call i64 @fwrite
39 ; NPGSO: call i64 @fwrite
H A Dosx-names.ll3 ; On OSX x86-32, fwrite and fputs aren't called fwrite and fputs.
18 ; CHECK: call i32 @"fwrite$UNIX2003"
H A Dfprintf-1.ll18 ; Check fprintf(fp, "foo") -> fwrite("foo", 3, 1, fp).
24 ; CHECK-NEXT: call i32 @fwrite(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @hello_world, i32 …
41 ; NOTE: The fputs simplifier simplifies this further to fwrite.
48 ; CHECK-NEXT: call i32 @fwrite(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @hello_world, i32 …
68 ; CHECK-NEXT: call i32 @fwrite(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @hello_world, i32 …
H A Dpr39177.ll12 @fwrite = alias i64 (i8*, i64, i64, %struct._IO_FILE*), i64 (i8*, i64, i64, %struct._IO_FILE*)* @__…
33 ; CHECK-NOT: call i64 @fwrite(
/llvm-project-15.0.7/llvm/test/ThinLTO/X86/
H A Dtli-nobuiltin.ll4 ; Regular run: expects fprintf to be turned into fwrite
7 ; LTO: fwrite
9 ; Freestanding run: expects fprintf to NOT be turned into fwrite
17 ; Regular run: expects fprintf to be turned into fwrite
20 ; ThinLTO: fwrite
22 ; Freestanding run: expects fprintf to NOT be turned into fwrite
38 ; Check fprintf(fp, "%s", str) -> fwrite(str, fp) only when builtins are enabled
/llvm-project-15.0.7/clang/test/CodeGen/
H A D2006-09-18-fwrite-cast-crash.c5 unsigned fwrite(signed char *, unsigned , unsigned , signed char *);
11 struct l_struct_2E_FILE *))(void*)fwrite)((&(str301[0u])), 38u, 1u, ltmp_6202_16); in Usage()
H A Dlibcalls-fno-builtin.c43 size_t fwrite(const void *ptr, size_t size, size_t nmemb,
150 size_t x = fwrite(buf, sizeof(int), 10, fp); in t25()
/llvm-project-15.0.7/libc/test/src/stdio/
H A Dfileop_test.cpp29 __llvm_libc::fwrite(CONTENT, 1, sizeof(CONTENT) - 1, file)); in TEST()
64 ASSERT_EQ(size_t(0), __llvm_libc::fwrite(CONTENT, 1, sizeof(CONTENT), file)); in TEST()
81 __llvm_libc::fwrite(CONTENT, 1, sizeof(CONTENT), file)); in TEST()
H A Dfopencookie_test.cpp115 ASSERT_EQ(size_t(0), __llvm_libc::fwrite(CONTENT, 1, sizeof(CONTENT), f)); in TEST()
140 __llvm_libc::fwrite(WRITE_DATA, 1, sizeof(WRITE_DATA), f)); in TEST()
185 ASSERT_EQ(__llvm_libc::fwrite(WRITE_DATA, 1, sizeof(WRITE_DATA), f), in TEST()
217 __llvm_libc::fwrite(WRITE_DATA, 1, sizeof(WRITE_DATA), f)); in TEST()
237 __llvm_libc::fwrite(WRITE_DATA, 1, sizeof(WRITE_DATA), f)); in TEST()
H A DCMakeLists.txt20 libc.src.stdio.fwrite
61 libc.src.stdio.fwrite
/llvm-project-15.0.7/llvm/test/LTO/X86/
H A Dtli-nobuiltin.ll4 ; Regular run: expects fprintf to be turned into fwrite
7 ; LTO: fwrite
9 ; Freestanding run: expects fprintf to NOT be turned into fwrite
41 ; Check fprintf(fp, "%s", str) -> fwrite(str, fp) only when builtins are enabled
/llvm-project-15.0.7/compiler-rt/test/msan/Linux/
H A Dfopencookie.cpp57 fwrite(buf, 50, 1, f); in main()
63 fwrite(buf, 50, 1, f); in main()
/llvm-project-15.0.7/libcxx/include/
H A D__std_stream271 if (fwrite(&__1buf, sizeof(char_type), 1, __file_) != 1)
291 if (fwrite(pbase, 1, 1, __file_) != 1)
297 if (fwrite(__extbuf, 1, __nmemb, __file_) != __nmemb)
317 return fwrite(__s, sizeof(char_type), __n, __file_);
338 if (fwrite(__extbuf, 1, __nmemb, __file_) != __nmemb)
/llvm-project-15.0.7/libc/src/stdio/
H A DCMakeLists.txt172 fwrite
174 fwrite.cpp
176 fwrite.h
H A Dfwrite.h16 size_t fwrite(const void *__restrict ptr, size_t size, size_t nmemb,
H A Dfwrite.cpp16 LLVM_LIBC_FUNCTION(size_t, fwrite,
/llvm-project-15.0.7/lldb/test/API/macosx/lc-note/kern-ver-str/
H A Dcreate-empty-corefile.cpp305 fwrite (&mh, sizeof (struct mach_header_64), 1, f); in main()
308 fwrite (lc.data(), lc.size(), 1, f); in main()
312 fwrite (payload.data(), payload.size(), 1, f); in main()

1234