Skip to content
  1. Aug 21, 2013
  2. Jul 27, 2013
  3. Jul 26, 2013
    • Bill Schmidt's avatar
      [PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc. · 419f7c23
      Bill Schmidt authored
      Both GCC and LLVM will implicitly define __ppc__ and __powerpc__ for
      all PowerPC targets, whether 32- or 64-bit.  They will both implicitly
      define __ppc64__ and __powerpc64__ for 64-bit PowerPC targets, and not
      for 32-bit targets.  We cannot be sure that all other possible
      compilers used to compile Clang/LLVM define both __ppc__ and
      __powerpc__, for example, so it is best to check for both when relying
      on either inside the Clang/LLVM code base.
      
      This patch makes sure we always check for both variants.  In addition,
      it fixes one unnecessary check in lib/Target/PowerPC/PPCJITInfo.cpp.
      (At least one of __ppc__ and __powerpc__ should always be defined when
      compiling for a PowerPC target, no matter which compiler is used, so
      testing for them is unnecessary.)
      
      There are some places in the compiler that check for other variants,
      like __POWERPC__ and _POWER, and I have left those in place.  There is
      no need to add them elsewhere.  This seems to be in Apple-specific
      code, and I won't take a chance on breaking it.
      
      There is no intended change in behavior; thus, no test cases are
      added.
      
      llvm-svn: 187248
      419f7c23
  4. Jul 18, 2013
    • Eli Friedman's avatar
      Handle '.' correctly in hex float literal parsing. · d2eb07ac
      Eli Friedman authored
      There were a couple of different loops that were not handling
      '.' correctly in APFloat::convertFromHexadecimalString; these mistakes
      could lead to assertion failures and incorrect rounding for overlong
      hex float literals.
      
      Fixes PR16643.
      
      llvm-svn: 186539
      d2eb07ac
  5. Jul 11, 2013
  6. Jul 02, 2013
  7. Jun 27, 2013
  8. Jun 26, 2013
  9. Jun 24, 2013
  10. Jun 20, 2013
  11. Jun 19, 2013
    • Michael Gottesman's avatar
      [APFloat] Changed APFloat::isNormal => APFloat::isFiniteNonZero for all tests in unittests. · b5101ab3
      Michael Gottesman authored
      I forgot to to do this in r184356. The only references were in APFloatTest.cpp.
      
      llvm-svn: 184366
      b5101ab3
    • Michael Gottesman's avatar
      [APFloat] Added isFiniteNonZero predicate. · d95d4478
      Michael Gottesman authored
      This is the first patch in a series of patches to rename isNormal =>
      isFiniteNonZero and isIEEENormal => isNormal. In order to prevent careless
      errors on my part the overall plan is:
      
      1. Add the isFiniteNonZero predicate with tests. I can do this in a method
      independent of isNormal. (This step is this patch).
      2. Convert all references to isNormal with isFiniteNonZero. My plan is to
      comment out isNormal locally and continually convert isNormal references =>
      isFiniteNonZero until llvm/clang compiles.
      3. Remove old isNormal and rename isIEEENormal to isNormal.
      4. Look through all of said references from patch 2 and see if we can simplify
      them by using the new isNormal.
      
      llvm-svn: 184350
      d95d4478
  12. Jun 07, 2013
  13. Jun 04, 2013
    • Michael Gottesman's avatar
      IEEE-754R 5.7.2 General Operations is* operations (except for isCanonical). · 3acedb63
      Michael Gottesman authored
      Specifically the following work was done:
      
      1. If the operation was not implemented, I implemented it.
      
      2. If the operation was already implemented, I just moved its location
      in the APFloat header into the IEEE-754R 5.7.2 section. If the name was
      incorrect, I put in a comment giving the true IEEE-754R name.
      
      Also unittests have been added for all of the functions which did not
      already have a unittest.
      
      llvm-svn: 183179
      3acedb63
  14. Jun 02, 2013
  15. May 31, 2013
  16. May 30, 2013
  17. May 28, 2013
  18. May 13, 2013
  19. Mar 29, 2013
  20. Feb 21, 2013
  21. Feb 20, 2013
  22. Feb 19, 2013
  23. Feb 07, 2013
    • Meador Inge's avatar
      ADT: Correct APInt::getActiveWords for zero values · 32dc7249
      Meador Inge authored
      PR15138 was opened because of a segfault in the Bitcode writer.
      The actual issue ended up being a bug in APInt where calls to
      APInt::getActiveWords returns a bogus value when the APInt value
      is 0.  This patch fixes the problem by ensuring that getActiveWords
      returns 1 for 0 valued APInts.
      
      llvm-svn: 174641
      32dc7249
  24. Jan 31, 2013
Loading