llvm-project/llvm/test
Petr Hosek 87fd09b25f [InstrProfiling] Generate runtime hook for ELF platforms
When using -fprofile-list to selectively apply instrumentation only
to certain files or functions, we may end up with a binary that doesn't
have any counters in the case where no files were selected. However,
because on Linux and Fuchsia, we pass -u__llvm_profile_runtime, the
runtime would still be pulled in and incur some non-trivial overhead,
especially in the case when the continuous or runtime counter relocation
mode is being used. A better way would be to pull in the profile runtime
only when needed by declaring the __llvm_profile_runtime symbol in the
translation unit only when needed.

This approach was already used prior to 9a041a7522, but we changed it
to always generate the __llvm_profile_runtime due to a TAPI limitation.
Since TAPI is only used on Mach-O platforms, we could use the early
emission of __llvm_profile_runtime there, and on other platforms we
could change back to the earlier approach where the symbol is generated
later only when needed. We can stop passing -u__llvm_profile_runtime to
the linker on Linux and Fuchsia since the generated undefined symbol in
each translation unit that needed it serves the same purpose.

Differential Revision: https://reviews.llvm.org/D98061
2021-03-11 12:29:01 -08:00
..
Analysis [test] precommit tests from D98222 2021-03-09 12:39:47 -08:00
Assembler [Assembler] Fix global icmp test 2021-03-08 17:26:49 +01:00
Bindings LLVM-C: Allow LLVM{Get/Set}Alignment on an atomicrmw/cmpxchg instruction. 2021-02-12 18:31:18 -05:00
Bitcode [ObjC][ARC] Use operand bundle 'clang.arc.attachedcall' instead of 2021-03-04 11:22:30 -08:00
BugPoint
CodeGen [SelectionDAG] Improve scalarization of irregular vector types 2021-03-11 19:57:13 +01:00
DebugInfo Revert "[DebugInfo] Use variadic debug values to salvage BinOps and GEP instrs with non-const operands" 2021-03-11 14:48:01 +00:00
Demangle
Examples Revert "patch" it wass my mistake inusing git 2021-02-24 11:06:16 +05:30
ExecutionEngine [JITLink] Add support for STT_NOTYPE symbols to ELF/x86-64. 2021-03-09 20:40:24 -08:00
Feature [DCE] Don't remove non-willreturn calls 2021-02-19 12:35:40 +01:00
FileCheck [FileCheck][NFC] Move -dump-input tests to a subdirectory 2021-03-04 12:43:48 -05:00
Instrumentation [InstrProfiling] Generate runtime hook for ELF platforms 2021-03-11 12:29:01 -08:00
Integer
JitListener
LTO [DCE] Don't remove non-willreturn calls 2021-02-19 12:35:40 +01:00
Linker [llvm] Change DSOLocalEquivalent type if the underlying global value type changes 2021-03-09 15:09:48 -08:00
MC [AMDGPU] Disable SCC bit on fp atomics 2021-03-10 12:36:09 -08:00
MachineVerifier GlobalISel: Verify G_CONCAT_VECTORS has at least 2 sources 2021-03-01 09:10:36 -05:00
Object [AMDGPU] gfx90a support 2021-02-17 16:01:32 -08:00
ObjectYAML [WebAssembly][yaml2obj][obj2yaml] Elem sections for nonzero tables 2021-03-05 11:45:15 +01:00
Other [opt] Error if -debug-pass is specified alongside the new PM 2021-03-02 15:59:28 -08:00
Reduce
SafepointIRVerifier
Support
SymbolRewriter
TableGen [MCA] Add support for in-order CPUs 2021-03-04 14:08:19 +03:00
ThinLTO/X86 [llvm] Change DSOLocalEquivalent type if the underlying global value type changes 2021-03-09 15:09:48 -08:00
Transforms [SLP] Fix crash when matching associative reduction for integer min/max. 2021-03-11 11:52:57 -08:00
Unit
Verifier [ObjC][ARC] Use operand bundle 'clang.arc.attachedcall' instead of 2021-03-04 11:22:30 -08:00
YAMLParser
tools [MCA] Support in-order CPUs with MicroOpBufferSize=1 2021-03-11 10:12:54 +00:00
.clang-format
CMakeLists.txt
TestRunner.sh
lit.cfg.py [Debugify][OriginalDIMode] Export the report into JSON file 2021-03-11 01:11:13 -08:00
lit.site.cfg.py.in