llvm-project/llvm/test
Vedant Kumar 9a041a7522 [InstrProfiling] Emit the runtime hook when no counters are lowered
The API verification tool tapi has difficulty processing frameworks
which enable code coverage, but which have no code. The profile lowering
pass does not emit the runtime hook in this case because no counters are
lowered.

While the hook is not needed for program correctness (the profile
runtime doesn't have to be linked in), it's needed to allow tapi to
validate the exported symbol set of instrumented binaries.

It was not possible to add a workaround in tapi for empty binaries due
to an architectural issue: tapi generates its expected symbol set before
it inspects a binary. Changing that model has a higher cost than simply
forcing llvm to always emit the runtime hook.

rdar://36076904

Differential Revision: https://reviews.llvm.org/D43794

llvm-svn: 326350
2018-02-28 19:00:08 +00:00
..
Analysis [X86][SSE] Reduce FADD/FSUB/FMUL costs on later targets (PR36280) 2018-02-26 22:10:17 +00:00
Assembler Make the LLParser accept call instructions of variables in the program AS 2018-02-27 11:15:11 +00:00
Bindings [LLVM-C] Add Accessors For A Module's Source File Name 2018-01-30 21:34:29 +00:00
Bitcode [DebugInfo] Add remaining files to r325970 2018-02-23 23:13:18 +00:00
BugPoint [bugpoint] Report non-existent opt binary 2018-02-09 06:09:15 +00:00
CodeGen [GlobalISel] Print/Parse FailedISel MachineFunction property 2018-02-28 17:55:45 +00:00
DebugInfo [DEBUGINFO] Add flag for DWARF2 or less to use sections as references. 2018-02-28 15:02:59 +00:00
Examples
ExecutionEngine [RuntimeDyld][MachO] Support ARM64_RELOC_BRANCH26 for BL instructions by 2018-02-28 00:58:21 +00:00
Feature Mark two tests REQUIRES: x86-registered-backend 2018-01-31 07:32:03 +00:00
FileCheck
Instrumentation [InstrProfiling] Emit the runtime hook when no counters are lowered 2018-02-28 19:00:08 +00:00
Integer
JitListener
LTO [LTO] Support filtering by hotness threshold 2018-02-26 18:37:45 +00:00
Linker [DebugInfo] Add remaining files to r325970 2018-02-23 23:13:18 +00:00
MC [WebAssembly] Reorder symbol table to match MC order 2018-02-28 17:19:48 +00:00
Object [WebAssembly] Remove DataSize from linking metadata section 2018-02-27 23:57:37 +00:00
ObjectYAML [WebAssembly] Remove DataSize from linking metadata section 2018-02-27 23:57:37 +00:00
Other Recommit r325001: [CallSiteSplitting] Support splitting of blocks with instrs before call. 2018-02-14 13:59:12 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen Revert "TableGen: Fix typeIsConvertibleTo for record types" 2018-02-23 11:31:49 +00:00
ThinLTO/X86 [LTO] Support filtering by hotness threshold 2018-02-26 18:37:45 +00:00
Transforms [InstCombine] auto-generate complete checks; NFC 2018-02-28 16:53:45 +00:00
Unit
Verifier [DebugInfo] Unify ChecksumKind and Checksum value in DIFile 2018-02-12 19:45:54 +00:00
YAMLParser
tools [WebAssembly] Remove DataSize from linking metadata section 2018-02-27 23:57:37 +00:00
.clang-format
CMakeLists.txt
TestRunner.sh
lit.cfg.py
lit.site.cfg.py.in