- Feb 28, 2007
-
-
Reid Spencer authored
llvm-svn: 34703
-
- Feb 27, 2007
-
-
Reid Spencer authored
llvm-svn: 34681
-
Reid Spencer authored
Implement review feedback: 1. Use new APInt::RoundDoubleToAPInt interface to specify the bit width so that we don't have to truncate or extend in constant folding. 2. Fix a pasteo in SDiv that prevented a check for overflow. 3. Fix the shift operators: undef happens when the shift amount is equal to the bitwidth. llvm-svn: 34677
-
Reid Spencer authored
Implement constant folding via APInt instead of uint64_t. llvm-svn: 34660
-
Chris Lattner authored
lib/Analysis/ConstantFolding. llvm-svn: 34653
-
- Feb 24, 2007
-
-
Chris Lattner authored
llvm-svn: 34548
-
- Feb 15, 2007
-
-
Reid Spencer authored
Change use of "packed" term to "vector" in comments, strings, variable names, etc. llvm-svn: 34300
-
Reid Spencer authored
Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and PackedTyID -> VectorTyID. No functional changes. llvm-svn: 34293
-
- Feb 06, 2007
-
-
Chris Lattner authored
llvm-svn: 33948
-
- Jan 31, 2007
-
-
Chris Lattner authored
This allows us to eliminate many temporary vectors, and theirassociated malloc/free pairs. llvm-svn: 33692
-
- Jan 19, 2007
-
-
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
-
- Jan 15, 2007
-
-
Chris Lattner authored
rename Type::getIntegralTypeMask to Type::getIntegerTypeMask. This makes naming much more consistent. For example, there are now no longer any instances of IntegerType that are not considered isInteger! :) llvm-svn: 33225
-
- Jan 12, 2007
-
-
Chris Lattner authored
constant folding of signed comparisons of bool. llvm-svn: 33134
-
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
-
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
-
- Jan 11, 2007
-
-
Reid Spencer authored
llvm-svn: 33076
-
Zhou Sheng authored
Merge ConstantIntegral and ConstantBool into ConstantInt. Remove ConstantIntegral and ConstantBool from LLVM. llvm-svn: 33073
-
Reid Spencer authored
llvm-svn: 33063
-
- Jan 04, 2007
-
-
Chris Lattner authored
llvm-svn: 32859
-
Chris Lattner authored
llvm-svn: 32857
-
- Dec 31, 2006
-
-
Reid Spencer authored
llvm-svn: 32798
-
Reid Spencer authored
Change signed integer type names to unsigned equivalents. llvm-svn: 32780
-
- Dec 24, 2006
-
-
Reid Spencer authored
1. Make the arguments const like the other ConstantFold* functions. 2. Clean up evaluateFCmpRelation so it makes sense for floating point. 3. Implement the use of evaluateFCmpRelation to fold floating point CEs 4. Shorten a variable name so more things fit on one line. 5. Fix various comments. llvm-svn: 32759
-
- Dec 23, 2006
-
-
Reid Spencer authored
llvm-svn: 32752
-
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
-
- Dec 19, 2006
-
-
Reid Spencer authored
llvm-svn: 32672
-
Reid Spencer authored
ConstRules. Remove the casting rules from ConstRules and subclasses. This cleans up ConstantFolding significantly. Passes all tests. llvm-svn: 32671
-
- Dec 18, 2006
-
-
Reid Spencer authored
llvm-svn: 32650
-
Reid Spencer authored
ConstantInt doesn't care about the sign of the type it represents. It only cares about the bitwidth so there is no need to make the sign of the type match the SExt or ZExt constant expression. llvm-svn: 32646
-
- Dec 13, 2006
-
-
Reid Spencer authored
Rename getZeroExtend and getSignExtend to getZExt and getSExt to match the the casting mnemonics in the rest of LLVM. llvm-svn: 32514
-
- Dec 11, 2006
-
-
Reid Spencer authored
llvm-svn: 32447
-
Chris Lattner authored
Transforms/ConstProp/bitcast.ll and fixes SingleSource/Regression/C/2003-10-12-GlobalVarInitializers llvm-svn: 32438
-
Chris Lattner authored
llvm-svn: 32428
-
- Dec 06, 2006
-
-
Reid Spencer authored
llvm-svn: 32247
-
- Dec 05, 2006
-
-
Reid Spencer authored
been in conjunction with something else. By right, they should just be BitCasts. llvm-svn: 32219
-
Reid Spencer authored
llvm-svn: 32213
-
- Dec 04, 2006
-
-
Reid Spencer authored
llvm-svn: 32169
-
Reid Spencer authored
llvm-svn: 32165
-
- Dec 01, 2006
-
-
Chris Lattner authored
until this happens at least make sext from bool and sitofp from bool do the right thing. llvm-svn: 32087
-
Chris Lattner authored
completely, as it is trivial. We should probably do this for the rest of the cast operations. This fixes ConstProp/2006-12-01-TruncBoolBug.ll. llvm-svn: 32081
-