summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Several bug fixes in casting to signed int values.Vikram S. Adve2002-08-131-69/+141
| | | | llvm-svn: 3301
* - Rename ConstantGenericIntegral -> ConstantIntegralChris Lattner2002-08-131-3/+3
| | | | llvm-svn: 3300
* - Rename ConstantGenericIntegral -> ConstantIntegralChris Lattner2002-08-131-27/+104
| | | | | | | - Add new methods to ConstantIntegral: getMaxValue, getMinValue, getAllOnesValue llvm-svn: 3299
* Handle small unsigned results correctly by clearing high bits.Vikram S. Adve2002-08-131-34/+64
| | | | | | Bug fixes in casting to signed int values. llvm-svn: 3297
* Build correctly in the face of /shared.Brian Ensink2002-08-121-7/+5
| | | | | | -Chris llvm-svn: 3296
* - Clean up interface to Sparc register handling a bit:Chris Lattner2002-08-125-186/+170
| | | | | | | | | | | | - Eliminate Sparc*Order classes, moving contents to Sparc*Class classes - get register name methods now return const char * const pointers instead of std::string's. - Added file header comments to SparcRegClassInfo.(cpp|h) - Moved BIG constant arrays out of SparcRegClassInfo.h, into SparcRegInfo.cpp. This should allow a LOT of std::string constructors to not have to be called. llvm-svn: 3295
* - Added a new superclass of ConstantBool/ConstantInt: ConstantGenericIntegralChris Lattner2002-08-121-2/+8
| | | | | | - Moved InstCombine: isMaxValue, isMinValue, isAllOnesValue to Constants.h llvm-svn: 3293
* * Factor a bunch of code by using ReplaceInstUsesWithChris Lattner2002-08-121-163/+51
| | | | | | * Move isMaxValue, isMinValue, isAllOnesValue to Constants.h llvm-svn: 3290
* Remove some extraneous #includesChris Lattner2002-08-121-2/+0
| | | | llvm-svn: 3289
* Changes to make GlobalValueRefMap not derive from std::map.Chris Lattner2002-08-121-10/+13
| | | | llvm-svn: 3288
* New functionality for instcombine:Chris Lattner2002-08-091-28/+213
| | | | | | | | | | | | | | | | | * New ReplaceInstUsesWith function to factor out tons of common code This needs to be used more in the future still, but it's a good start * New InsertNewInstBefore to allow multi-instruction replacements * Change getMaxValue functions to isAllOnesValue function, which doesn't have to CREATE/lookup a new constant. Also the name is accurate * Add new isMaxValue, isMinValue, isMaxValueMinusOne, isMinValuePlusOne functions: This should be moved to Constant* classes eventually * Implement xor X, ALLONES -> not X * Fold ALL setcc's of booleans away * Handle various SetCC's for integers against values at the end of their ranges, possibly off by one. This implements the setcc-strength-reduce.ll testcase. llvm-svn: 3286
* *** empty log message ***Chris Lattner2002-08-091-5/+5
| | | | llvm-svn: 3282
* UnaryOperator::create should take a name just like BinaryOperator::createChris Lattner2002-08-091-13/+3
| | | | llvm-svn: 3279
* * Removed extraneous #includesChris Lattner2002-08-099-114/+47
| | | | | | | * Fixed file headers to be consistent with the rest of LLVM * Other minor fixes llvm-svn: 3278
* * Removed extraneous #includesChris Lattner2002-08-096-63/+28
| | | | | | | * Fixed file headers to be consistent with the rest of LLVM * Other minor fixes llvm-svn: 3277
* We are using std::vector, so remove extraneous namespace prefixesChris Lattner2002-08-091-8/+7
| | | | llvm-svn: 3275
* Very minor cleanupsChris Lattner2002-08-091-23/+15
| | | | llvm-svn: 3271
* Initial checkin of the "Hello World" Pass.Chris Lattner2002-08-082-0/+40
| | | | llvm-svn: 3266
* - Cleaned up the interface to AnalysisUsage to take analysis class namesChris Lattner2002-08-0811-14/+14
| | | | | | | instead of ::ID's. - Pass::getAnalysis<> now no longer takes an optional argument llvm-svn: 3265
* - Cleaned up the interface to AnalysisUsage to take analysis class namesChris Lattner2002-08-085-6/+6
| | | | | | | instead of ::ID's. - Pass::getAnalysis<> now no longer takes an optional argument llvm-svn: 3264
* Remove extraneous #includesChris Lattner2002-08-081-2/+0
| | | | llvm-svn: 3262
* Minor changes to DEBUG()'sChris Lattner2002-08-072-3/+6
| | | | llvm-svn: 3261
* Reorder #includes to be rightChris Lattner2002-08-071-1/+1
| | | | llvm-svn: 3260
* Merge three loops into one.Chris Lattner2002-08-071-23/+18
| | | | llvm-svn: 3259
* Fix breakage in the buildChris Lattner2002-08-071-3/+2
| | | | llvm-svn: 3258
* Simplify writing custom parsers.Chris Lattner2002-08-071-76/+48
| | | | llvm-svn: 3256
* added Mapping and Function PassMehwish Nagda2002-08-051-1/+5
| | | | llvm-svn: 3251
* Bug fix in CreateCodeToLoadConst(): use sign of dest, not operand,Vikram S. Adve2002-08-041-29/+7
| | | | | | in choosing how to create int-set instructions. llvm-svn: 3248
* Bug fix in TargetData::getIndexedOffset(): handle struct offsetVikram S. Adve2002-08-041-6/+7
| | | | | | | after array offset correctly. The type was not being updated for array offsets! llvm-svn: 3246
* Bug fix in SetOperandsForMemInstr: handle leading zeros correctlyVikram S. Adve2002-08-041-5/+9
| | | | | | when folding or not folding GEPs. llvm-svn: 3245
* Add function GetConstantValueAsUnsignedInt.Vikram S. Adve2002-08-041-52/+49
| | | | | | | | Fix 2 bugs in FoldGetElemChain so index vector is not modified when no GEPs are folded in, and so a hasLeadingZero is computed only for the last folded GEP, not the one after that if any. llvm-svn: 3244
* Fix compilation problem. IsIndexZero doesn't exist, use IsZero instead.Chris Lattner2002-08-031-6/+4
| | | | llvm-svn: 3243
* Simplified handling of array indexes in SetMemOperands_Internal.Vikram S. Adve2002-08-031-77/+62
| | | | llvm-svn: 3236
* Eliminate cast instructions: use only GEPs in decomposed sequence.Vikram S. Adve2002-08-031-81/+70
| | | | | | | Don't decompose if there are 2 indices with 0 as first index. Compute Changed flag correctly in runOnBasicBlock(). llvm-svn: 3233
* Fix problem where lli would not print out a 64 bit value when the client codeChris Lattner2002-08-021-2/+10
| | | | | | | uses the modifier "%ld". Now lli passes off "%lld" to the underlying runtime library in this case. llvm-svn: 3230
* Fix one real nasty bugChris Lattner2002-08-021-1/+1
| | | | llvm-svn: 3227
* Fix lli with no argumentsChris Lattner2002-08-021-1/+1
| | | | llvm-svn: 3226
* Fix bug: test/Regression/Transforms/InstCombine/2002-08-02-CastTest.llChris Lattner2002-08-021-7/+37
| | | | | | Implement feature: Cast's can now be converted to bitwise AND expressions. llvm-svn: 3225
* * Cleanups of instcombineChris Lattner2002-08-021-80/+48
| | | | | | | | | - Reenable gep (gep x) -> x - Make instcombine do dead instruction elimination where it's really easy. Now visitors don't have to ensure they aren't not processing dead instructions. llvm-svn: 3222
* Fix bug: test/Regression/Transforms/GCSE/2002-05-21-NoSharedDominator.llChris Lattner2002-08-021-0/+29
| | | | llvm-svn: 3215
* Implement dominator checking in the verifier, so that we check that allChris Lattner2002-08-022-23/+58
| | | | | | defintiions dominate their uses llvm-svn: 3214
* Fix bug: test/Regression/Other/2002-08-02-DomSetProblem.llChris Lattner2002-08-021-1/+12
| | | | llvm-svn: 3213
* Split dominance calculation and post dominance calculation stuffChris Lattner2002-08-022-434/+11
| | | | | | Dominance calculation goes to VMCore library to be used by Verifier. llvm-svn: 3210
* Remove unneccesary #inlcudeChris Lattner2002-08-011-1/+0
| | | | llvm-svn: 3200
* Enhance -time-passes to be more detailed and usefulChris Lattner2002-08-012-20/+108
| | | | llvm-svn: 3199
* Bug fix: incorrect SAVE instruction when using register for stack size.Vikram S. Adve2002-08-011-1/+1
| | | | llvm-svn: 3198
* Fix bug: test/Regression/Assembler/2002-07-31-SlashInString.llxChris Lattner2002-07-311-1/+1
| | | | llvm-svn: 3195
* Implement the other half of a feature advertised by OperandConvertableToType.Chris Lattner2002-07-311-6/+39
| | | | | | This fixes bug: test/Regression/Transforms/LevelRaise/2002-07-31-AssertionFailure.ll llvm-svn: 3193
* Just improved comments and assertions.Vikram S. Adve2002-07-311-14/+18
| | | | llvm-svn: 3191
* Add a missing case: converting float/double to unsigned integer types.Vikram S. Adve2002-07-311-77/+73
| | | | llvm-svn: 3188
OpenPOWER on IntegriCloud