[clang] Fix documentation on PGO/coverage related options. (PR #73845)
Petr Hosek via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 30 13:38:10 PST 2023
================
@@ -4401,13 +4413,18 @@ Execute ``clang-cl /?`` to see a list of supported options:
Instrument only functions from files where names don't match all the regexes separated by a semi-colon
-fprofile-filter-files=<value>
Instrument only functions from files where names match any regex separated by a semi-colon
+ -fprofile-generate[=<dirname>]
+ Generate instrumented code to collect execution counts into a raw profile file in <dirname>
+ (overridden by LLVM_PROFILE_FILE env var)
-fprofile-instr-generate=<file>
Generate instrumented code to collect execution counts into <file>
(overridden by LLVM_PROFILE_FILE env var)
-fprofile-instr-generate
Generate instrumented code to collect execution counts into default.profraw file
(overridden by '=' form of option or LLVM_PROFILE_FILE env var)
-fprofile-instr-use=<value>
+ Use instrumentation data for coverage testing or profile-guided optimization
+ -fprofile--use=<value>
----------------
petrhosek wrote:
This a nit, but there should be only a single `-`, so `-fprofile-use` not `-fprofile--use`.
https://github.com/llvm/llvm-project/pull/73845
More information about the cfe-commits
mailing list