freebsd-dev/lib/Support
2019-02-15 20:48:51 +00:00
..
Unix Vendor import of llvm release_80 branch r354130: 2019-02-15 20:48:51 +00:00
Windows Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
AArch64TargetParser.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
Allocator.cpp Vendor import of llvm trunk r241361: 2015-07-05 14:21:36 +00:00
AMDGPUMetadata.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
APFloat.cpp Vendor import of llvm trunk r338536: 2018-08-02 17:32:43 +00:00
APInt.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
APSInt.cpp Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
ARMAttributeParser.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
ARMBuildAttrs.cpp Vendor import of llvm trunk r305145: 2017-06-10 13:44:06 +00:00
ARMTargetParser.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
ARMWinEH.cpp Vendor import of llvm trunk r241361: 2015-07-05 14:21:36 +00:00
Atomic.cpp Vendor import of llvm trunk r321017: 2017-12-18 20:10:56 +00:00
BinaryStreamError.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
BinaryStreamReader.cpp Vendor import of llvm trunk r306325: 2017-06-26 20:32:52 +00:00
BinaryStreamRef.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
BinaryStreamWriter.cpp Vendor import of llvm trunk r321017: 2017-12-18 20:10:56 +00:00
BlockFrequency.cpp Vendor import of llvm trunk r321017: 2017-12-18 20:10:56 +00:00
BranchProbability.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
BuryPointer.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
CachePruning.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
Chrono.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
circular_raw_ostream.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
CMakeLists.txt Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
CodeGenCoverage.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
COM.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
CommandLine.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
Compression.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
ConvertUTF.cpp Vendor import of llvm trunk r338536: 2018-08-02 17:32:43 +00:00
ConvertUTFWrapper.cpp Vendor import of llvm trunk r305145: 2017-06-10 13:44:06 +00:00
COPYRIGHT.regex Update llvm to r84119. 2009-10-14 17:57:32 +00:00
CrashRecoveryContext.cpp Vendor import of llvm trunk r338536: 2018-08-02 17:32:43 +00:00
DAGDeltaAlgorithm.cpp Vendor import of llvm trunk r338536: 2018-08-02 17:32:43 +00:00
DataExtractor.cpp Vendor import of llvm trunk r306325: 2017-06-26 20:32:52 +00:00
Debug.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
DebugCounter.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
DeltaAlgorithm.cpp Vendor import of llvm trunk r290819: 2017-01-02 19:17:04 +00:00
DJB.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
DynamicLibrary.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
Errno.cpp Vendor import of llvm trunk r338536: 2018-08-02 17:32:43 +00:00
Error.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
ErrorHandling.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
FileCheck.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
FileOutputBuffer.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
FileUtilities.cpp Vendor import of llvm trunk r290819: 2017-01-02 19:17:04 +00:00
FoldingSet.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
FormattedStream.cpp Vendor import of llvm trunk r338536: 2018-08-02 17:32:43 +00:00
FormatVariadic.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
GlobPattern.cpp Vendor import of llvm trunk r321017: 2017-12-18 20:10:56 +00:00
GraphWriter.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
Hashing.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
Host.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
InitLLVM.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
IntEqClasses.cpp Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
IntervalMap.cpp Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release): 2014-11-24 09:08:18 +00:00
ItaniumManglingCanonicalizer.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
JamCRC.cpp Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
JSON.cpp Vendor import of llvm release_80 branch r353167: 2019-02-05 18:38:58 +00:00
KnownBits.cpp Vendor import of llvm trunk r321017: 2017-12-18 20:10:56 +00:00
LEB128.cpp Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release): 2014-11-24 09:08:18 +00:00
LineIterator.cpp Vendor import of llvm RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1): 2015-01-18 16:17:27 +00:00
LLVMBuild.txt Vendor import of llvm trunk r290819: 2017-01-02 19:17:04 +00:00
Locale.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
LockFileManager.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
LowLevelType.cpp Vendor import of llvm trunk r321017: 2017-12-18 20:10:56 +00:00
ManagedStatic.cpp Vendor import of llvm trunk r338536: 2018-08-02 17:32:43 +00:00
MathExtras.cpp Vendor import of llvm trunk r241361: 2015-07-05 14:21:36 +00:00
MD5.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
Memory.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
MemoryBuffer.cpp Vendor import of llvm trunk r338536: 2018-08-02 17:32:43 +00:00
Mutex.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
NativeFormatting.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
Options.cpp Vendor import of llvm RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1): 2015-01-18 16:17:27 +00:00
Parallel.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
Path.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
PluginLoader.cpp Vendor import of llvm trunk r178860: 2013-04-08 18:41:23 +00:00
PrettyStackTrace.cpp Vendor import of llvm trunk r338536: 2018-08-02 17:32:43 +00:00
Process.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
Program.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
RandomNumberGenerator.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
raw_os_ostream.cpp Update LLVM to 92395. 2010-01-01 10:31:22 +00:00
raw_ostream.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
README.txt.system Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
regcomp.c Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
regengine.inc Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
regerror.c Update llvm to r84119. 2009-10-14 17:57:32 +00:00
regex2.h Vendor import of llvm trunk r321017: 2017-12-18 20:10:56 +00:00
regex_impl.h Vendor import of llvm trunk r338536: 2018-08-02 17:32:43 +00:00
Regex.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
regexec.c Vendor import of llvm release_32 branch r168974 (effectively, 3.2 RC2): 2012-12-02 13:10:19 +00:00
regfree.c Update llvm to r84119. 2009-10-14 17:57:32 +00:00
regstrlcpy.c Update llvm to r84119. 2009-10-14 17:57:32 +00:00
regutils.h Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release): 2014-11-24 09:08:18 +00:00
RWMutex.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
ScaledNumber.cpp Vendor import of llvm trunk r290819: 2017-01-02 19:17:04 +00:00
ScopedPrinter.cpp Vendor import of llvm trunk r321017: 2017-12-18 20:10:56 +00:00
SHA1.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
Signals.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
SmallPtrSet.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
SmallVector.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
SourceMgr.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
SpecialCaseList.cpp Vendor import of llvm trunk r321017: 2017-12-18 20:10:56 +00:00
Statistic.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
StringExtras.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
StringMap.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
StringPool.cpp Vendor import of llvm trunk r338536: 2018-08-02 17:32:43 +00:00
StringRef.cpp Vendor import of llvm trunk r338536: 2018-08-02 17:32:43 +00:00
StringSaver.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
SymbolRemappingReader.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
SystemUtils.cpp Vendor import of llvm trunk r238337: 2015-05-27 18:44:32 +00:00
TargetParser.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
TargetRegistry.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
TarWriter.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
Threading.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
ThreadLocal.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
ThreadPool.cpp Vendor import of llvm trunk r321017: 2017-12-18 20:10:56 +00:00
Timer.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
ToolOutputFile.cpp Vendor import of llvm trunk r321017: 2017-12-18 20:10:56 +00:00
TrigramIndex.cpp Vendor import of llvm trunk r305145: 2017-06-10 13:44:06 +00:00
Triple.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
Twine.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
Unicode.cpp Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3): 2013-12-22 00:04:03 +00:00
UnicodeCaseFold.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
Valgrind.cpp Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00
VersionTuple.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
VirtualFileSystem.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
Watchdog.cpp Vendor import of llvm trunk r338150: 2018-07-28 10:51:19 +00:00
WithColor.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00
xxhash.cpp Vendor import of llvm trunk r338536: 2018-08-02 17:32:43 +00:00
YAMLParser.cpp Vendor import of llvm trunk r338536: 2018-08-02 17:32:43 +00:00
YAMLTraits.cpp Vendor import of llvm trunk r351319 (just before the release_80 branch 2019-01-19 10:01:25 +00:00

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