- Jul 23, 2013
-
-
Rafael Espindola authored
The main observation is that we never need both the filesize and the map size. When mapping a slice of a file, it doesn't make sense to request a null terminator and that would be the only case where the filesize would be used. There are other cleanups that should be done in this area: * A client should not have to pass the size (even an explicit -1) to say if it wants a null terminator or not, so we should probably swap the argument order. * The default should be to not require a null terminator. Very few clients require this, but many end up asking for it just because it is the default. llvm-svn: 186984
-
- Jan 02, 2013
-
-
Chandler Carruth authored
into their new header subdirectory: include/llvm/IR. This matches the directory structure of lib, and begins to correct a long standing point of file layout clutter in LLVM. There are still more header files to move here, but I wanted to handle them in separate commits to make tracking what files make sense at each layer easier. The only really questionable files here are the target intrinsic tablegen files. But that's a battle I'd rather not fight today. I've updated both CMake and Makefile build systems (I think, and my tests think, but I may have missed something). I've also re-sorted the includes throughout the project. I'll be committing updates to Clang, DragonEgg, and Polly momentarily. llvm-svn: 171366
-
- Dec 11, 2012
-
-
Rafael Espindola authored
llvm-svn: 169812
-
- Dec 04, 2012
-
-
Chandler Carruth authored
Again, tools are trickier to pick the main module header for than library source files. I've started to follow the pattern of using LLVMContext.h when it is included as a stub for program source files. llvm-svn: 169252
-
- Aug 06, 2012
-
-
Bill Wendling authored
When the command line target options were removed from the LLVM libraries, LTO lost its ability to specify things like `-disable-fp-elim'. Add this back by adding the command line variables to the `lto' project. <rdar://problem/12038729> llvm-svn: 161353
-
- Apr 02, 2012
-
-
Bill Wendling authored
reflected in the LLVM IR (as a declare or something), then treat it like a data object. N.B. This isn't 100% correct. The ASM parser should supply more information so that we know what type of object it is, and what attributes it should have. llvm-svn: 153870
-
Bill Wendling authored
definition for it. In that case, we want to wait for the potential definition before we create a symbol for it. llvm-svn: 153859
-
- Mar 31, 2012
-
-
Bill Wendling authored
llvm-svn: 153807
-
- Mar 29, 2012
-
-
Bill Wendling authored
Module-level ASM may contain definitions of functions and globals. However, we were not telling the linker that these globals had definitions. As far as it was concerned, they were just declarations. Attempt to resolve this by inserting module-level ASM functions and globals into the '_symbol' set so that the linker will know that they have values. This gets us further towards our goal of compiling LLVM, but it still has problems when linking libLTO.dylib because of the `-dead_strip' flag that's passed to the linker. <rdar://problem/11124216> llvm-svn: 153638
-
Bill Wendling authored
llvm-svn: 153634
-
Bill Wendling authored
llvm-svn: 153612
-
- Mar 28, 2012
-
-
Bill Wendling authored
a bunch of comments for the various functions. No intended functionality change. llvm-svn: 153595
-
Bill Wendling authored
llvm-svn: 153567
-
- Nov 04, 2011
-
-
Bill Wendling authored
llvm-svn: 143690
-
Bill Wendling authored
llvm-svn: 143689
-
Bill Wendling authored
around. This is important for some future work as well. llvm-svn: 143688
-
- Sep 08, 2011
-
-
Ivan Krasin authored
llvm-svn: 139283
-
- Mar 18, 2011
-
-
Rafael Espindola authored
functions and initializers, just report the declarations present in the module. The motivation is to open the way for using the lazy module parsing, which should speed up clients that just want a symbol list (nm, ar). This is slightly less precise, but since both -strip-dead-prototypes and -globaldce are part of the standard pipeline, this shouldn't change the result for clang/dragonegg produced binaries. Any decl in an IL file was also put there because a FE expected it to be necessary, so this should not be a problem for "-O0 -emit-llvm". As a sanity check, I have bootstrapped clang on linux and built firefox on both linux and darwin. A clang bootstrap on darwin with LTO fails with or without this patch because, ironically, the linker doesn't like the combination of dead_strip and LTO when building libLTO.so :-) llvm-svn: 127870
-
- Mar 17, 2011
-
-
Rafael Espindola authored
of an file. llvm-svn: 127781
-
- Mar 02, 2011
-
-
Rafael Espindola authored
uses. The result produced by the streamer is used to give the linker more accurate information and to add to llvm.compiler.used. The second improvement removes the need for the user to add __attribute__((used)) to functions only used in inline asm. The first one lets us build firefox with LTO on Darwin :-) llvm-svn: 126830
-
- Feb 08, 2011
-
-
Rafael Espindola authored
MemoryBuffer::getOpenFile to not close the file descriptor. llvm-svn: 125128
-
- Aug 09, 2010
-
-
Rafael Espindola authored
gold plugin. llvm-svn: 110604
-
- Dec 23, 2009
-
-
Douglas Gregor authored
llvm-svn: 92004
-
- Nov 18, 2009
-
-
Viktor Kutuzov authored
Added getDefaultSubtargetFeatures method to SubtargetFeatures class which returns a correct feature string for given triple. llvm-svn: 89236
-
- Jul 02, 2009
-
-
Owen Anderson authored
llvm-svn: 74678
-
Owen Anderson authored
moment, that I will need to make far-reaching changes. llvm-svn: 74655
-
- Jul 01, 2009
-
-
Owen Anderson authored
llvm-svn: 74640
-
Owen Anderson authored
Add a pointer to the owning LLVMContext to Module. This requires threading LLVMContext through a lot of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools. Patches for Clang and LLVM-GCC to follow. llvm-svn: 74614
-
- Jun 01, 2009
-
-
rdar://problem/6927148Nick Kledzik authored
Parse __OBJC data structures and synthesize magic .objc_ symbols. Also, alter mangler so that objc method names are readable. llvm-svn: 72700
-
- May 30, 2009
-
-
Evan Cheng authored
llvm-svn: 72600
-
- Apr 24, 2009
-
-
Rafael Espindola authored
llvm-svn: 69972
-
- Jul 16, 2008
-
-
Devang Patel authored
llvm-svn: 53693
-
- Jun 30, 2008
-
-
Devang Patel authored
Rename new lto2 tool as lto. lto2->lto llvm-svn: 52912
-
- Jun 18, 2008
-
-
Bill Wendling authored
llvm-svn: 52470
-
- May 09, 2008
-
-
- Feb 27, 2008
-
-
Nick Kledzik authored
llvm-svn: 47695
-
- Feb 26, 2008
-
-
Nick Kledzik authored
first commit of new LTO system. It is not hooked up in the llvm/tools/Makefile, so no one will build it be default yet llvm-svn: 47621
-