YouCompleteMe/cpp/llvm/lib/Support
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00
..
Unix Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Windows Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Allocator.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
APFloat.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
APInt.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
APSInt.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Atomic.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
BlockFrequency.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
BranchProbability.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
circular_raw_ostream.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
CMakeLists.txt Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
CommandLine.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
ConstantRange.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
COPYRIGHT.regex Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
CrashRecoveryContext.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
DAGDeltaAlgorithm.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
DataExtractor.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
DataStream.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Debug.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
DeltaAlgorithm.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Disassembler.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Dwarf.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
DynamicLibrary.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Errno.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
ErrorHandling.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
FileUtilities.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
FoldingSet.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
FormattedStream.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
GraphWriter.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Hashing.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Host.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
IncludeFile.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
IntEqClasses.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
IntervalMap.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
IntrusiveRefCntPtr.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
IsInf.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
IsNAN.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
LLVMBuild.txt Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Locale.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
LocaleGeneric.inc Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
LocaleWindows.inc Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
LocaleXlocale.inc Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
LockFileManager.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Makefile Adding more llvm/clang files 2012-07-05 17:55:45 -07:00
ManagedStatic.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Memory.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
MemoryBuffer.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
MemoryObject.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Mutex.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Path.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
PathV2.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
PluginLoader.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
PrettyStackTrace.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Process.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Program.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
raw_os_ostream.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
raw_ostream.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
README.txt.system Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
regcclass.h Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
regcname.h Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
regcomp.c Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
regengine.inc Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
regerror.c Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
regex2.h Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
regex_impl.h Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Regex.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
regexec.c Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
regfree.c Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
regstrlcpy.c Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
regutils.h Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
RWMutex.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
SearchForAddressOfSpecialSymbol.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Signals.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
SmallPtrSet.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
SmallVector.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
SourceMgr.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Statistic.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
StreamableMemoryObject.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
StringExtras.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
StringMap.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
StringPool.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
StringRef.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
system_error.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
SystemUtils.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
TargetRegistry.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Threading.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
ThreadLocal.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Timer.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
TimeValue.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
ToolOutputFile.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Triple.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Twine.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
Valgrind.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07:00
YAMLParser.cpp Adding llvm and clang in-source 2012-07-05 17:51:06 -07: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