Skip to content
  1. Aug 18, 2010
  2. Aug 17, 2010
  3. Aug 16, 2010
  4. Aug 12, 2010
    • Duncan Sands's avatar
      Add a 'normalize' method to the Triple class, which takes a mucked up · 501dff76
      Duncan Sands authored
      target triple and straightens it out.  This does less than gcc's script
      config.sub, for example it turns i386-mingw32 into i386--mingw32 not
      i386-pc-mingw32, but it does a decent job of turning funky triples into
      something that the rest of the Triple class can understand.  The plan
      is to use this to canonicalize triple's when they are first provided
      by users, and have the rest of LLVM only deal with canonical triples.
      Once this is done the special case workarounds in the Triple constructor
      can be removed, making the class more regular and easier to use.  The
      comments and unittests for the Triple class are already adjusted in this
      patch appropriately for this brave new world of increased uniformity.
      
      llvm-svn: 110909
      501dff76
    • Nick Lewycky's avatar
      Clean up ConstantRange a bit: · d385c22c
      Nick Lewycky authored
       - remove ashr which never worked.
       - fix lshr and shl and add tests.
       - remove dead function "intersect1Wrapped".
       - add a new sub method to subtract ranges, with test.
      
      llvm-svn: 110861
      d385c22c
  5. Aug 08, 2010
  6. Aug 07, 2010
  7. Aug 03, 2010
  8. Jul 30, 2010
  9. Jul 29, 2010
  10. Jul 28, 2010
  11. Jul 15, 2010
  12. Jul 07, 2010
  13. Jun 30, 2010
    • Duncan Sands's avatar
      Rather than giving SmallPtrSetImpl a member field SmallArray which is magically · 7b90966d
      Duncan Sands authored
      replaced by a bigger array in SmallPtrSet (by overridding it), instead just use a
      pointer to the start of the storage, and have SmallPtrSet pass in the value to use.
      This has the disadvantage that SmallPtrSet becomes bigger by one pointer.  It has
      the advantage that it no longer uses tricky C++ rules, and is clearly correct while
      I'm not sure the previous version was.  This was inspired by g++-4.6 pointing out
      that SmallPtrSetImpl was writing off the end of SmallArray, which it was.  Since
      SmallArray is replaced with a bigger array in SmallPtrSet, the write was still to
      valid memory.  But it was writing off the end of the declared array type - sounds
      kind of dubious to me, like it sounded dubious to g++-4.6.  Maybe g++-4.6 is wrong
      and this construct is perfectly valid and correctly compiled by all compilers, but
      I think it is better to avoid the whole can of worms by avoiding this construct.
      
      llvm-svn: 107285
      7b90966d
  14. Jun 28, 2010
  15. Jun 25, 2010
  16. Jun 24, 2010
  17. Jun 22, 2010
  18. Jun 19, 2010
  19. Jun 18, 2010
    • Dan Gohman's avatar
      Give NamedRegionTimer an Enabled flag, allowing all its clients to · 6e681a5f
      Dan Gohman authored
      switch from this:
      
        if (TimePassesIsEnabled) {
          NamedRegionTimer T(Name, GroupName);
          do_something();
        } else {
          do_something(); // duplicate the code, this time without a timer!
        }
      
      to this:
      
        {
          NamedRegionTimer T(Name, GroupName, TimePassesIsEnabled);
          do_something();
        }
      
      llvm-svn: 106285
      6e681a5f
  20. Jun 17, 2010
  21. Jun 15, 2010
  22. Jun 08, 2010
  23. May 28, 2010
Loading