rust/compiler/rustc_session/src
Michael Benfield a17193dbb9 Enable AutoFDO.
This largely involves implementing the options debug-info-for-profiling
and profile-sample-use and forwarding them on to LLVM.

AutoFDO can be used on x86-64 Linux like this:
rustc -O -Cdebug-info-for-profiling main.rs -o main
perf record -b ./main
create_llvm_prof --binary=main --out=code.prof
rustc -O -Cprofile-sample-use=code.prof main.rs -o main2

Now `main2` will have feedback directed optimization applied to it.

The create_llvm_prof tool can be obtained from this github repository:
https://github.com/google/autofdo

Fixes #64892.
2021-10-06 19:36:52 +00:00
..
cgu_reuse_tracker.rs Make Diagnostic::span_fatal unconditionally raise an error 2021-05-08 23:12:04 -04:00
code_stats.rs
config.rs Enable AutoFDO. 2021-10-06 19:36:52 +00:00
cstore.rs Add some inlining. 2021-10-03 16:08:57 +02:00
filesearch.rs Move get_tools_search_paths from FileSearch to Session 2021-09-08 18:25:47 +02:00
lib.rs Move ICH to rustc_query_system. 2021-10-03 16:08:53 +02:00
options.rs Enable AutoFDO. 2021-10-06 19:36:52 +00:00
output.rs Use command line metadata path if provided 2021-05-28 22:24:24 -07:00
parse.rs Use multispan suggestions more often 2021-07-30 09:26:31 -07:00
search_paths.rs Doc comments 2021-09-08 18:25:46 +02:00
session.rs Enable AutoFDO. 2021-10-06 19:36:52 +00:00
utils.rs Implement RFC 2951: Native link modifiers 2021-05-05 16:04:25 -07:00