LLVM backend for 6502
Go to file
Chris Lattner 11da4cf25c Reimplement MemoryBuffer::getFile with three enhancements:
1) stop using MappedFile.
2) if profitable use the sys::path::MapInFilePages api to
   read the file.
3) otherwise fallback to read.

When sys::path::MapInFilePages is implemented, this provides
several benefits:

#1: this avoids fragmenting memory for small files.
#2: this avoids extraneous stat calls when the file size is known.
#3: this only keeps the file descriptor open while reading the 
    file, not for the duration of the lifetime of the memory 
    buffer.  This fixes a serious clang FD 'leak' problem.

I believe that this will work on a win32 machine, but I don't have
one to test on.  I'd appreciate it if someone could check.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49031 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-01 06:05:21 +00:00
autoconf Adding ocamldoc generation. 2008-03-10 15:49:16 +00:00
bindings Expose Function::viewCFG and Function::viewCFGOnly to bindings. 2008-03-31 16:22:09 +00:00
docs Add a unified 'generated documentation' target so the web site script has a consistent target to use. 2008-03-31 17:27:57 +00:00
examples Fix an incorrect comment, PR2147. 2008-03-13 03:29:42 +00:00
include Stub out some sys::Path::MapInFilePages/UnMapFilePages methods. 2008-04-01 06:00:12 +00:00
lib Reimplement MemoryBuffer::getFile with three enhancements: 2008-04-01 06:05:21 +00:00
projects
runtime
test More soft fp fixes. 2008-04-01 02:18:22 +00:00
tools stop building llvmc. 2008-03-30 18:58:05 +00:00
utils Simplify the conversion from "0x" numbers to a single digit number. 2008-03-28 06:22:23 +00:00
website
win32 Updating win32 VStudio project files with new file references and removing dead references. 2008-03-27 00:02:53 +00:00
Xcode Update project to reflect deleted files. 2008-03-23 16:49:47 +00:00
build-for-llvm-top.sh
configure Regenerate. 2008-03-10 15:49:38 +00:00
CREDITS.TXT Add Mikhail to credits file 2008-03-23 08:58:32 +00:00
LICENSE.TXT
llvm.spec.in
Makefile a happier version of happiness 2008-03-21 22:17:07 +00:00
Makefile.common
Makefile.config.in Reverting r48974. See PR2183 for details. 2008-03-31 16:46:23 +00:00
Makefile.rules Refresh Makefile.ocaml in objdir if it is modified in srcdir. 2008-03-10 15:58:40 +00:00
ModuleInfo.txt
README.txt

Low Level Virtual Machine (LLVM)
================================

This directory and its subdirectories contain source code for the Low Level 
Virtual Machine, a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments. 

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the HTML documentation provided in docs/index.html for further
assistance with LLVM.