Skip to content

Commit da33ed9

Browse files
author
Wael Yehia
committed
more code review
1 parent 2596b2c commit da33ed9

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

clang/docs/UsersManual.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,11 +3045,11 @@ indexed format, regardeless whether it is produced by frontend or the IR pass.
30453045
30463046
$ clang++ -O2 -fprofile-generate -fprofile-continuous code.cc -o code
30473047
3048-
Running `./code` will collect the profile and write it to the
3049-
`default_xxxx.profraw` file. However, if `./code` abruptly terminates or does
3050-
not call `exit()`, in continuous mode the profile collected up to the point of
3051-
termination will be available in `default_xxxx.profraw` while in the
3052-
non-continuous mode, no profile file is generated.
3048+
Running ``./code`` will collect the profile and write it to the
3049+
``default_xxxx.profraw`` file. However, if ``./code`` abruptly terminates or
3050+
does not call ``exit()``, in continuous mode the profile collected up to the
3051+
point of termination will be available in ``default_xxxx.profraw`` while in
3052+
the non-continuous mode, no profile file is generated.
30533053

30543054
.. option:: -ftemporal-profile
30553055

clang/test/Driver/fprofile-continuous.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// 1) test on platforms that (do or do not) require runtime relocation
22
//
3-
// RUN: %clang -target x86_64-darwin -fprofile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=NO_RELOC
3+
// RUN: %clang --target=x86_64-darwin -fprofile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=NO_RELOC
44
// NO_RELOC: "-cc1" {{.*}} "-fprofile-continuous"
55
// NO_RELOC-NOT: "-mllvm" "-runtime-counter-relocation"
66

7-
// RUN: %clang -target powerpc64-ibm-aix -fprofile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=RELOC
8-
// RUN: %clang -target x86_64-unknown-fuchsia -fprofile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=RELOC
7+
// RUN: %clang --target=powerpc64-ibm-aix -fprofile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=RELOC
8+
// RUN: %clang --target=x86_64-unknown-fuchsia -fprofile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=RELOC
99
// RELOC: "-cc1" {{.*}} "-fprofile-continuous" "-mllvm" "-runtime-counter-relocation"
1010

1111
// 2) test -fprofile-continuous with cs-profile-generate and -fprofile-instr-generate
1212
//
13-
// RUN: %clang -target powerpc-ibm-aix -fprofile-instr-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=CLANG_PGO
14-
// RUN: %clang -target powerpc64le-unknown-linux -fprofile-instr-generate= -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=CLANG_PGO
13+
// RUN: %clang --target=powerpc-ibm-aix -fprofile-instr-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=CLANG_PGO
14+
// RUN: %clang --target=powerpc64le-unknown-linux -fprofile-instr-generate= -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=CLANG_PGO
1515
// CLANG_PGO: "-cc1" {{.*}} "-fprofile-continuous" "-mllvm" "-runtime-counter-relocation" "-fprofile-instrument-path=default.profraw"
1616

17-
// RUN: %clang -target x86_64-unknown-fuchsia -fcs-profile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=RELOC
17+
// RUN: %clang --target=x86_64-unknown-fuchsia -fcs-profile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=RELOC
1818

1919
// RUN: not %clang -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=ERROR
2020
// ERROR: error: invalid argument '-fprofile-continuous' only allowed with '-fprofile-generate, -fprofile-instr-generate, or -fcs-profile-generate'

0 commit comments

Comments
 (0)