Skip to content
  1. Feb 27, 2007
    • Evan Cheng's avatar
      forward() should not increment internal iterator. Its client may insert... · ca25c0ee
      Evan Cheng authored
      forward() should not increment internal iterator. Its client may insert instruction between now and next forward() call.
      
      llvm-svn: 34649
      ca25c0ee
    • Reid Spencer's avatar
      Simplify and document RoundDoubleToAPInt. · 974551a7
      Reid Spencer authored
      llvm-svn: 34648
      974551a7
    • Reid Spencer's avatar
      For PR1205: · b31bffed
      Reid Spencer authored
      Implement the first step towards arbitrary precision integer support in
      LLVM. The APInt class provides arbitrary precision arithmetic and value
      representation. This patch changes ConstantInt to use APInt as its value
      representation without supporting bit widths > 64 yet. That change will
      come after ConstantFolding handles bit widths > 64 bits.
      
      llvm-svn: 34647
      b31bffed
    • Reid Spencer's avatar
      1. Make sure all delete operators of arrays use the array form of delete. · 7c16cd27
      Reid Spencer authored
      2. Rewrite operator=(const APInt& RHS) to allow the RHS to be a different
         bit width than the LHS. This makes it possible to use APInt as the key
         of a DenseMap, as needed for the IntConstants map in Constants.cpp
      3. Fix operator=(uint64_t) to clear unused bits in case the client assigns
         a value that has more bits than the APInt allows.
      4. Assert that bit widths are equal in operator==
      5. Revise getHashValue() to put the bit width in the low order six bits.
         This should help to make i1 0, i2 0, ... i64 0 all distinct in the
         IntConstants DenseMap.
      
      llvm-svn: 34646
      7c16cd27
  2. Feb 26, 2007
  3. Feb 25, 2007
Loading