File tree Expand file tree Collapse file tree 7 files changed +16
-16
lines changed
compiler-rt/test/profile/ContinuousSyncMode Expand file tree Collapse file tree 7 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 1
1
// REQUIRES: continuous-mode
2
2
3
- // RUN: %clang_profgen_cont -fcoverage-mapping -o %t.exe %s
3
+ // RUN: %clang_profgen=%t.profraw -fprofile-continuous -fcoverage-mapping -o %t.exe %s
4
4
// RUN: echo "garbage" > %t.profraw
5
- // RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe
5
+ // RUN: %run %t.exe
6
6
// RUN: llvm-profdata show --counts --all-functions %t.profraw | FileCheck %s -check-prefix=CHECK-COUNTS
7
7
// RUN: llvm-profdata merge -o %t.profdata %t.profraw
8
8
//
Original file line number Diff line number Diff line change 1
1
// REQUIRES: continuous-mode
2
2
3
- // RUN: %clang_pgogen_cont -o %t.exe %s
3
+ // RUN: %clang_pgogen -fprofile-continuous -o %t.exe %s
4
4
// RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe %t.profraw
5
5
// RUN: env LLVM_PROFILE_FILE="%t%c.profraw" %run %t.exe %t.profraw
6
6
// RUN: env LLVM_PROFILE_FILE="%t.profraw%c" %run %t.exe %t.profraw
Original file line number Diff line number Diff line change 1
1
// REQUIRES: continuous-mode
2
2
3
- // RUN: %clang_profgen_cont -fcoverage-mapping -fcoverage-mcdc -O3 -o %t.exe %s
4
- // RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe 3 3
3
+ // RUN: %clang_profgen=%t.profraw -fprofile-continuous -fcoverage-mapping -fcoverage-mcdc -O3 -o %t.exe %s
4
+ // RUN: %run %t.exe 3 3
5
5
// RUN: llvm-profdata show --text --all-functions %t.profraw | FileCheck %s
6
6
7
7
// CHECK: Num Bitmap Bytes:
Original file line number Diff line number Diff line change 1
1
// REQUIRES: target={{.*(darwin|aix).*}}
2
2
3
3
// RUN: echo "static void dead_code(void) {}" > %t.dso.c
4
- // RUN: %clang_profgen_cont -fcoverage-mapping -O3 %shared_lib_flag -o %t.dso.dylib %t.dso.c
5
- // RUN: %clang_profgen_cont -fcoverage-mapping -O3 -o %t.exe %s %t.dso.dylib
6
- // RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe 2>&1 | count 0
4
+ // RUN: %clang_profgen=%t.profraw -fprofile-continuous -fcoverage-mapping -O3 %shared_lib_flag -o %t.dso.dylib %t.dso.c
5
+ // RUN: %clang_profgen=%t.profraw -fprofile-continuous -fcoverage-mapping -O3 -o %t.exe %s %t.dso.dylib
6
+ // RUN: %run %t.exe 2>&1 | count 0
7
7
// RUN: llvm-profdata show --counts --all-functions %t.profraw | FileCheck %s
8
8
9
9
// CHECK: Total functions: 1
Original file line number Diff line number Diff line change 1
1
// REQUIRES: continuous-mode
2
2
3
- // RUN: rm -f %t.profraw
4
- // RUN: %clangxx_pgogen_cont -lpthread %s -o %t.exe -mllvm -disable-vp -fprofile-update=atomic
5
- // RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe
6
- // RUN: llvm-profdata show --counts --function=accum %t.profraw | FileCheck %s
3
+ // RUN: rm -rf %t.dir
4
+ // RUN: %clangxx_pgogen=%t.dir -fprofile-continuous -lpthread %s -o %t.exe -mllvm -disable-vp -fprofile-update=atomic
5
+ // RUN: %run %t.exe
6
+ // RUN: llvm-profdata show --counts --function=accum %t.dir/default_*. profraw | FileCheck %s
7
7
// CHECK: Block counts: [100000, 4]
8
8
9
9
#include < thread>
Original file line number Diff line number Diff line change 9
9
// Create two DSOs and a driver program that uses them.
10
10
// RUN: echo "void dso1(void) {}" > dso1.c
11
11
// RUN: echo "void dso2(void) {}" > dso2.c
12
- // RUN: %clang_pgogen_cont %shared_lib_flag -o %t.dir/dso1.dylib dso1.c -fprofile-update=atomic
13
- // RUN: %clang_pgogen_cont %shared_lib_flag -o %t.dir/dso2.dylib dso2.c -fprofile-update=atomic
14
- // RUN: %clang_pgogen_cont -o main.exe %s %t.dir/dso1.dylib %t.dir/dso2.dylib -fprofile-update=atomic
12
+ // RUN: %clang_pgogen -fprofile-continuous %shared_lib_flag -o %t.dir/dso1.dylib dso1.c -fprofile-update=atomic
13
+ // RUN: %clang_pgogen -fprofile-continuous %shared_lib_flag -o %t.dir/dso2.dylib dso2.c -fprofile-update=atomic
14
+ // RUN: %clang_pgogen -fprofile-continuous -o main.exe %s %t.dir/dso1.dylib %t.dir/dso2.dylib -fprofile-update=atomic
15
15
//
16
16
// === Round 1 ===
17
17
// Test merging+continuous mode without any file contention.
Original file line number Diff line number Diff line change 1
1
// REQUIRES: continuous-mode
2
2
3
- // RUN: %clang_pgogen_cont -o %t.exe %s
3
+ // RUN: %clang_pgogen -fprofile-continuous -o %t.exe %s
4
4
// RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe %t.profraw %t.bad
5
5
6
6
#include <string.h>
You can’t perform that action at this time.
0 commit comments