| /llvm-project-15.0.7/polly/lib/External/isl/imath/ |
| H A D | imdrover.h | 51 bool test_set(testspec_t* t, FILE* ofp); 52 bool test_neg(testspec_t* t, FILE* ofp); 53 bool test_abs(testspec_t* t, FILE* ofp); 54 bool test_add(testspec_t* t, FILE* ofp); 55 bool test_sub(testspec_t* t, FILE* ofp); 56 bool test_mul(testspec_t* t, FILE* ofp); 59 bool test_sqr(testspec_t* t, FILE* ofp); 60 bool test_div(testspec_t* t, FILE* ofp); 66 bool test_mod(testspec_t* t, FILE* ofp); 67 bool test_gcd(testspec_t* t, FILE* ofp); [all …]
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | stream.c | 6 FILE *fp = tmpfile(); in check_fread() 12 FILE *fp = tmpfile(); in check_fwrite() 18 FILE *fp = tmpfile(); in check_fseek() 24 FILE *fp = tmpfile(); in check_ftell() 30 FILE *fp = tmpfile(); in check_rewind() 36 FILE *fp = tmpfile(); in check_fgetpos() 43 FILE *fp = tmpfile(); in check_fsetpos() 50 FILE *fp = tmpfile(); in check_clearerr() 56 FILE *fp = tmpfile(); in check_feof() 62 FILE *fp = tmpfile(); in check_ferror() [all …]
|
| H A D | simple-stream-checks.c | 6 FILE *F = fopen("myfile.txt", "w"); in checkDoubleFClose() 18 FILE *F = fopen("myfile.txt", "w"); in checkLeak() 30 FILE *F = fopen("myfile.txt", "w"); in checkLeakFollowedByAssert() 40 FILE *F = fopen("myfile.txt", "w"); in CloseOnlyOnValidFileHandle() 47 FILE *F = fopen("myfile.txt", "w"); in leakOnEnfOfPath1() 51 FILE *F = fopen("myfile.txt", "w"); in leakOnEnfOfPath2() 55 FILE *leakOnEnfOfPath3(int *Data) { in leakOnEnfOfPath3() 56 FILE *F = fopen("myfile.txt", "w"); in leakOnEnfOfPath3() 60 void myfclose(FILE *F); 62 FILE *F = fopen("myfile.txt", "w"); in SymbolEscapedThroughFunctionCall() [all …]
|
| H A D | stream-error.c | 15 FILE *F = fopen("file", "r"); in error_fopen() 24 FILE *F = fopen("file", "r"); in error_freopen() 36 FILE *F = fopen("file", "r"); in stream_error_feof() 49 FILE *F = fopen("file", "r"); in stream_error_ferror() 62 FILE *F = tmpfile(); in error_fread() 87 FILE *F = tmpfile(); in error_fwrite() 118 FILE *F = fopen("file", "r"); in error_fread_fwrite_zerosize() 140 FILE *F = fopen("file", "r"); in error_fseek() 171 FILE *F = fopen("file", "r+"); in error_indeterminate() 189 FILE *F = fopen("file", "r+"); in error_indeterminate_clearerr() [all …]
|
| H A D | stream-note.c | 6 FILE *F1 = tmpfile(); // expected-note {{Stream opened here}} in check_note_at_correct_open() 11 FILE *F2 = tmpfile(); in check_note_at_correct_open() 26 FILE *F = fopen("file", "r"); // expected-note {{Stream opened here}} in check_note_fopen() 36 FILE *F = fopen("file", "r"); // expected-note {{Stream opened here}} in check_note_freopen() 51 FILE *F1 = fopen("foo1.c", "r"); // expected-note {{Stream opened here}} in check_note_leak_2() 58 FILE *F2 = fopen("foo2.c", "r"); // expected-note {{Stream opened here}} in check_note_leak_2() 82 FILE *F; in check_track_null() 93 FILE *F; in check_eof_notes_feof_after_feof() 112 FILE *F; in check_eof_notes_feof_after_no_feof() 135 FILE *F; in check_eof_notes_feof_or_no_error()
|
| H A D | std-c-library-functions.c | 68 typedef struct FILE FILE; typedef 71 int getc(FILE *); 72 void test_getc(FILE *fp) { in test_getc() 80 int fgetc(FILE *); 81 void test_fgets(FILE *fp) { in test_fgets() 109 size_t fread(void *restrict, size_t, size_t, FILE *restrict); 110 size_t fwrite(const void *restrict, size_t, size_t, FILE *restrict); 111 void test_fread_fwrite(FILE *fp, int *buf) { in test_fread_fwrite() 127 FILE *fp; in test_fread_uninitialized() 131 ssize_t getline(char **restrict, size_t *restrict, FILE *restrict); [all …]
|
| H A D | std-c-library-functions-arg-weakdeps.c | 41 struct FILE; 42 typedef struct FILE FILE; typedef 45 size_t fread(void *restrict, size_t, size_t, FILE *restrict) __attribute__((nonnull(1))); 46 int fileno(FILE *stream); 55 void test_notnull_arg(FILE *F) { in test_notnull_arg()
|
| /llvm-project-15.0.7/clang/test/Analysis/Inputs/ |
| H A D | system-header-simulator.h | 17 typedef struct _FILE FILE; typedef 22 extern FILE *stdin; 23 extern FILE *stdout; 24 extern FILE *stderr; 26 extern FILE *__stdinp; 27 extern FILE *__stdoutp; 28 extern FILE *__stderrp; 46 FILE *tmpfile(void); 47 FILE *freopen(const char *pathname, const char *mode, FILE *stream); 48 int fclose(FILE *fp); [all …]
|
| H A D | system-header-simulator-for-simple-stream.h | 10 } FILE; typedef 11 FILE *fopen(const char * restrict, const char * restrict) __asm("_" "fopen" ); 12 int fputc(int, FILE *); 13 int fputs(const char * restrict, FILE * restrict) __asm("_" "fputs" ); 14 int fclose(FILE *); 19 FILE * p;
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-strings/ |
| H A D | radix-filename.test | 23 CHECK-NONE: [[FILE]]: three 24 CHECK-NONE: [[FILE]]: four 25 CHECK-NONE: [[FILE]]: five 26 CHECK-NONE: [[FILE]]: seven 27 CHECK-NONE: [[FILE]]: eight 28 CHECK-NONE: [[FILE]]: nine 31 CHECK-DEC: [[FILE]]: 14 four 32 CHECK-DEC: [[FILE]]: 19 five 35 CHECK-DEC: [[FILE]]: 40 nine 38 CHECK-OCT: [[FILE]]: 16 four [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | fprintf-1.ll | 8 %FILE = type { } 16 declare i32 @fprintf(%FILE*, i8*, ...) 20 define void @test_simplify1(%FILE* %fp) { 23 call i32 (%FILE*, i8*, ...) @fprintf(%FILE* %fp, i8* %fmt) 34 call i32 (%FILE*, i8*, ...) @fprintf(%FILE* %fp, i8* %fmt, i8 104) 47 call i32 (%FILE*, i8*, ...) @fprintf(%FILE* %fp, i8* %fmt, i8* %str) 58 call i32 (%FILE*, i8*, ...) @fprintf(%FILE* %fp, i8* %fmt, i32 187) 67 call i32 (%FILE*, i8*, ...) @fprintf(%FILE* %fp, i8* %fmt) [ "deopt"() ] 76 call i32 (%FILE*, i8*, ...) @fprintf(%FILE* %fp, i8* %fmt, double 1.87) 85 call i32 (%FILE*, i8*, ...) @fprintf(%FILE* %fp, i8* %fmt, double %d) [all …]
|
| H A D | fwrite-1.ll | 7 %FILE = type { } 12 declare i64 @fwrite(i8*, i64, i64, %FILE *) 16 define void @test_simplify1(%FILE* %fp) { 19 call i64 @fwrite(i8* %str, i64 1, i64 1, %FILE* %fp) 20 ; CHECK-NEXT: call i32 @fputc(i32 0, %FILE* %fp) 25 define void @test_simplify2(%FILE* %fp) { 28 call i64 @fwrite(i8* %str, i64 1, i64 0, %FILE* %fp) 33 define void @test_simplify3(%FILE* %fp) { 36 call i64 @fwrite(i8* %str, i64 0, i64 1, %FILE* %fp) 41 define i64 @test_no_simplify1(%FILE* %fp) { [all …]
|
| H A D | fputs-1.ll | 7 %FILE = type { } 13 declare i32 @fputs(i8*, %FILE*) 17 define void @test_simplify1(%FILE* %fp) { 20 call i32 @fputs(i8* %str, %FILE* %fp) 27 define void @test_simplify2(%FILE* %fp) { 30 call i32 @fputs(i8* %str, %FILE* %fp) 31 ; CHECK-NEXT: call i32 @fputc(i32 65, %FILE* %fp) 36 define void @test_simplify3(%FILE* %fp) { 39 call i32 @fputs(i8* %str, %FILE* %fp) 40 …te(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @hello, i32 0, i32 0), i32 6, i32 1, %FILE* %fp)
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/ |
| H A D | owning-memory-legacy-functions.cpp | 14 using FILE = int; typedef 22 FILE *tmpfile(void); 24 FILE *freopen(const char *filename, const char *mode, FILE *stream); 25 void fclose(FILE *Resource); 29 using ::FILE; 45 void nonOwningCall(FILE *Resource) {} in nonOwningCall() 109 FILE *File4; in test_resource_creators() 113 gsl::owner<FILE *> File5; in test_resource_creators() 118 gsl::owner<FILE *> File6 = File1; in test_resource_creators() 121 FILE *File7 = tmpfile(); in test_resource_creators() [all …]
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | cstdio | 40 FILE 46 FILE* tmpfile(void); 48 int fclose(FILE* stream); 49 int fflush(FILE* stream); 70 int fgetc(FILE* stream); 74 int getc(FILE* stream); 88 long ftell(FILE* stream); 89 void rewind(FILE* stream); 90 void clearerr(FILE* stream); 91 int feof(FILE* stream); [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/builtins/Unit/ |
| H A D | test | 24 for FILE in $(ls *.c); do 30 if test $FILE = gcc_personality_test.c 36 if test $FILE = trampoline_setup_test.c 43 … if gcc $CFLAGS $FILE ../../darwin_fat/Release/libcompiler_rt.a $LIBS $EXTRA -o ./remote/$FILE.exe 45 echo "Built $FILE.exe for $ARCH" 47 echo "$FILE failed to compile" 50 if gcc $CFLAGS $FILE ../../darwin_fat/Release/libcompiler_rt.a $LIBS $EXTRA 52 echo "Testing $FILE for $ARCH" 61 echo "$FILE failed to compile"
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/misc/ |
| H A D | non-copyable-objects.c | 3 typedef struct FILE {} FILE; typedef 8 void g(FILE f); 17 FILE f; 20 void func(FILE *f) { in func() 22 FILE f1; // match in func() 25 FILE f2 = *f; in func() 27 struct FILE f3; in func() 30 (void)sizeof(FILE); in func()
|
| H A D | non-copyable-objects.cpp | 4 typedef struct FILE {} FILE; typedef 9 void g(std::FILE f); 13 ::FILE f; 16 void func(FILE *f) { in func() 18 std::FILE f1; // match in func() 21 ::FILE f2 = *f; // match, match in func() 23 struct FILE f3; // match in func()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | file-directive.ll | 2 …6_64-linux-gnu -filetype=obj < %s | llvm-readobj --symbols - | FileCheck %s --check-prefix=STT-FILE 5 ; STT-FILE: Name: foobar 6 ; STT-FILE-NEXT: Value: 0x0 7 ; STT-FILE-NEXT: Size: 0 8 ; STT-FILE-NEXT: Binding: Local 9 ; STT-FILE-NEXT: Type: File 10 ; STT-FILE-NEXT: Other: 0 11 ; STT-FILE-NEXT: Section: Absolute
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-symbolizer/ |
| H A D | file-prefix.test | 1 # The FILE prefix acts as a no-op, but it provides consistency with BUILDID. 2 RUN: llvm-symbolizer "CODE FILE:%p/Inputs/addr.exe 0x40054d" | \ 6 # Passing FILE twice is a syntax error. 7 RUN: llvm-symbolizer "CODE FILE:FILE:%p/Inputs/addr.exe 0x40054d" | \ 9 FILEFILE: CODE FILE:FILE:{{.*}}/Inputs/addr.exe 0x40054d
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Thumb/ |
| H A D | 2009-08-20-ISelBug.ll | 4 %struct.FILE = type { i8*, i32, i32, i16, i16, %struct.__sbuf, i32, i8*, i32 (i8*)*, i32 (i8*, i8*,… 7 …i32, i32, i32, %struct.file_string_t*, i64, i64, i64, i64, i64, i64, i32, %struct.FILE*, i8*, i8* } 21 …ptr inbounds %struct.asl_file_t, %struct.asl_file_t* %s, i32 0, i32 11 ; <%struct.FILE**> [#uses=2] 22 %2 = load %struct.FILE*, %struct.FILE** %1, align 4 ; <%struct.FILE*> [#uses=2] 23 %3 = icmp eq %struct.FILE* %2, null ; <i1> [#uses=1] 35 %9 = call i32 @fseeko(%struct.FILE* %2, i64 %off, i32 0) nounwind ; <i32> [#uses=1] 41 %11 = load %struct.FILE*, %struct.FILE** %1, align 4 ; <%struct.FILE*> [#uses=1] 43 …%12 = call i32 @fread(i8* noalias %val8, i32 8, i32 1, %struct.FILE* noalias %11) nounwind ; <i32… 62 declare i32 @fseeko(%struct.FILE* nocapture, i64, i32) nounwind 64 declare i32 @fread(i8* noalias nocapture, i32, i32, %struct.FILE* noalias nocapture) nounwind
|
| /llvm-project-15.0.7/llvm/utils/ |
| H A D | UpdateCMakeLists.pl | 87 open(FILE, $cmakeList) or 89 binmode FILE; 90 my $digestA = Digest::MD5->new->addfile(*FILE)->hexdigest; 91 close(FILE); 93 open(FILE, $cmakeListNew) or 95 binmode FILE; 96 my $digestB = Digest::MD5->new->addfile(*FILE)->hexdigest; 97 close(FILE);
|
| /llvm-project-15.0.7/libclc/ |
| H A D | check_external_calls.sh | 3 FILE=$1 4 if [ ! -f $FILE ]; then 5 echo "ERROR: Not a file: $FILE" 26 $DIS < $FILE | grep ' call ' | grep -v '@llvm' > "$TMP_FILE" 30 echo "ERROR: $COUNT unresolved calls detected in $FILE" 34 echo "File $FILE is OK"
|
| /llvm-project-15.0.7/compiler-rt/test/builtins/timing/ |
| H A D | time | 18 echo "$FILE failed to compile" 25 for FILE in $(ls *.c); do 27 echo "Timing $FILE for $ARCH" 29 test $ARCH $FILE libgcc "" 30 test $ARCH $FILE tuned ../../darwin_fat/Release/libcompiler_rt.a 32 test $ARCH $FILE installed $INSTALLED
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-tli-checker/ |
| H A D | error-cases.test | 6 # RUN: llvm-tli-checker %t0.txt 2>&1 | FileCheck %s -DFILE=%t0.txt --check-prefixes=FILE-NOT-FOUND,… 10 # RUN: llvm-tli-checker %t1.o 2>&1 | FileCheck %s --check-prefixes=INVALID-FILE,NOSYMBOLS-AT-ALL 14 # RUN: llvm-tli-checker %t2.o 2>&1 | FileCheck %s -DFILE=%t2.o --check-prefixes=NOSYMBOLS-IN-FILE,N… 17 # FILE-NOT-FOUND-DAG: warning: [[FILE]]: not found 18 # INVALID-FILE-DAG: warning: The file was not recognized as a valid object file 20 # NOSYMBOLS-IN-FILE-DAG: warning: [[FILE]]: no symbols found
|