llvm-project/llvm/test
Rainer Orth 6fde832b82 [profile] Solaris ld supports __start___llvm_prof_data etc. labels
Currently, many profiling tests on Solaris FAIL like

  Command Output (stderr):
  --
  Undefined                       first referenced
   symbol                             in file
  __llvm_profile_register_names_function /tmp/lit_tmp_Nqu4eh/infinite_loop-9dc638.o
  __llvm_profile_register_function    /tmp/lit_tmp_Nqu4eh/infinite_loop-9dc638.o

Solaris 11.4 ld supports the non-standard GNU ld extension of adding
__start_SECNAME and __stop_SECNAME labels to sections whose names are valid
as C identifiers.  Given that we already use Solaris 11.4-only features
like ld -z gnu-version-script-compat and fully working .preinit_array
support in compiler-rt, we don't need to worry about older versions of
Solaris ld.

The patch documents that support (although the comment in
lib/Transforms/Instrumentation/InstrProfiling.cpp
(needsRuntimeRegistrationOfSectionRange) is quite cryptic what it's
actually about), and adapts the affected testcase not to expect the
alternativeq __llvm_profile_register_functions and __llvm_profile_init.
It fixes all affected tests.

Tested on amd64-pc-solaris2.11.

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

llvm-svn: 363984
2019-06-20 21:27:06 +00:00
..
Analysis [LICM & MSSA] Limit unsafe sinking and hoisting. 2019-06-20 21:09:09 +00:00
Assembler hwasan: Add a tag_offset DWARF attribute to instrumented stack variables. 2019-06-17 23:39:41 +00:00
Bindings
Bitcode [SVE][IR] Scalable Vector IR Type with pr42210 fix 2019-06-18 10:11:56 +00:00
BugPoint
CodeGen AMDGPU: Add intrinsics for DS GWS semaphore instructions 2019-06-20 21:11:42 +00:00
DebugInfo Store a pointer to the return value in a static alloca and let the debugger use that 2019-06-20 17:15:21 +00:00
Demangle llvm-undname: Correctly demangle vararg parameters 2019-06-04 19:10:08 +00:00
Examples
ExecutionEngine [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
Feature
FileCheck [FileCheck] Stop qualifying expressions as numeric 2019-06-19 23:47:24 +00:00
Instrumentation [profile] Solaris ld supports __start___llvm_prof_data etc. labels 2019-06-20 21:27:06 +00:00
Integer
JitListener [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
LTO [ThinLTO]LTO]Legacy] Fix dependent libraries support by adding querying of the IRSymtab 2019-06-12 11:07:56 +00:00
Linker Reapply: IR: add optional type to 'byval' function parameters 2019-05-30 18:48:23 +00:00
MC [AMDGPU] gfx10 tests. NFC. 2019-06-20 16:29:40 +00:00
MachineVerifier Fix GlobalISel MachineVerifier tests. NFC. 2019-06-19 18:15:45 +00:00
Object [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
ObjectYAML [yaml2obj][MachO] Don't fill dummy data for virtual sections 2019-06-17 02:07:20 +00:00
Other Update LLVM test to not check for the EliminateAvailableExternallyPass 2019-06-20 20:51:58 +00:00
SafepointIRVerifier
Support
SymbolRewriter
TableGen
ThinLTO/X86 [Remarks] Extend -fsave-optimization-record to specify the format 2019-06-17 16:06:00 +00:00
Transforms [LICM & MSSA] Limit unsafe sinking and hoisting. 2019-06-20 21:09:09 +00:00
Unit
Verifier Add debug location verification for !llvm.loop attachments. 2019-06-18 20:09:09 +00:00
YAMLParser
tools [llvm-nm] Generalize ELF symbol types 'N' and 'n' 2019-06-20 10:15:11 +00:00
.clang-format
CMakeLists.txt [tools] Introduce llvm-lipo 2019-05-28 23:22:12 +00:00
TestRunner.sh
lit.cfg.py
lit.site.cfg.py.in