rust/src/librustc_codegen_ssa
bors 47ea6d90b0 Auto merge of #74091 - richkadel:llvm-coverage-map-gen-4, r=tmandry
Generating the coverage map

@tmandry @wesleywiser

rustc now generates the coverage map and can support (limited)
coverage report generation, at the function level.

Example commands to generate a coverage report:
```shell
$ BUILD=$HOME/rust/build/x86_64-unknown-linux-gnu
$ $BUILD/stage1/bin/rustc -Zinstrument-coverage \
$HOME/rust/src/test/run-make-fulldeps/instrument-coverage/main.rs
$ LLVM_PROFILE_FILE="main.profraw" ./main
called
$ $BUILD/llvm/bin/llvm-profdata merge -sparse main.profraw -o main.profdata
$ $BUILD/llvm/bin/llvm-cov show --instr-profile=main.profdata main
```
![rust coverage report only 20200706](https://user-images.githubusercontent.com/3827298/86697299-1cbe8f80-bfc3-11ea-8955-451b48626991.png)

r? @wesleywiser

Rust compiler MCP rust-lang/compiler-team#278
Relevant issue: #34701 - Implement support for LLVMs code coverage instrumentation
2020-07-19 07:25:18 +00:00
..
back Auto merge of #74091 - richkadel:llvm-coverage-map-gen-4, r=tmandry 2020-07-19 07:25:18 +00:00
coverageinfo Generating the coverage map 2020-07-17 11:49:35 -07:00
debuginfo Modify type names on MSVC to make tuples .natvis compatible. 2020-06-24 19:28:12 -07:00
mir const_eval_resolve 2020-07-15 12:58:32 +02:00
traits Generating the coverage map 2020-07-17 11:49:35 -07:00
base.rs Avoid "whitelist" 2020-07-10 07:39:28 -04:00
build.rs rustbuild: include channel in sanitizers installed name 2020-02-11 09:40:58 +01:00
Cargo.toml fixes #67108 by using the external crate 2020-07-18 00:01:27 +02:00
common.rs Prepare for LLVM 11 2020-06-25 18:52:41 -07:00
glue.rs rustc -> rustc_middle part 2 2020-03-30 07:16:56 +02:00
lib.rs Use for<'tcx> fn pointers in Providers, instead of having Providers<'tcx>. 2020-07-05 23:00:14 +03:00
meth.rs rustc -> rustc_middle part 2 2020-03-30 07:16:56 +02:00
mono_item.rs Change SymbolName::name to a &str. 2020-07-15 14:37:55 +10:00
README.md fix rustc-dev-guide url in src/librustc_codegen_ssa 2020-04-10 22:48:34 +08:00

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.