Add docs to specify -fprofile-generate for IR PGO and -fprofile-instr-generate for code coverage.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/docs/UsersManual.rst | ||
---|---|---|
1878–1879 | This is not correct. As of today, -fprofile-use can be used with both -fprofile-generate and -fprofile-instr-generate. It does this by looking at the flag in the profile data. The better way to document: For profile guided optimizations, we recommend using IRPGO, aka using-fprofile-generate with -fprofile-use |
clang/docs/UsersManual.rst | ||
---|---|---|
2117–2118 | I like the original paragraph here. The casual reader doesn't need to know about the two flavors of instrumentation, that detail can be added at the end of this section. | |
2188 | This should be fprofile-use, correct? | |
2199–2200 | This is the right place to mention the fprofile-instr-generate / use flags. It's worth retaining the note that, although Clang and GCC use the same command line flags to enable PGO, the profile data format is not compatible. | |
2213 | This probably needs edits too, it's not the alternative. |
This is not correct. As of today, -fprofile-use can be used with both -fprofile-generate and -fprofile-instr-generate. It does this by looking at the flag in the profile data.
The better way to document:
For profile guided optimizations, we recommend using IRPGO, aka using-fprofile-generate with -fprofile-use