llvm-project/clang/lib/Basic/Targets
Sam Clegg 45ad3467b7 [clang][WebAssembly] Imply -fno-threadsafe-static when threading is disabled
When we don't enable atomics we completely disabled threading in
which case there is no point in generating thread safe code for
static initialization.

This should always be safe because, in WebAssembly, it is not
possible to link object compiled without the atomics feature into a
mutli-threaded program.

See https://github.com/emscripten-core/emscripten/pull/16152

Differential Revision: https://reviews.llvm.org/D118571
2022-01-31 14:26:09 -08:00
..
AArch64.cpp [clang][ARM] Emit warnings when PACBTI-M is used with unsupported architectures 2022-01-28 09:59:58 +00:00
AArch64.h [clang][ARM] Emit warnings when PACBTI-M is used with unsupported architectures 2022-01-28 09:59:58 +00:00
AMDGPU.cpp [openmp][nfc] Refactor GridValues 2021-08-23 16:19:11 +01:00
AMDGPU.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
ARC.cpp
ARC.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
ARM.cpp [clang][ARM] Emit warnings when PACBTI-M is used with unsupported architectures 2022-01-28 09:59:58 +00:00
ARM.h [clang][ARM] Emit warnings when PACBTI-M is used with unsupported architectures 2022-01-28 09:59:58 +00:00
AVR.cpp [clang][AVR] Implement '__flashN' for variables on different flash banks 2022-01-19 11:24:01 +00:00
AVR.h [clang] Fix function pointer address space 2022-01-13 08:06:19 -08:00
BPF.cpp [Basic] Use llvm::is_contained (NFC) 2021-10-10 08:52:14 -07:00
BPF.h [BPF] add support for 32 bit registers in inline asm 2021-05-16 11:01:47 -07:00
Hexagon.cpp [Hexagon] Driver/preprocessor options for Hexagon v69 2021-12-23 10:17:08 -08:00
Hexagon.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
Lanai.cpp
Lanai.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
Le64.cpp [NFC] Remove reference to file deleted by D100981. 2021-04-22 10:40:18 -07:00
Le64.h [NFC] Remove reference to file deleted by D100981. 2021-04-22 10:40:18 -07:00
M68k.cpp Remove redundant string initialization (NFC) 2021-12-26 09:39:26 -08:00
M68k.h [cfe] Support target-specific escaped character in inline asm 2021-05-24 21:39:21 -07:00
MSP430.cpp [MSP430] Actualize the toolchain description 2020-07-17 15:42:12 +03:00
MSP430.h [MSP430] Update register names 2020-06-26 15:32:07 +03:00
Mips.cpp [Basic] Use llvm::is_contained (NFC) 2021-10-10 08:52:14 -07:00
Mips.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
NVPTX.cpp [HIPSPV][3/4] Enable SPIR-V emission for HIP 2021-12-20 10:45:09 -05:00
NVPTX.h Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
OSTargets.cpp Define __STDC_NO_THREADS__ when targeting windows-msvc (PR48704) 2021-12-16 16:30:06 +01:00
OSTargets.h Revert "Revert "Use VersionTuple for parsing versions in Triple, fixing issues that caused the original change to be reverted. This makes it possible to distinguish between "16" and "16.0" after parsing, which previously was not possible."" 2021-12-07 23:15:21 +00:00
PNaCl.cpp
PNaCl.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
PPC.cpp [PowerPC] Emit warning when SP is clobbered by asm 2022-01-24 15:12:23 -06:00
PPC.h Remove redundant string initialization (NFC) 2021-12-26 09:39:26 -08:00
RISCV.cpp [RISCV] Decouple Zve* extensions and the V extension. 2022-01-24 14:55:21 +08:00
RISCV.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
SPIR.cpp [SPIR-V] Add SPIR-V triple and clang target info. 2021-11-08 13:34:10 +00:00
SPIR.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
Sparc.cpp [Sparc] Don't define __sparcv9 and __sparcv9__ when targeting V8+ 2022-01-21 09:57:17 -08:00
Sparc.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
SystemZ.cpp [SystemZ] Add support for new cpu architecture - arch14 2021-07-26 16:57:28 +02:00
SystemZ.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
TCE.cpp
TCE.h [SYCL] Enable `opencl_global_[host,device]` attributes for SYCL 2021-05-18 10:27:35 +03:00
VE.cpp [VE] Clang toolchain for VE 2020-06-24 10:12:09 +02:00
VE.h [VE] Change clang to support SjLj Lowering 2021-01-05 22:19:02 +09:00
WebAssembly.cpp [clang][WebAssembly] Imply -fno-threadsafe-static when threading is disabled 2022-01-31 14:26:09 -08:00
WebAssembly.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
X86.cpp Revert "[X86][clang] Emit diagnostic for float and double when we have features -x87 and -sse on 64-bits" 2021-12-10 10:31:09 +08:00
X86.h [X86][MS] Change the alignment of f80 to 16 bytes on Windows 32bits to match with ICC 2022-01-23 09:58:46 +08:00
XCore.cpp [clang][XCore] Define __xcore__ for XCore target. 2021-04-26 15:06:04 +01:00
XCore.h Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00