1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/lib/Support
Peter Collingbourne 12a5c419d0 Support: Remove MSVC 2013 workarounds in ThreadPool class.
I have confirmed that these are no longer needed with MSVC 2015.

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

llvm-svn: 305347
2017-06-14 00:36:21 +00:00
..
Unix Support: Don't set RLIMIT_AS on child processes when applying a memory limit 2017-06-12 22:16:49 +00:00
Windows Fix one place where I missed a commented requirement for a particular 2017-06-06 12:11:24 +00:00
Allocator.cpp
AMDGPUCodeObjectMetadata.cpp AMDGPU/NFC: Move amdgpu code object metadata to support 2017-06-06 18:35:50 +00:00
APFloat.cpp Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-05-30 03:30:34 +00:00
APInt.cpp [APInt] Use std::end to avoid mentioning the size of a local buffer repeatedly. 2017-05-24 07:00:55 +00:00
APSInt.cpp
ARMAttributeParser.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
ARMBuildAttrs.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
ARMWinEH.cpp
Atomic.cpp Fix another ordering constraint with windows.h and comment about 2017-06-06 12:43:20 +00:00
BinaryStreamError.cpp
BinaryStreamReader.cpp Adding parsing ability for .res file. 2017-05-30 18:19:06 +00:00
BinaryStreamRef.cpp [BinaryStream] Reduce the amount of boiler plate needed to use. 2017-05-17 20:23:31 +00:00
BinaryStreamWriter.cpp [BinaryStream] Reduce the amount of boiler plate needed to use. 2017-05-17 20:23:31 +00:00
BlockFrequency.cpp
BranchProbability.cpp
CachePruning.cpp
Chrono.cpp Make naming in Host.h in line with coding standards. 2017-03-31 13:06:40 +00:00
circular_raw_ostream.cpp
CMakeLists.txt Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
COM.cpp
CommandLine.cpp Allow VersionPrinter to print to arbitrary raw_ostreams 2017-06-06 21:54:04 +00:00
Compression.cpp
ConvertUTF.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
ConvertUTFWrapper.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
COPYRIGHT.regex
CrashRecoveryContext.cpp Re-land r303274: "[CrashRecovery] Use SEH __try instead of VEH when available" 2017-05-17 18:16:17 +00:00
DAGDeltaAlgorithm.cpp
DataExtractor.cpp Make DWARFDebugLine use StringRef for directory/file tables. NFC 2017-05-02 17:37:32 +00:00
Debug.cpp
DebugCounter.cpp Make helper functions static. NFC. 2017-05-26 20:09:00 +00:00
DeltaAlgorithm.cpp
DynamicLibrary.cpp Fix the ManagedStatic list ordering when using DynamicLibrary::addPermanentLibrary. 2017-05-26 19:43:23 +00:00
Errno.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Error.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
ErrorHandling.cpp
FileOutputBuffer.cpp
FileUtilities.cpp
FoldingSet.cpp [ADT] Reduce duplication between {Contextual,}FoldingSet; NFC 2017-06-12 20:52:53 +00:00
FormattedStream.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
FormatVariadic.cpp
GlobPattern.cpp
GraphWriter.cpp Added LLVM_FALLTHROUGH to address gcc warning: this statement may fall through. 2017-05-22 22:46:31 +00:00
Hashing.cpp
Host.cpp [X86] Fixing VPOPCNTDQ feature set lookup. 2017-05-28 11:26:11 +00:00
IntEqClasses.cpp
IntervalMap.cpp
JamCRC.cpp
LEB128.cpp
LineIterator.cpp
LLVMBuild.txt
Locale.cpp
LockFileManager.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
LowLevelType.cpp [GlobalISel] Support vector-of-pointers in LLT 2017-04-19 07:23:57 +00:00
ManagedStatic.cpp
MathExtras.cpp
MD5.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Memory.cpp
MemoryBuffer.cpp
Mutex.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
NativeFormatting.cpp
Options.cpp
Parallel.cpp Fix -DLLVM_ENABLE_THREADS=OFF build after r302748 2017-05-11 15:32:47 +00:00
Path.cpp Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
PluginLoader.cpp
PrettyStackTrace.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Process.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Program.cpp
RandomNumberGenerator.cpp
raw_os_ostream.cpp
raw_ostream.cpp
README.txt.system
regcclass.h
regcname.h
regcomp.c
regengine.inc
regerror.c
regex2.h
regex_impl.h
Regex.cpp Add const to a const method. NFC 2017-04-18 01:04:05 +00:00
regexec.c
regfree.c
regstrlcpy.c
regutils.h
RWMutex.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
ScaledNumber.cpp
ScopedPrinter.cpp [llvm-pdbdump] Allow printing only a portion of a stream. 2017-04-28 00:43:38 +00:00
SHA1.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Signals.cpp bugpoint: disabling symbolication of bugpoint-executed programs 2017-06-09 07:29:03 +00:00
SmallPtrSet.cpp
SmallVector.cpp
SourceMgr.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
SpecialCaseList.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Statistic.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
StringExtras.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
StringMap.cpp
StringPool.cpp
StringRef.cpp
StringSaver.cpp
SystemUtils.cpp
TargetParser.cpp [AArch64] Fix variable name ambiguity in r302078. 2017-05-03 20:51:34 +00:00
TargetRegistry.cpp Allow VersionPrinter to print to arbitrary raw_ostreams 2017-06-06 21:54:04 +00:00
TarWriter.cpp
Threading.cpp
ThreadLocal.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
ThreadPool.cpp Support: Remove MSVC 2013 workarounds in ThreadPool class. 2017-06-14 00:36:21 +00:00
Timer.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
ToolOutputFile.cpp
TrigramIndex.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Triple.cpp [Linker] Remove warning when linking ARM and Thumb IR modules. 2017-06-07 09:17:01 +00:00
Twine.cpp
Unicode.cpp
Valgrind.cpp
Watchdog.cpp
xxhash.cpp Revert r301487: Replace HashString algorithm with xxHash64 2017-04-26 23:15:10 +00:00
YAMLParser.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
YAMLTraits.cpp

Design Of lib/System
====================

The software in this directory is designed to completely shield LLVM from any
and all operating system specific functionality. It is not intended to be a
complete operating system wrapper (such as ACE), but only to provide the
functionality necessary to support LLVM.

The software located here, of necessity, has very specific and stringent design
rules. Violation of these rules means that cracks in the shield could form and
the primary goal of the library is defeated. By consistently using this library,
LLVM becomes more easily ported to new platforms since the only thing requiring
porting is this library.

Complete documentation for the library can be found in the file:
  llvm/docs/SystemLibrary.html
or at this URL:
  http://llvm.org/docs/SystemLibrary.html

While we recommend that you read the more detailed documentation, for the
impatient, here's a high level summary of the library's requirements.

 1. No system header files are to be exposed through the interface.
 2. Std C++ and Std C header files are okay to be exposed through the interface.
 3. No exposed system-specific functions.
 4. No exposed system-specific data.
 5. Data in lib/System classes must use only simple C++ intrinsic types.
 6. Errors are handled by returning "true" and setting an optional std::string
 7. Library must not throw any exceptions, period.
 8. Interface functions must not have throw() specifications.
 9. No duplicate function impementations are permitted within an operating
    system class.

To accomplish these requirements, the library has numerous design criteria that
must be satisfied. Here's a high level summary of the library's design criteria:

 1. No unused functionality (only what LLVM needs)
 2. High-Level Interfaces
 3. Use Opaque Classes
 4. Common Implementations
 5. Multiple Implementations
 6. Minimize Memory Allocation
 7. No Virtual Methods