[LLD][ELF] Add time-trace to ELF LLD
authorRussell Gallop <russell.gallop@sony.com>
Tue, 28 Jan 2020 16:05:13 +0000 (16:05 +0000)
committerRussell Gallop <russell.gallop@sony.com>
Thu, 6 Feb 2020 12:14:13 +0000 (12:14 +0000)
commite7cb374433095219069ef767f70c0c9159a65b7c
tree2b23739a37f983d36d500bb098832bc2c6a6d25c
parentabe01e17f648a97666d4fbed41f0861686a17972
[LLD][ELF] Add time-trace to ELF LLD

This adds some of LLD specific scopes and picks up optimisation scopes
via LTO/ThinLTO. Makes use of TimeProfiler multi-thread support added in
77e6bb3c.

Differential Revision: https://reviews.llvm.org/D71060
12 files changed:
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/ICF.cpp
lld/ELF/LTO.cpp
lld/ELF/MarkLive.cpp
lld/ELF/Options.td
lld/ELF/SyntheticSections.cpp
lld/ELF/Writer.cpp
lld/test/ELF/lto/thinlto-time-trace.ll [new file with mode: 0644]
lld/test/ELF/time-trace.s [new file with mode: 0644]
llvm/include/llvm/LTO/Config.h
llvm/lib/LTO/LTO.cpp