Skip to content
  1. Jul 23, 2013
    • Rafael Espindola's avatar
      Split getOpenFile into getOpenFile and getOpenFileSlice. · 3d2ac2e4
      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
      3d2ac2e4
  2. Jan 02, 2013
    • Chandler Carruth's avatar
      Move all of the header files which are involved in modelling the LLVM IR · 9fb823bb
      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
      9fb823bb
  3. Dec 11, 2012
  4. Dec 04, 2012
    • Chandler Carruth's avatar
      Sort the #include lines for tools/... · 4d88a1c2
      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
      4d88a1c2
  5. Aug 06, 2012
  6. Apr 02, 2012
  7. Mar 31, 2012
  8. Mar 29, 2012
    • Bill Wendling's avatar
      Make some headway towards compiling all of LLVM. · 9ee2d338
      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
      9ee2d338
    • Bill Wendling's avatar
      Cleanup whitespace. · 2b743c3f
      Bill Wendling authored
      llvm-svn: 153634
      2b743c3f
    • Bill Wendling's avatar
      Cleanup some whitespaces. · 7e58b386
      Bill Wendling authored
      llvm-svn: 153612
      7e58b386
  9. Mar 28, 2012
  10. Nov 04, 2011
  11. Sep 08, 2011
  12. Mar 18, 2011
    • Rafael Espindola's avatar
      Simplify the computation of undefined symbols. Instead of walking · c78f6577
      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
      c78f6577
  13. Mar 17, 2011
  14. Mar 02, 2011
    • Rafael Espindola's avatar
      Add a special streamer to libLTO that just records symbols definitions and · 1e49a6d9
      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
      1e49a6d9
  15. Feb 08, 2011
  16. Aug 09, 2010
  17. Dec 23, 2009
  18. Nov 18, 2009
  19. Jul 02, 2009
  20. Jul 01, 2009
  21. Jun 01, 2009
  22. May 30, 2009
  23. Apr 24, 2009
  24. Jul 16, 2008
  25. Jun 30, 2008
    • Devang Patel's avatar
      · 4be1c150
      Devang Patel authored
      Rename new lto2 tool as lto.
      lto2->lto
      
      llvm-svn: 52912
      4be1c150
  26. Jun 18, 2008
  27. May 09, 2008
  28. Feb 27, 2008
  29. Feb 26, 2008
Loading