Skip to content
  1. Jan 12, 2007
    • Reid Spencer's avatar
      For PR1064: · 7a9c62ba
      Reid Spencer authored
      Implement the arbitrary bit-width integer feature. The feature allows
      integers of any bitwidth (up to 64) to be defined instead of just 1, 8,
      16, 32, and 64 bit integers.
      
      This change does several things:
      1. Introduces a new Derived Type, IntegerType, to represent the number of
         bits in an integer. The Type classes SubclassData field is used to
         store the number of bits. This allows 2^23 bits in an integer type.
      2. Removes the five integer Type::TypeID values for the 1, 8, 16, 32 and
         64-bit integers. These are replaced with just IntegerType which is not
         a primitive any more.
      3. Adjust the rest of LLVM to account for this change.
      
      Note that while this incremental change lays the foundation for arbitrary
      bit-width integers, LLVM has not yet been converted to actually deal with
      them in any significant way. Most optimization passes, for example, will
      still only deal with the byte-width integer types.  Future increments
      will rectify this situation.
      
      llvm-svn: 33113
      7a9c62ba
    • Reid Spencer's avatar
      Implement review feedback for the ConstantBool->ConstantInt merge. Chris · cddc9dfe
      Reid Spencer authored
      recommended that getBoolValue be replaced with getZExtValue and that
      get(bool) be replaced by get(const Type*, uint64_t). This implements
      those changes.
      
      llvm-svn: 33110
      cddc9dfe
    • Nick Lewycky's avatar
      If we know that it's a constant being casted, propagate through the cast · ee32ee02
      Nick Lewycky authored
      instruction. Doesn't work the other way though (can't recover bits that
      have been truncated).
      
      llvm-svn: 33104
      ee32ee02
    • Nick Lewycky's avatar
      Clean up logic after ConstantBool removal. · 4a74a75b
      Nick Lewycky authored
      llvm-svn: 33096
      4a74a75b
  2. Jan 11, 2007
  3. Jan 10, 2007
  4. Jan 08, 2007
  5. Jan 07, 2007
  6. Jan 06, 2007
  7. Jan 05, 2007
  8. Jan 04, 2007
  9. Jan 03, 2007
  10. Dec 31, 2006
    • Reid Spencer's avatar
      Fix a typo. · e8a74ee5
      Reid Spencer authored
      llvm-svn: 32803
      e8a74ee5
    • Reid Spencer's avatar
      For PR950: · c635f47d
      Reid Spencer authored
      This patch replaces signed integer types with signless ones:
      1. [US]Byte -> Int8
      2. [U]Short -> Int16
      3. [U]Int   -> Int32
      4. [U]Long  -> Int64.
      5. Removal of isSigned, isUnsigned, getSignedVersion, getUnsignedVersion
         and other methods related to signedness. In a few places this warranted
         identifying the signedness information from other sources.
      
      llvm-svn: 32785
      c635f47d
  11. Dec 24, 2006
    • Reid Spencer's avatar
      For PR1066: · 193df25e
      Reid Spencer authored
      Fix this by ensuring that a bitcast is inserted to do sign switching. This
      is only temporarily needed as the merging of signed and unsigned is next
      on the SignlessTypes plate.
      
      llvm-svn: 32757
      193df25e
  12. Dec 23, 2006
    • Reid Spencer's avatar
      Shut up some compilers that can't accurately analyze variable usage · 910f23f7
      Reid Spencer authored
      correctly and emit "may be used uninitialized" warnings.
      
      llvm-svn: 32756
      910f23f7
    • Reid Spencer's avatar
      For PR1065: · 43c77d53
      Reid Spencer authored
      Don't allow CmpInst instances to be processed in FoldSelectOpOp because
      you can't easily swap their operands.
      
      llvm-svn: 32753
      43c77d53
    • Reid Spencer's avatar
      For PR950: · 266e42b3
      Reid Spencer authored
      This patch removes the SetCC instructions and replaces them with the ICmp
      and FCmp instructions. The SetCondInst instruction has been removed and
      been replaced with ICmpInst and FCmpInst.
      
      llvm-svn: 32751
      266e42b3
Loading