llvm-6502/lib/Support
Matt Beaumont-Gay d58518a8b6 Don't assume size_t is unsigned long long.
Fixes a -Woverflow warning from gcc when building for 32-bit platforms.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156313 91177308-0d34-0410-b5e6-96231b3b80d8
2012-05-07 18:12:42 +00:00
..
Unix Unix/Process.inc: Give more useful random seed to srand. Workaround for PR12743. 2012-05-06 08:24:24 +00:00
Windows Reapply 'Add reverseColor to raw_ostream'. 2012-04-16 08:56:50 +00:00
Allocator.cpp
APFloat.cpp Replace the hashing functions on APInt and APFloat with overloads of the 2012-03-04 12:02:57 +00:00
APInt.cpp Move APInt::operator[] inline. 2012-03-14 00:38:15 +00:00
APSInt.cpp
Atomic.cpp
BlockFrequency.cpp
BranchProbability.cpp
circular_raw_ostream.cpp
CMakeLists.txt platform support for counting column widths and checking isprint 2012-04-17 20:03:03 +00:00
CommandLine.cpp Don't cast away constant qualifier. 2012-03-12 10:51:06 +00:00
ConstantRange.cpp
COPYRIGHT.regex
CrashRecoveryContext.cpp move Signals to .rodata 2012-04-21 14:45:37 +00:00
DAGDeltaAlgorithm.cpp
DataExtractor.cpp
DataStream.cpp
Debug.cpp
DeltaAlgorithm.cpp
Disassembler.cpp
Dwarf.cpp Lowercase the tag name to match the rest of dwarf. 2012-03-29 21:35:05 +00:00
DynamicLibrary.cpp
Errno.cpp
ErrorHandling.cpp
FileUtilities.cpp
FoldingSet.cpp FoldingSet: Push the hash through FoldingSetTraits::Equals, so clients can use it. 2012-04-11 14:06:47 +00:00
FormattedStream.cpp
GraphWriter.cpp Silence unused function warning when graphviz is not available. 2012-03-08 22:15:23 +00:00
Hashing.cpp
Host.cpp Change the Intel Atom detection code to recognize 2012-05-02 21:38:46 +00:00
IncludeFile.cpp
IntEqClasses.cpp
IntervalMap.cpp
IntrusiveRefCntPtr.cpp
IsInf.cpp
IsNAN.cpp
LLVMBuild.txt
Locale.cpp platform support for counting column widths and checking isprint 2012-04-17 20:03:03 +00:00
LocaleGeneric.inc C++ has newlines at the end of files (including include files). 2012-04-17 23:46:51 +00:00
LocaleWindows.inc platform support for counting column widths and checking isprint 2012-04-17 20:03:03 +00:00
LocaleXlocale.inc fix error check in assert 2012-04-18 00:40:23 +00:00
LockFileManager.cpp
Makefile
ManagedStatic.cpp
Memory.cpp
MemoryBuffer.cpp In MemoryBuffer::getOpenFile() make sure that the buffer is null-terminated if 2012-04-05 04:23:56 +00:00
MemoryObject.cpp
Mutex.cpp
Path.cpp
PathV2.cpp [PathV2]: Fix bug in create_directories which caused infinite recursion on 2012-03-21 23:09:14 +00:00
PluginLoader.cpp
PrettyStackTrace.cpp
Process.cpp Support/Process: Move llvm::sys::Process::GetRandomNumber() from Process.cpp to Unix/Process.inc. 2012-05-06 08:24:18 +00:00
Program.cpp
raw_os_ostream.cpp
raw_ostream.cpp Reapply 'Add reverseColor to raw_ostream'. 2012-04-16 08:56:50 +00:00
README.txt.system
regcclass.h
regcname.h
regcomp.c
regengine.inc
regerror.c
regex2.h
regex_impl.h
Regex.cpp
regexec.c
regfree.c
regstrlcpy.c
regutils.h
RWMutex.cpp
SearchForAddressOfSpecialSymbol.cpp
Signals.cpp
SmallPtrSet.cpp SmallPtrSet: Reuse DenseMapInfo's pointer hash function instead of inventing a bad one ourselves. 2012-04-18 10:37:32 +00:00
SmallVector.cpp
SourceMgr.cpp Don't assume size_t is unsigned long long. 2012-05-07 18:12:42 +00:00
Statistic.cpp
StreamableMemoryObject.cpp
StringExtras.cpp
StringMap.cpp
StringPool.cpp
StringRef.cpp Don't die with an assertion if the Result bitwidth is already correct. This 2012-04-23 00:27:54 +00:00
system_error.cpp
SystemUtils.cpp
TargetRegistry.cpp
Threading.cpp
ThreadLocal.cpp
Timer.cpp
TimeValue.cpp
ToolOutputFile.cpp
Triple.cpp This patch adds a new NVPTX back-end to LLVM which supports code generation for NVIDIA PTX 3.0. This back-end will (eventually) replace the current PTX back-end, while maintaining compatibility with it. 2012-05-04 20:18:50 +00:00
Twine.cpp
Valgrind.cpp
YAMLParser.cpp YAMLParser: get rid of global ctors & dtors. 2012-05-01 10:19:59 +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