llvm-project/clang/lib
Petr Hosek df3e39f60b [InstrProfiling] Use !associated metadata for counters, data and values
C identifier name input sections such as __llvm_prf_* are GC roots so
they cannot be discarded. In LLD, the SHF_LINK_ORDER flag overrides the
C identifier name semantics.

The !associated metadata may be attached to a global object declaration
with a single argument that references another global object, and it
gets lowered to SHF_LINK_ORDER flag. When a function symbol is discarded
by the linker, setting up !associated metadata allows linker to discard
counters, data and values associated with that function symbol.

Note that !associated metadata is only supported by ELF, it does not have
any effect on non-ELF targets.

Differential Revision: https://reviews.llvm.org/D76802
2021-02-01 15:01:43 -08:00
..
APINotes APINotes: annotate dump methods (NFC) 2021-01-08 20:49:28 +00:00
ARCMigrate ARCMigrate: Migrate ObjCMT.cpp over to FileEntryRef 2020-12-09 14:16:05 -08:00
AST Reland "[DebugInfo][CodeView] Use <lambda_n> as the display name for lambdas" 2021-01-28 18:44:48 -08:00
ASTMatchers [ASTMatchers] Fix definition of decompositionDecl 2021-01-30 16:29:40 +00:00
Analysis CFG: Create scope for non-compound range-for body. 2021-01-31 18:43:00 -05:00
Basic [AMDGPU] Set s-memtime-inst feature from clang 2021-02-01 14:20:43 -08:00
CodeGen [InstrProfiling] Use !associated metadata for counters, data and values 2021-02-01 15:01:43 -08:00
CrossTU Revert "Revert "Revert "Revert "Revert "[analyzer] NFC: Move path diagnostic consumer implementations to libAnalysis.""""" 2021-01-08 14:17:18 +01:00
DirectoryWatcher Revert "ADT: Migrate users of AlignedCharArrayUnion to std::aligned_union_t, NFC" 2020-12-14 17:04:06 -08:00
Driver [LSan][RISCV] Enable LSan for RISCV64 2021-01-31 21:53:25 +00:00
Edit [clang] Use SourceLocation as key in hash maps, NFCI 2020-10-20 16:24:09 +01:00
Format [clang-format] Add option to control the spaces in a line comment 2021-02-01 22:48:50 +01:00
Frontend Revert "[clang][cli] Port OpenMP-related LangOpts to marshalling system" 2021-02-01 12:50:48 +01:00
FrontendTool [NFC] Refactor Registry loops to range for 2020-06-19 00:40:10 +01:00
Headers [X86] Correct some cross references in avxintrin.h. 2021-01-25 18:49:28 -08:00
Index Revert "Following up on PR48517, fix handling of template arguments that refer" 2021-01-20 15:55:35 +01:00
IndexSerialization [index-while-building] Fix build with -DBUILD_SHARED_LIBS=True 2020-08-20 15:12:56 +01:00
Lex Don't allow __VA_OPT__ to be detected by #ifdef. 2021-01-27 13:34:15 -08:00
Parse clang: Fix static_assert in a few contexts in microsoft mode 2021-01-27 18:15:25 -05:00
Rewrite SourceManager: Clarify that FileInfo always has a ContentCache, NFC 2020-10-23 12:38:53 -04:00
Sema [clang][PATCH] Fix bug 48848 assertion related to recoverFromMSUnqualifiedLookup 2021-02-01 10:56:47 -08:00
Serialization [clang][AST] Encapsulate DeclarationNameLoc, NFCI 2021-01-27 11:21:01 +00:00
StaticAnalyzer [analyzer] NFC: Introduce reusable bug category for "C++ move semantics". 2021-01-27 03:39:18 -08:00
Testing Fix MSVC "not all control paths return a value" warning. NFC. 2020-06-05 10:45:59 +01:00
Tooling [clang-tooling] Prevent llvm::fatal_error on invalid CLI option 2021-01-29 10:15:06 +01:00
CMakeLists.txt APINotes: add APINotesYAMLCompiler 2020-11-05 18:55:13 +00:00