rust/compiler/rustc_codegen_llvm/src
bors 3cd3bbecc5 Auto merge of #90617 - tmiasko:time-trace-threads, r=wesleywiser
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.

cc `@tmandry`
r? `@wesleywiser`
2021-11-06 09:55:50 +00:00
..
back Rollup merge of #89581 - jblazquez:master, r=Mark-Simulacrum 2021-10-25 22:59:46 +02:00
coverageinfo Fix clippy lints 2021-10-01 23:17:19 +02:00
debuginfo Auto merge of #89597 - michaelwoerister:improve-vtable-debuginfo, r=wesleywiser 2021-10-11 04:31:47 +00:00
llvm Initialize LLVM time trace profiler on each code generation thread 2021-11-05 17:47:11 +01:00
abi.rs Remove some minor checks for LLVM < 12 2021-11-05 10:26:16 -07:00
allocator.rs Include debug info for the allocator shim 2021-08-31 15:24:20 -07:00
asm.rs Properly check target_features not to trigger an assertion 2021-10-26 11:02:51 +09:00
attributes.rs Enable AutoFDO. 2021-10-06 19:36:52 +00:00
base.rs Make hash_result an Option. 2021-10-20 18:29:18 +02:00
builder.rs Remove some minor checks for LLVM < 12 2021-11-05 10:26:16 -07:00
callee.rs add platform support details file for armv7-unknown-linux-uclibc 2021-10-06 14:33:13 +00:00
common.rs Make abi::Abi Copy and remove a *lot* of refs 2021-09-09 10:41:19 +02:00
consts.rs Fix clippy lints 2021-10-01 23:17:19 +02:00
context.rs Remove some minor checks for LLVM < 12 2021-11-05 10:26:16 -07:00
declare.rs Remove the decl arg from FnAbi::llvm_type 2021-08-05 10:58:55 -07:00
intrinsic.rs Add LLVM CFI support to the Rust compiler 2021-10-25 16:23:01 -07:00
lib.rs Initialize LLVM time trace profiler on each code generation thread 2021-11-05 17:47:11 +01:00
llvm_util.rs Auto merge of #90617 - tmiasko:time-trace-threads, r=wesleywiser 2021-11-06 09:55:50 +00:00
mono_item.rs Fix clippy lints 2021-10-01 23:17:19 +02:00
type_.rs Fix clippy lints 2021-10-01 23:17:19 +02:00
type_of.rs Fix clippy lints 2021-10-01 23:17:19 +02:00
va_arg.rs Fix clippy lints 2021-10-01 23:17:19 +02:00
value.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00