summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Changes to be GCC3.1 friendlyChris Lattner2002-07-313-12/+13
| | | | llvm-svn: 3186
* *** empty log message ***Chris Lattner2002-07-314-10/+12
| | | | llvm-svn: 3185
* We need iostream in PassManagerT.h to use cerrChris Lattner2002-07-312-1/+1
| | | | llvm-svn: 3183
* Add new -only-print-main-ds option that causes mains ds graph to beChris Lattner2002-07-311-1/+4
| | | | | | printed, but no others. llvm-svn: 3178
* Fix bug that was causing problems for lliChris Lattner2002-07-311-1/+1
| | | | llvm-svn: 3176
* Add GlobalDSGraph -- a common graph that holds externally visible nodes.Vikram S. Adve2002-07-301-4/+8
| | | | llvm-svn: 3173
* Print globals graph after either the BU or the TD pass.Vikram S. Adve2002-07-301-17/+41
| | | | llvm-svn: 3172
* This file implements the top-down propagation pass for data structure graphs.Vikram S. Adve2002-07-301-0/+224
| | | | | | | | | | Also, we now use a separate globals graph to hold externally visible nodes. This changes both the bottom-up and top-down propagation so that globals and other external objects do not have to appear in every function, but only in functions in which they are referenced or they can be used to access something else that is referenced. llvm-svn: 3171
* Use a separate globals graph to hold externally visible nodes.Vikram S. Adve2002-07-302-107/+484
| | | | | | | | | This changes both the bottom-up and top-down propagation so that globals and other external objects do not have to appear in every function, but only in functions in which they are referenced or they can be used to access something else that is referenced. llvm-svn: 3170
* Implement new -debug-pass=Arguments option that causes PassManager toChris Lattner2002-07-302-9/+35
| | | | | | print out the command line options for the optimizations it is running. llvm-svn: 3165
* * Indent class into anonymous namespace, filling up the diff with garbageChris Lattner2002-07-301-30/+43
| | | | | | | | | * Internalize global variables with initializers * Add new stat to track global variable internalization * Only count functions that were not internal before in internalized function count llvm-svn: 3163
* Cleanup ConstantExpr handling:Chris Lattner2002-07-304-54/+61
| | | | | | | | | | | | | | * Correctly delete TypeHandles in AsmParser. In addition to not leaking memory, this prevents a bug that could have occurred when a type got resolved that the constexpr was using * Check for errors in the AsmParser instead of hitting assertion failures deep in the code * Simplify the interface to the ConstantExpr class, removing unneccesary parameters to the ::get* methods. * Rename the 'getelementptr' version of ConstantExpr::get to ConstantExpr::getGetElementPtr llvm-svn: 3161
* Cleanup ConstantExpr handling:Chris Lattner2002-07-302-30/+24
| | | | | | | | | | | | | | * Correctly delete TypeHandles in AsmParser. In addition to not leaking memory, this prevents a bug that could have occurred when a type got resolved that the constexpr was using * Check for errors in the AsmParser instead of hitting assertion failures deep in the code * Simplify the interface to the ConstantExpr class, removing unneccesary parameters to the ::get* methods. * Rename the 'getelementptr' version of ConstantExpr::get to ConstantExpr::getGetElementPtr llvm-svn: 3160
* Remove FIXME's that aren't really needed after all.Chris Lattner2002-07-301-9/+0
| | | | llvm-svn: 3158
* Declare that these passes only depend on the CFG of the functionChris Lattner2002-07-304-18/+18
| | | | llvm-svn: 3157
* * Move some code from Pass.cpp to PassManagerT.hChris Lattner2002-07-302-55/+37
| | | | | | | * Implement stuff so that code can declare that they only depend on the CFG of a function, not on anything else. This speeds up GCCAS a lot. llvm-svn: 3155
OpenPOWER on IntegriCloud