Skip to content
  1. Jun 26, 2012
  2. Jun 24, 2012
  3. Jun 21, 2012
    • Chandler Carruth's avatar
      Add a pragma to supress an MSVC warning on some of the absurd code I'm · 92f2f37b
      Chandler Carruth authored
      using to test the alignment support library.
      
      Patch from Nikola on IRC.
      
      llvm-svn: 158912
      92f2f37b
    • Chandler Carruth's avatar
      Completely refactor the structuring of unittest CMake files to match the · 94d02518
      Chandler Carruth authored
      Makefiles, the CMake files in every other part of the LLVM tree, and
      sanity.
      
      This should also restore the output tree structure of all the unit
      tests, sorry for breaking that, and thanks for letting me know.
      
      The fundamental change is to put a CMakeLists.txt file in the unittest
      directory, with a single test binary produced from it. This has several
      advantages:
      
      - No more weird directory stripping in the unittest macro, allowing it
        to be used more readily in other projects.
      - No more directory prefixes on all the source files.
      - Allows correct and precise use of LLVM's per-directory dependency
        system.
      - Allows use of the checking logic for source files that have not been
        added to the CMake build. This uncovered a file being skipped with
        CMake in LLVM and one in Clang's unit tests.
      - Makes Specifying conditional compilation or other custom logic for JIT
        tests easier.
      
      It did require adding the concept of an explicit 'optional' source file
      to the CMake build so that the missing-file check can skip cases where
      the file is *supposed* to be missing. =]
      
      This is another chunk of refactoring the CMake build in order to make it
      usable for other clients like CompilerRT / ASan / TSan.
      
      Note that this is interdependent with a Clang CMake change.
      
      llvm-svn: 158909
      94d02518
  4. Jun 20, 2012
  5. Jun 17, 2012
  6. Jun 16, 2012
    • Chandler Carruth's avatar
      Relax one assertion -- long double has strange alignments on lots of · 3bbbeebd
      Chandler Carruth authored
      platforms.
      
      Also, remove one assertion on MSVC because it produces a completely
      preposterous result, claiming something needs 12-byte alignment.
      
      llvm-svn: 158599
      3bbbeebd
    • Chandler Carruth's avatar
      Try to reduce the size of the array used for compile-time testing by · 8710d886
      Chandler Carruth authored
      making the bounds all '1', and chunking it a bit.
      
      llvm-svn: 158598
      8710d886
    • Chandler Carruth's avatar
      Add support to the alignment support header for conjuring a character · dea00d7c
      Chandler Carruth authored
      array of a suitable size and alignment for any of a number of different
      types to be stored into the character array.
      
      The mechanisms for producing an explicitly aligned type are fairly
      complex because this operation is poorly supported on all compilers.
      We've spent a fairly significant amount of time experimenting with
      different implementations inside of Google, and the one using explicitly
      expanded templates has been the most robust.
      
      Credit goes to Nick Lewycky for writing the first 20 versions or so of
      this logic we had inside of Google. I based this on the only one to
      actually survive. In case anyone is worried, yes we are both explicitly
      re-contributing and re-licensing it for LLVM. =]
      
      Once the issues with actually specifying the alignment are finished, it
      turns out that most compilers don't in turn align anything the way they
      are instructed. Testing of this logic against both Clang and GCC
      indicate that the alignment constraints are largely ignored by both
      compilers! I've come up with and used a work-around by wrapping each
      alignment-hinted type directly in a struct, and using that struct to
      align the character array through a union. This elaborate hackery is
      terrifying, but I've included testing that caught a terrifying number of
      bugs in every other technique I've tried.
      
      All of this in order to implement a poor C++98 programmers emulation of
      C++11 unrestricted unions in classes such as SmallDenseMap.
      
      llvm-svn: 158597
      dea00d7c
  7. Jun 06, 2012
  8. Jun 05, 2012
  9. Jun 02, 2012
  10. May 18, 2012
  11. Apr 17, 2012
  12. Apr 16, 2012
  13. Apr 15, 2012
  14. Apr 04, 2012
  15. Mar 01, 2012
  16. Jan 22, 2012
  17. Dec 21, 2011
    • Manuel Klimek's avatar
      Changes the JSON parser to use the SourceMgr. · 25eb0ac4
      Manuel Klimek authored
      Diagnostics are now emitted via the SourceMgr and we use MemoryBuffer
      for buffer management. Switched the code to make use of the trailing
      '0' that MemoryBuffer guarantees where it makes sense.
      
      llvm-svn: 147063
      25eb0ac4
  18. Dec 20, 2011
  19. Dec 16, 2011
  20. Dec 12, 2011
  21. Dec 10, 2011
  22. Dec 09, 2011
  23. Dec 08, 2011
  24. Nov 14, 2011
Loading