llvm-project/clang/test
Richard Smith cd4d6d718b PR48030: Fix COMDAT-related linking problem with C++ thread_local static data members.
Previously when emitting a C++ guarded initializer, we tried to work out what
the enclosing function would be used for and added it to the COMDAT containing
the variable if we thought that doing so would be correct. But this was done
from a context in which we didn't -- and realistically couldn't -- correctly
infer how the enclosing function would be used.

Instead, add the initialization function to a COMDAT from the code that
creates it, in the case where it makes sense to do so: when we know that
the one and only reference to the initialization function is in
@llvm.global.ctors and that reference is in the same COMDAT.

Reviewed By: rjmccall

Differential Revision: https://reviews.llvm.org/D108680
2021-08-24 19:53:44 -07:00
..
APINotes
ARCMT
AST [NFC] Drop idle compiler option from the test. 2021-08-13 13:20:11 +03:00
ASTMerge
Analysis [analyzer] MallocChecker: Add a visitor to leave a note on functions that could have, but did not change ownership on leaked memory 2021-08-16 16:19:00 +02:00
CXX Implement P1949 2021-08-18 07:33:14 -04:00
ClangScanDeps [clang-scan-deps] ignore top-level module dependencies that aren't actually imported 2021-07-20 11:11:28 -07:00
CodeCompletion [CodeCompletion] Provide placeholders for known attribute arguments 2021-08-19 14:03:41 +02:00
CodeGen [clang][codegen] Set CurLinkModule in CodeGenAction::ExecuteAction 2021-08-24 21:25:49 +00:00
CodeGenCUDA [HIP] Allow target addr space in target builtins 2021-08-19 23:51:58 -06:00
CodeGenCXX PR48030: Fix COMDAT-related linking problem with C++ thread_local static data members. 2021-08-24 19:53:44 -07:00
CodeGenCoroutines [Coroutines] Run coroutine passes by default 2021-07-15 14:33:40 +08:00
CodeGenHIP
CodeGenObjC Recommit "[Matrix] Overload stride arg in matrix.columnwise.load/store." 2021-08-12 18:31:57 +01:00
CodeGenObjCXX Reapply [IR] Don't mark mustprogress as type attribute 2021-07-09 20:57:44 +02:00
CodeGenOpenCL [Remarks] [AMDGPU] Emit optimization remarks for atomics generating hardware instructions 2021-08-19 20:51:19 -06:00
CodeGenOpenCLCXX [C++4OpenCL] Introduces __remove_address_space utility 2021-08-06 10:40:22 +01:00
CodeGenSYCL
Coverage
CoverageMapping
Driver [WebAssembly] Add Wasm SjLj option support for clang 2021-08-24 18:12:52 -07:00
FixIt Implement P1949 2021-08-18 07:33:14 -04:00
Format
Frontend [OpenCL] C++ for OpenCL version 2021 introduced to command line. 2021-08-18 10:08:59 +01:00
Headers [OpenMP][AMDGCN] Enable complex functions 2021-08-24 12:40:41 +05:30
Import
Index [clang][patch] Remove test artifact before running test for consistent results 2021-07-24 07:55:10 -04:00
Integration
InterfaceStubs [ifs][elfabi] Merge llvm-ifs/elfabi tools 2021-07-19 11:23:19 -07:00
Interpreter Reland "[clang-repl] Allow passing in code as positional arguments." 2021-07-10 17:54:00 +00:00
Layout [AIX] "aligned" attribute should not decrease type alignment returned by __alignof__ 2021-08-05 18:18:58 -04:00
Lexer Implement #pragma clang restrict_expansion 2021-08-23 09:46:38 -07:00
LibClang libclang.so: Make SONAME independent from LLVM version 2021-07-26 16:37:26 -07:00
Misc [clang][codegen] Set CurLinkModule in CodeGenAction::ExecuteAction 2021-08-24 21:25:49 +00:00
Modules Clean up test for -f{,no-}implicit-modules-uses-lock 2021-08-16 16:23:04 -07:00
OpenMP PR48030: Fix COMDAT-related linking problem with C++ thread_local static data members. 2021-08-24 19:53:44 -07:00
PCH Extend diagnostic for out of date AST input file. 2021-08-24 17:03:06 -07:00
Parser Implement P1949 2021-08-18 07:33:14 -04:00
ParserSYCL
Preprocessor Make wide multi-character character literals ill-formed 2021-08-20 11:10:53 -04:00
Profile Update: clang/test/Profile/gcc-flag-compatibility.c to have -flto on AIX 2021-08-09 14:57:38 +00:00
Refactor
Rewriter
Sema [CFE][X86] Enable complex _Float16 support 2021-08-18 11:16:14 +08:00
SemaCUDA
SemaCXX [clang] Expose unreachable fallthrough annotation warning 2021-08-16 17:14:55 -07:00
SemaObjC [clang][darwin] add support for Mac Catalyst availability 2021-07-20 12:51:57 -07:00
SemaObjCXX [clang] C++98 implicit moves are back with a vengeance 2021-07-13 19:16:49 +02:00
SemaOpenCL [OpenCL] Clang diagnostics allow reporting C++ for OpenCL version. 2021-08-13 13:55:22 +01:00
SemaOpenCLCXX
SemaSYCL
SemaTemplate
TableGen
Templight
Tooling [clang][tooling] Accept Clang invocations with multiple jobs 2021-07-27 10:47:55 +02:00
Unit
VFS [Modules] Do not remove failed modules after the control block phase 2021-08-17 16:46:51 -07:00
clang-rename
utils/update_cc_test_checks Use installed llvm-lit.py instead of lit.py PR-51072 2021-08-18 09:06:06 +03:00
.clang-format
CMakeLists.txt libclang.so: Make SONAME independent from LLVM version 2021-07-26 16:37:26 -07:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [clang][deps] Substitute clang-scan-deps executable in lit tests 2021-08-04 13:55:14 +02:00
lit.site.cfg.py.in libclang.so: Make SONAME independent from LLVM version 2021-07-26 16:37:26 -07:00
make_test_dirs.pl