Skip to content
  1. Apr 11, 2007
  2. Mar 22, 2007
  3. Mar 19, 2007
  4. Mar 08, 2007
  5. Mar 05, 2007
  6. Feb 15, 2007
    • Reid Spencer's avatar
      For PR1195: · 09575bac
      Reid Spencer authored
      Change use of "packed" term to "vector" in comments, strings, variable
      names, etc.
      
      llvm-svn: 34300
      09575bac
    • Reid Spencer's avatar
      For PR1195: · d84d35ba
      Reid Spencer authored
      Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and
      PackedTyID -> VectorTyID. No functional changes.
      
      llvm-svn: 34293
      d84d35ba
  7. Feb 12, 2007
  8. Feb 11, 2007
  9. Feb 10, 2007
  10. Feb 02, 2007
  11. Jan 21, 2007
    • Reid Spencer's avatar
      For PR970: · 2eadb531
      Reid Spencer authored
      Clean up handling of isFloatingPoint() and dealing with PackedType.
      Patch by Gordon Henriksen!
      
      llvm-svn: 33415
      2eadb531
  12. Jan 19, 2007
    • Reid Spencer's avatar
      For PR1043: · a94d394a
      Reid Spencer authored
      This is the final patch for this PR. It implements some minor cleanup
      in the use of IntegerType, to wit:
      1. Type::getIntegerTypeMask -> IntegerType::getBitMask
      2. Type::Int*Ty changed to IntegerType* from Type*
      3. ConstantInt::getType() returns IntegerType* now, not Type*
      
      This also fixes PR1120.
      
      Patch by Sheng Zhou.
      
      llvm-svn: 33370
      a94d394a
  13. Jan 15, 2007
  14. 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
  15. Jan 08, 2007
  16. Dec 31, 2006
    • 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
  17. Dec 23, 2006
    • 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
    • Chris Lattner's avatar
      add a simple fast-path for dead allocas · f171af97
      Chris Lattner authored
      llvm-svn: 32750
      f171af97
  18. Dec 19, 2006
  19. Dec 15, 2006
  20. Dec 13, 2006
  21. Dec 12, 2006
  22. Dec 11, 2006
    • Chris Lattner's avatar
      trunc to integer, not to FP. · e810140c
      Chris Lattner authored
      llvm-svn: 32426
      e810140c
    • Chris Lattner's avatar
      implement promotion of unions containing two packed types of the same width. · 23f4b68f
      Chris Lattner authored
      This implements Transforms/ScalarRepl/union-packed.ll
      
      llvm-svn: 32422
      23f4b68f
    • Chris Lattner's avatar
      * Eliminate calls to CastInst::createInferredCast. · 216c3028
      Chris Lattner authored
       * Add support for promoting unions with fp values in them.  This produces
         our new int<->fp bitcast instructions, implementing
         Transforms/ScalarRepl/union-fp-int.ll
      
      As an example, this allows us to compile this:
      
      union intfloat { int i; float f; };
      float invsqrt(const float arg_x) {
          union intfloat x = { .f = arg_x };
          const float xhalf = arg_x * 0.5f;
          x.i = 0x5f3759df - (x.i >> 1);
          return x.f * (1.5f - xhalf * x.f * x.f);
      }
      
      into:
      
      _invsqrt:
              movss 4(%esp), %xmm0
              movd %xmm0, %eax
              sarl %eax
              movl $1597463007, %ecx
              subl %eax, %ecx
              movd %ecx, %xmm1
              mulss LCPI1_0, %xmm0
              mulss %xmm1, %xmm0
              movss LCPI1_1, %xmm2
              mulss %xmm1, %xmm0
              subss %xmm0, %xmm2
              movl 8(%esp), %eax
              mulss %xmm2, %xmm1
              movss %xmm1, (%eax)
              ret
      
      instead of:
      
      _invsqrt:
              subl $4, %esp
              movss 8(%esp), %xmm0
              movss %xmm0, (%esp)
              movl (%esp), %eax
              movl $1597463007, %ecx
              sarl %eax
              subl %eax, %ecx
              movl %ecx, (%esp)
              mulss LCPI1_0, %xmm0
              movss (%esp), %xmm1
              mulss %xmm1, %xmm0
              mulss %xmm1, %xmm0
              movss LCPI1_1, %xmm2
              subss %xmm0, %xmm2
              mulss %xmm2, %xmm1
              movl 12(%esp), %eax
              movss %xmm1, (%eax)
              addl $4, %esp
              ret
      
      llvm-svn: 32418
      216c3028
  23. Dec 06, 2006
  24. Nov 27, 2006
    • Reid Spencer's avatar
      For PR950: · 6c38f0bb
      Reid Spencer authored
      The long awaited CAST patch. This introduces 12 new instructions into LLVM
      to replace the cast instruction. Corresponding changes throughout LLVM are
      provided. This passes llvm-test, llvm/test, and SPEC CPUINT2000 with the
      exception of 175.vpr which fails only on a slight floating point output
      difference.
      
      llvm-svn: 31931
      6c38f0bb
  25. Nov 26, 2006
  26. Nov 08, 2006
    • Reid Spencer's avatar
      For PR950: · fdff938a
      Reid Spencer authored
      This patch converts the old SHR instruction into two instructions,
      AShr (Arithmetic) and LShr (Logical). The Shr instructions now are not
      dependent on the sign of their operands.
      
      llvm-svn: 31542
      fdff938a
  27. Nov 07, 2006
  28. Nov 02, 2006
    • Reid Spencer's avatar
      For PR786: · de46e484
      Reid Spencer authored
      Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting
      fall out by removing unused variables. Remaining warnings have to do with
      unused functions (I didn't want to delete code without review) and unused
      variables in generated code. Maintainers should clean up the remaining
      issues when they see them. All changes pass DejaGnu tests and Olden.
      
      llvm-svn: 31380
      de46e484
  29. Oct 24, 2006
  30. Oct 20, 2006
    • Reid Spencer's avatar
      For PR950: · e0fc4dfc
      Reid Spencer authored
      This patch implements the first increment for the Signless Types feature.
      All changes pertain to removing the ConstantSInt and ConstantUInt classes
      in favor of just using ConstantInt.
      
      llvm-svn: 31063
      e0fc4dfc
Loading