freebsd-dev/lib/Support
2011-07-17 15:36:56 +00:00
..
Unix Vendor import of llvm trunk r135360: 2011-07-17 15:36:56 +00:00
Windows Vendor import of llvm trunk r135360: 2011-07-17 15:36:56 +00:00
Allocator.cpp Vendor import of llvm trunk r130700: 2011-05-02 19:34:44 +00:00
APFloat.cpp Vendor import of llvm trunk r135360: 2011-07-17 15:36:56 +00:00
APInt.cpp Vendor import of llvm trunk r135360: 2011-07-17 15:36:56 +00:00
APSInt.cpp Import LLVM, at r72732. 2009-06-02 17:52:33 +00:00
Atomic.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
BranchProbability.cpp Vendor import of llvm trunk r132879: 2011-06-12 15:42:51 +00:00
circular_raw_ostream.cpp Update LLVM to r103004. 2010-05-04 16:11:02 +00:00
CMakeLists.txt Vendor import of llvm trunk r132879: 2011-06-12 15:42:51 +00:00
CommandLine.cpp Vendor import of llvm trunk r135360: 2011-07-17 15:36:56 +00:00
ConstantRange.cpp Vendor import of llvm trunk r135360: 2011-07-17 15:36:56 +00:00
COPYRIGHT.regex Update llvm to r84119. 2009-10-14 17:57:32 +00:00
CrashRecoveryContext.cpp Vendor import of llvm trunk r130700: 2011-05-02 19:34:44 +00:00
DAGDeltaAlgorithm.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
Debug.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
DeltaAlgorithm.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
Disassembler.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
Dwarf.cpp Vendor import of llvm trunk r132879: 2011-06-12 15:42:51 +00:00
DynamicLibrary.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
Errno.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
ErrorHandling.cpp Vendor import of llvm trunk r130700: 2011-05-02 19:34:44 +00:00
FileUtilities.cpp Vendor import of llvm trunk r130700: 2011-05-02 19:34:44 +00:00
FoldingSet.cpp Vendor import of llvm trunk r132879: 2011-06-12 15:42:51 +00:00
FormattedStream.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
GraphWriter.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
Host.cpp Vendor import of llvm trunk r135360: 2011-07-17 15:36:56 +00:00
IncludeFile.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
IntEqClasses.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
IntervalMap.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
IsInf.cpp Import LLVM, at r72732. 2009-06-02 17:52:33 +00:00
IsNAN.cpp Import LLVM, at r72732. 2009-06-02 17:52:33 +00:00
Makefile Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
ManagedStatic.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
Memory.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
MemoryBuffer.cpp Vendor import of llvm trunk r132879: 2011-06-12 15:42:51 +00:00
MemoryObject.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
Mutex.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
Path.cpp Vendor import of llvm trunk r130700: 2011-05-02 19:34:44 +00:00
PathV2.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
PluginLoader.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
PrettyStackTrace.cpp Vendor import of llvm trunk r130700: 2011-05-02 19:34:44 +00:00
Process.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
Program.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +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 r130700: 2011-05-02 19:34:44 +00:00
README.txt.system Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
regcclass.h Update llvm to r84119. 2009-10-14 17:57:32 +00:00
regcname.h Update llvm to r84119. 2009-10-14 17:57:32 +00:00
regcomp.c Vendor import of llvm trunk r130700: 2011-05-02 19:34:44 +00:00
regengine.inc Update LLVM to r103004. 2010-05-04 16:11:02 +00:00
regerror.c Update llvm to r84119. 2009-10-14 17:57:32 +00:00
regex2.h Update llvm to r84119. 2009-10-14 17:57:32 +00:00
regex_impl.h Update llvm to r84119. 2009-10-14 17:57:32 +00:00
Regex.cpp Vendor import of llvm trunk r130700: 2011-05-02 19:34:44 +00:00
regexec.c Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +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 Update llvm to r84119. 2009-10-14 17:57:32 +00:00
RWMutex.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
SearchForAddressOfSpecialSymbol.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
Signals.cpp Vendor import of llvm trunk r130700: 2011-05-02 19:34:44 +00:00
SmallPtrSet.cpp Vendor import of llvm trunk r130700: 2011-05-02 19:34:44 +00:00
SmallVector.cpp Vendor import of llvm r114020 (from the release_28 branch): 2010-09-17 15:48:55 +00:00
SourceMgr.cpp Vendor import of llvm trunk r132879: 2011-06-12 15:42:51 +00:00
Statistic.cpp Vendor import of llvm trunk r130700: 2011-05-02 19:34:44 +00:00
StringExtras.cpp Update LLVM to r94309. 2010-01-23 11:09:33 +00:00
StringMap.cpp Vendor import of llvm trunk r130700: 2011-05-02 19:34:44 +00:00
StringPool.cpp Update LLVM to r108428. 2010-07-15 17:06:11 +00:00
StringRef.cpp Vendor import of llvm trunk r130700: 2011-05-02 19:34:44 +00:00
system_error.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
SystemUtils.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
TargetRegistry.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
Threading.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
ThreadLocal.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
Timer.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
TimeValue.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
ToolOutputFile.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +00:00
Triple.cpp Vendor import of llvm trunk r135360: 2011-07-17 15:36:56 +00:00
Twine.cpp Vendor import of llvm trunk r135360: 2011-07-17 15:36:56 +00:00
Valgrind.cpp Vendor import of llvm trunk r126079: 2011-02-20 12:57:14 +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