rust/compiler/rustc_codegen_ssa/src/traits
Tomasz Miąsko 5a09e12135 Initialize LLVM time trace profiler on each code generation thread
In https://reviews.llvm.org/D71059 LLVM 11, the time trace profiler was
extended to support multiple threads.

`timeTraceProfilerInitialize` creates a thread local profiler instance.
When a thread finishes `timeTraceProfilerFinishThread` moves a thread
local instance into a global collection of instances. Finally when all
codegen work is complete `timeTraceProfilerWrite` writes data from the
current thread local instance and the instances in global collection
of instances.

Previously, the profiler was intialized on a single thread only. Since
this thread performs no code generation on its own, the resulting
profile was empty.

Update LLVM codegen to initialize & finish time trace profiler on each
code generation thread.
2021-11-05 17:47:11 +01:00
..
abi.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
asm.rs Properly check target_features not to trigger an assertion 2021-10-26 11:02:51 +09:00
backend.rs Initialize LLVM time trace profiler on each code generation thread 2021-11-05 17:47:11 +01:00
builder.rs Add LLVM CFI support to the Rust compiler 2021-10-25 16:23:01 -07:00
consts.rs Make abi::Abi Copy and remove a *lot* of refs 2021-09-09 10:41:19 +02:00
coverageinfo.rs Changes from review comments 2021-03-23 17:02:10 -07:00
debuginfo.rs Create more accurate debuginfo for vtables. 2021-10-08 10:33:47 +02:00
declare.rs Remove DeclareMethods 2020-09-18 13:11:59 +02:00
intrinsic.rs Add LLVM CFI support to the Rust compiler 2021-10-25 16:23:01 -07:00
misc.rs Always use llvm.used for coverage symbols 2021-08-21 10:08:05 +02:00
mod.rs Add support for const operands and options to global_asm! 2021-05-13 22:31:57 +01:00
statics.rs Always use llvm.used for coverage symbols 2021-08-21 10:08:05 +02:00
type_.rs Prepare call/invoke for opaque pointers 2021-08-05 10:58:55 -07:00
write.rs Support -C passes in NewPM 2021-05-08 10:58:08 +02:00