1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/include/llvm/Support
Mehdi Amini 7d809bb14e Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer
We can build it with -Werror=global-constructors now. This helps
in situation where libSupport is embedded as a shared library,
potential with dlopen/dlclose scenario, and when command-line
parsing or other facilities may not be involved. Avoiding the
implicit construction of these cl::opt can avoid double-registration
issues and other kind of behavior.

Reviewed By: lattner, jpienaar

Differential Revision: https://reviews.llvm.org/D105959
2021-07-16 07:38:16 +00:00
..
FileSystem
Solaris/sys
Windows WindowsSupport.h: do not depend on private config header 2021-06-01 23:05:03 +03:00
AArch64TargetParser.def [AArch64] Add target features for Armv9-A Scalable Matrix Extension (SME) 2021-07-12 13:28:10 +00:00
AArch64TargetParser.h [AArch64] Add target features for Armv9-A Scalable Matrix Extension (SME) 2021-07-12 13:28:10 +00:00
Alignment.h [llvm][NFC] Remove deprecated Alignment::None() 2021-05-06 07:21:23 +00:00
AlignOf.h
Allocator.h
AllocatorBase.h
AMDGPUMetadata.h AMDGPU: Add target id and code object v4 support 2021-03-24 11:54:05 -04:00
AMDHSAKernelDescriptor.h AMDGPU: Add target id and code object v4 support 2021-03-24 11:54:05 -04:00
ARMAttributeParser.h Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer 2021-07-16 07:38:16 +00:00
ARMBuildAttributes.h Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer 2021-07-16 07:38:16 +00:00
ARMEHABI.h
ARMTargetParser.def [clang][ARM] Remove arm2/3/6/7m CPU names 2021-06-03 08:55:44 +00:00
ARMTargetParser.h
ARMWinEH.h
ArrayRecycler.h
Atomic.h
AtomicOrdering.h
AutoConvert.h [SystemZ][z/OS] Add the functions needed for handling EBCDIC I/O 2021-05-03 08:52:38 -04:00
Automaton.h
Base64.h
BCD.h [SystemZ][z/OS] Implement getHostCPUName for z/OS 2021-05-25 11:18:12 -04:00
BinaryByteStream.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
BinaryItemStream.h
BinaryStream.h
BinaryStreamArray.h [docs] Fix doxygen comments wrongly attached to the llvm namespace 2021-04-07 01:20:18 +02:00
BinaryStreamError.h
BinaryStreamReader.h [Support] BinaryStreamReader.h - remove unnecessary <string> include. NFCI. 2021-04-20 10:31:12 +01:00
BinaryStreamRef.h
BinaryStreamWriter.h
BlockFrequency.h
BranchProbability.h Revert "[BranchProbability] move options for 'likely' and 'unlikely'" 2021-03-21 22:50:21 +03:00
BuryPointer.h
CachePruning.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
Capacity.h
Casting.h
CBindingWrapping.h
CFGDiff.h
CFGUpdate.h [NFC] Add missing includes for LLVM_ENABLE_MODULES builds 2021-06-03 23:29:03 +02:00
CheckedArithmetic.h
Chrono.h [docs] Fix doxygen comments wrongly attached to the llvm namespace 2021-04-07 01:20:18 +02:00
circular_raw_ostream.h
CMakeLists.txt
CodeGen.h [IR][sanitizer] Add module flag "frame-pointer" and set it for cc1 -mframe-pointer={non-leaf,all} 2021-04-22 18:07:30 -07:00
CodeGenCoverage.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
COM.h
CommandLine.h Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer 2021-07-16 07:38:16 +00:00
Compiler.h [NFC] Enable RVALUE_REFERENCE_THIS on MSVC 2019 2021-03-23 16:40:13 +00:00
Compression.h
ConvertUTF.h
CrashRecoveryContext.h Recommit: Support: add llvm::thread class that supports specifying stack size. 2021-07-08 16:22:26 +01:00
CRC.h
DataExtractor.h
DataTypes.h
Debug.h
DebugCounter.h
Discriminator.h [SampleFDO] New hierarchical discriminator for FS SampleFDO (llvm-profdata part) 2021-06-04 11:22:06 -07:00
DJB.h
DOTGraphTraits.h
DynamicLibrary.h
ELFAttributeParser.h
ELFAttributes.h
Endian.h
EndianStream.h EndianStream.h - add missing implicit MathExtras.h header dependency. NFCI. 2021-06-05 18:05:40 +01:00
Errc.h
Errno.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
Error.h [NFC] Mark Expected<T>::assertIsChecked() as const 2021-07-08 21:30:23 +08:00
ErrorHandling.h
ErrorOr.h
ExitCodes.h
ExtensibleRTTI.h
FileCollector.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
FileOutputBuffer.h [llvm-objcopy][NFC] Move ownership keeping code into restoreStatOnFile(). 2021-03-17 17:27:00 +03:00
FileSystem.h Support: Remove F_{None,Text,Append} compatibility synonyms, NFC 2021-06-15 12:04:09 -07:00
FileUtilities.h
Format.h
FormatAdapters.h
FormatCommon.h
FormatProviders.h [llvm] Rename StringRef _lower() method calls to _insensitive() 2021-06-25 00:22:01 +03:00
FormattedStream.h
FormatVariadic.h
FormatVariadicDetails.h [NFC] Fix "unused parameter" error revealed in the Linux self-build. 2021-03-15 12:17:11 -04:00
GenericDomTree.h
GenericDomTreeConstruction.h [NFC] Fix "unused variable" warning 2021-06-15 12:59:05 -07:00
GenericIteratedDominanceFrontier.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
GlobPattern.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
GraphWriter.h [SystemZ][z/OS] Set more text files as text 2021-04-19 09:31:46 -04:00
Host.h Reland 293e8fa13d3f05e993771577a4c022deee5cbf6e 2021-03-05 13:23:42 -05:00
InitLLVM.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
InstructionCost.h [LV] NFCI: Do cost comparison on InstructionCost directly. 2021-07-10 11:57:16 +01:00
ItaniumManglingCanonicalizer.h
JSON.h
KnownBits.h [KnownBits] Merge const/non-const KnownBits::extractBits implementations. NFC. 2021-07-03 19:00:25 +01:00
LEB128.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
LICENSE.TXT
LineIterator.h Replace uses of std::iterator with explicit using 2021-04-12 10:47:14 -07:00
Locale.h
LockFileManager.h
LowLevelTypeImpl.h CodeGen: Store LLT instead of uint64_t in MachineMemOperand 2021-06-29 17:38:51 -04:00
MachineValueType.h Revert "[llvm] Add enum iteration to Sequence" 2021-07-13 16:44:42 +00:00
ManagedStatic.h
MathExtras.h [Support] AbsoluteDifference - add brackets to appease static analyzer warning. NFCI. 2021-04-17 13:47:02 +01:00
MD5.h
MemAlloc.h
Memory.h [Support] Memory.h - remove unnecessary <string> include. NFCI. 2021-04-19 14:32:07 +01:00
MemoryBuffer.h [NFC] Reordering parameters in getFile and getFileOrSTDIN 2021-03-25 09:47:49 -04:00
MemoryBufferRef.h
MipsABIFlags.h
MSVCErrorWorkarounds.h
Mutex.h
NativeFormatting.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
OnDiskHashTable.h
OptimizedStructLayout.h [docs] Fix doxygen comments wrongly attached to the llvm namespace 2021-04-07 01:20:18 +02:00
Parallel.h [Support/Parallel] Add a special case for 0/1 items to llvm::parallel_for_each. 2021-05-03 10:08:00 -07:00
Path.h
PluginLoader.h
PointerLikeTypeTraits.h
PrettyStackTrace.h
Printable.h [llvm][iwyu] explicitly includes <functional> and <utility> 2021-07-04 06:02:11 +00:00
Process.h [Windows] Use TerminateProcess to exit without running destructors 2021-05-22 23:41:40 +03:00
Program.h [SystemZ][z/OS][Windows] Add new functions that set Text/Binary mode for Stdin and Stdout based on OpenFlags 2021-04-16 08:09:19 -04:00
RandomNumberGenerator.h
raw_os_ostream.h
raw_ostream.h Add Twine support for std::string_view. 2021-06-08 20:19:04 -07:00
raw_sha1_ostream.h
Recycler.h
RecyclingAllocator.h
Regex.h
Registry.h [flang] Revert "PoC for Flang Driver Plugins" 2021-07-01 08:27:31 +00:00
ReverseIteration.h
RISCVAttributeParser.h Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer 2021-07-16 07:38:16 +00:00
RISCVAttributes.h Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer 2021-07-16 07:38:16 +00:00
RISCVTargetParser.def
RWMutex.h
SaveAndRestore.h
ScaledNumber.h
ScopedPrinter.h Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer 2021-07-16 07:38:16 +00:00
SHA1.h
SHA256.h [llvm] Fix header guards (NFC) 2021-02-16 23:23:07 -08:00
Signals.h
Signposts.h Move the definition of LLVM_SUPPORT_XCODE_SIGNPOSTS into llvm-config.h 2021-06-16 14:40:37 -07:00
SmallVectorMemoryBuffer.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
SMLoc.h
SMTAPI.h
SourceMgr.h
SpecialCaseList.h
StringSaver.h
SuffixTree.h
SwapByteOrder.h
SymbolRemappingReader.h
SystemUtils.h
TargetOpcodes.def [GISel] Support llvm.memcpy.inline 2021-06-30 12:39:05 -07:00
TargetParser.h [AMDGPU] Add gfx1035 target 2021-06-24 14:32:41 -04:00
TargetRegistry.h [MC] Refactor MCObjectFileInfo initialization and allow targets to create MCObjectFileInfo 2021-05-23 14:15:23 -07:00
TargetSelect.h
TarWriter.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
TaskQueue.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
thread.h Recommit: Support: add llvm::thread class that supports specifying stack size. 2021-07-08 16:22:26 +01:00
Threading.h Recommit: Support: add llvm::thread class that supports specifying stack size. 2021-07-08 16:22:26 +01:00
ThreadLocal.h
ThreadPool.h [mlir] Add a ThreadPool to MLIRContext and refactor MLIR threading usage 2021-06-23 01:29:24 +00:00
TimeProfiler.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
Timer.h [Timer] On macOS count number of executed instructions 2021-02-11 17:26:37 +01:00
ToolOutputFile.h
TrailingObjects.h Remove a workaround for MSVC 2013, now that MSVC 2017 is the minimum. 2021-02-24 13:56:49 -05:00
TrigramIndex.h
type_traits.h
TypeName.h
TypeSize.h Always emit error for wrong interfaces to scalable vectors, unless cmdline flag is passed. 2021-04-02 10:55:22 +01:00
Unicode.h
UnicodeCharRanges.h
Valgrind.h
VersionTuple.h
VirtualFileSystem.h [llvm] Rename StringRef _lower() method calls to _insensitive() 2021-06-25 00:22:01 +03:00
Watchdog.h
Win64EH.h
WindowsError.h
WithColor.h Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer 2021-07-16 07:38:16 +00:00
X86DisassemblerDecoderCommon.h [X86] Fix handling of maskmovdqu in X32 2021-07-15 22:56:08 +01:00
X86TargetParser.def [X86] Support -march=rocketlake 2021-04-13 09:48:13 +08:00
X86TargetParser.h [X86] Support -march=rocketlake 2021-04-13 09:48:13 +08:00
xxhash.h
YAMLParser.h Replace uses of std::iterator with explicit using 2021-04-12 10:47:14 -07:00
YAMLTraits.h