Skip to content
  1. Sep 15, 2012
  2. Aug 30, 2012
  3. Aug 21, 2012
  4. Aug 20, 2012
  5. Aug 17, 2012
  6. Aug 15, 2012
  7. Aug 13, 2012
  8. Aug 04, 2012
  9. Aug 01, 2012
    • Chandler Carruth's avatar
      Add range erase, element insert, and range insert methods to · f2113f3b
      Chandler Carruth authored
      TinyPtrVector. With these, it is sufficiently functional for my more
      normal / pedestrian uses.
      
      I've not included some r-value reference stuff here because the value
      type for a TinyPtrVector is, necessarily, just a pointer.
      
      I've added tests that cover the basic behavior of these routines, but
      they aren't as comprehensive as I'd like. In particular, they don't
      really test the iterator semantics as thoroughly as they should. Maybe
      some brave soul will feel enterprising and flesh them out. ;]
      
      llvm-svn: 161104
      f2113f3b
    • Nick Kledzik's avatar
      Initial commit of new FileOutputBuffer support class. · 5fce8c4f
      Nick Kledzik authored
      Since the llvm::sys::fs::map_file_pages() support function it relies on
      is not yet implemented on Windows, the unit tests for FileOutputBuffer 
      are currently conditionalized to run only on unix.
      
      llvm-svn: 161099
      5fce8c4f
    • Akira Hatanaka's avatar
      Implement MipsJITInfo::replaceMachineCodeForFunction. · 0820f0ca
      Akira Hatanaka authored
      No new test case is added.
      This patch makes test JITTest.FunctionIsRecompiledAndRelinked pass on mips
      platform.
      
      Patch by Petar Jovanovic.
      
      llvm-svn: 161098
      0820f0ca
    • Nick Kledzik's avatar
      Suppress stderr noise when test case runs. · 204720bc
      Nick Kledzik authored
      llvm-svn: 161085
      204720bc
  10. Jul 31, 2012
    • Chandler Carruth's avatar
      Implement copy and move assignment for TinyPtrVector. These try to · 94ed2107
      Chandler Carruth authored
      re-use allocated vectors as much as possible.
      
      llvm-svn: 161041
      94ed2107
    • Chandler Carruth's avatar
      Bring TinyPtrVector under test. Somehow we never picked up unit tests · a565375a
      Chandler Carruth authored
      for this class. These tests exercise most of the basic properties, but
      the API for TinyPtrVector is very strange currently. My plan is to start
      fleshing out the API to match that of SmallVector, but I wanted a test
      for what is there first.
      
      Sadly, it doesn't look reasonable to just re-use the SmallVector tests,
      as this container can only ever store pointers, and much of the
      SmallVector testing is to get construction and destruction right.
      
      Just to get this basic test working, I had to add value_type to the
      interface.
      
      While here I found a subtle bug in the combination of 'erase', 'begin',
      and 'end'. Both 'begin' and 'end' wanted to use a null pointer to
      indicate the "end" iterator of an empty vector, regardless of whether
      there is actually a vector allocated or the pointer union is null.
      Everything else was fine with this except for erase. If you erase the
      last element of a vector after it has held more than one element, we
      return the end iterator of the underlying SmallVector which need not be
      a null pointer. Instead, simply use the pointer, and poniter + size()
      begin/end definitions in the tiny case, and delegate to the inner vector
      whenever it is present.
      
      llvm-svn: 161024
      a565375a
    • Chandler Carruth's avatar
      Move the SmallVector unit tests to be type-parameterized so that we can · 0b01261c
      Chandler Carruth authored
      test more than a single instantiation of SmallVector.
      
      Add testing for 0, 1, 2, and 4 element sized "small" buffers. These
      appear to be essentially untested in the unit tests until now.
      
      Fix several tests to be robust in the face of a '0' small buffer. As
      a consequence of this size buffer, the growth patterns are actually
      observable in the test -- yes this means that many tests never caused
      a grow to occur before. For some tests I've merely added a reserve call
      to normalize behavior. For others, the growth is actually interesting,
      and so I captured the fact that growth would occur and adjusted the
      assertions to not assume how rapidly growth occured.
      
      Also update the specialization for a '0' small buffer length to have all
      the same interface points as the normal small vector.
      
      llvm-svn: 161001
      0b01261c
  11. Jul 23, 2012
  12. Jul 16, 2012
  13. Jul 03, 2012
  14. 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
  15. 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
    • Bill Wendling's avatar
      The DIBuilder class is just a wrapper around debug info creation · f799efde
      Bill Wendling authored
      (a.k.a. MDNodes). The module doesn't belong in Analysis. Move it to the VMCore
      instead.
      
      llvm-svn: 159414
      f799efde
  16. Jun 28, 2012
  17. Jun 26, 2012
  18. Jun 24, 2012
  19. Jun 22, 2012
Loading