Skip to content
  1. Nov 14, 2012
  2. Nov 10, 2012
  3. Oct 12, 2012
    • Sean Silva's avatar
      Casting.h: Automatically handle isa<Base>(Derived). · 35dd8779
      Sean Silva authored
      Additionally, all such cases are handled with no dynamic check.
      
      All `classof()` of the form
      
          class Foo {
            [...]
            static bool classof(const Bar *) { return true; }
            [...]
          }
      
      where Foo is an ancestor of Bar are no longer necessary.
      Don't write them!
      
      Note: The exact test is `is_base_of<Foo, Bar>`, which is non-strict, so
      that Foo is considered an ancestor of itself.
      
      This leads to the following rule of thumb for LLVM-style RTTI:
      
          The argument type of `classof()` should be a strict ancestor.
      
      For more information about implementing LLVM-style RTTI, see
      docs/HowToSetUpLLVMStyleRTTI.rst
      
      llvm-svn: 165765
      35dd8779
  4. Oct 04, 2012
  5. Sep 19, 2012
  6. Sep 15, 2012
  7. Aug 21, 2012
  8. Aug 20, 2012
  9. Aug 17, 2012
  10. Aug 15, 2012
  11. Aug 13, 2012
  12. Aug 01, 2012
  13. Jul 23, 2012
  14. Jul 16, 2012
  15. Jul 03, 2012
  16. Jul 02, 2012
    • Stepan Dyatkovskiy's avatar
      IntRange: · 8b9ecca4
      Stepan Dyatkovskiy authored
        - Changed isSingleNumber method behaviour. Now this flag is calculated on demand.
      IntegersSubsetMapping
        - Optimized diff operation.
        - Replaced type of Items field from std::list with std::map.
        - Added new methods:
          bool isOverlapped(self &RHS)
          void add(self& RHS, SuccessorClass *S)
          void detachCase(self& NewMapping, SuccessorClass *Succ)
          void removeCase(SuccessorClass *Succ)
          SuccessorClass *findSuccessor(const IntTy& Val)
          const IntTy* getCaseSingleNumber(SuccessorClass *Succ)
      IntegersSubsetTest
        - DiffTest: Added checks for successors.
      SimplifyCFG
        Updated SwitchInst usage (now it is case-ragnes compatible) for
          - SimplifyEqualityComparisonWithOnlyPredecessor
          - FoldValueComparisonIntoPredecessors
      
      llvm-svn: 159527
      8b9ecca4
  17. Jun 29, 2012
    • Chandler Carruth's avatar
      Move llvm/Support/IRBuilder.h -> llvm/IRBuilder.h · aafe0918
      Chandler Carruth authored
      This was always part of the VMCore library out of necessity -- it deals
      entirely in the IR. The .cpp file in fact was already part of the VMCore
      library. This is just a mechanical move.
      
      I've tried to go through and re-apply the coding standard's preferred
      header sort, but at 40-ish files, I may have gotten some wrong. Please
      let me know if so.
      
      I'll be committing the corresponding updates to Clang and Polly, and
      Duncan has DragonEgg.
      
      Thanks to Bill and Eric for giving the green light for this bit of cleanup.
      
      llvm-svn: 159421
      aafe0918
  18. Jun 28, 2012
  19. Jun 26, 2012
  20. Jun 24, 2012
  21. 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
  22. Jun 20, 2012
  23. Jun 17, 2012
  24. Jun 16, 2012
Loading