aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
Commit message (Collapse)AuthorAgeFilesLines
* * Rewrite loop to be slightly more efficient (arguably)Chris Lattner2002-07-181-2/+2
| | | | | | | * Fix a MAJOR thinko that was causing bad links to happen on Spec git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2953 91177308-0d34-0410-b5e6-96231b3b80d8
* * ConstExpr::getelementptr now takes a vector of Constants not ValuesChris Lattner2002-07-181-109/+73
| | | | | | | * Assert things instead of printing an error and returning null. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2949 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a hack to check for a subset of true dominance propertiesChris Lattner2002-07-181-4/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2947 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement linking of ConstExprsChris Lattner2002-07-181-9/+43
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2946 91177308-0d34-0410-b5e6-96231b3b80d8
* added std:: to cerr and endlAnand Shukla2002-07-161-2/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2914 91177308-0d34-0410-b5e6-96231b3b80d8
* Ensure ConstExpr constants are unique using aVikram S. Adve2002-07-151-5/+62
| | | | | | | map of <opcode, operands> to ConstExpr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2909 91177308-0d34-0410-b5e6-96231b3b80d8
* Added support to write out ConstantExpr nodes.Vikram S. Adve2002-07-141-4/+21
| | | | | | | | Also, avoid asserting out when writing out an invalid tree since the assembly writer is used when debugging. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2902 91177308-0d34-0410-b5e6-96231b3b80d8
* Added subclass ConstantExpr to represent expressions consructed fromVikram S. Adve2002-07-141-12/+129
| | | | | | | | | | constants using operators such as cast, getelementptr, add, shl, etc. Note that a ConstantExpr can be of any type, so classof() in most other subclasses (that discriminate by type) have to check that it is also not a ConstantExpr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2901 91177308-0d34-0410-b5e6-96231b3b80d8
* Create a static version of Instruction::getOpcodeName(opCode) thatVikram S. Adve2002-07-142-45/+53
| | | | | | | | can be invoked with only an opcode (i.e., without an instruction). Move all opCode->opCodeName translations there. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2900 91177308-0d34-0410-b5e6-96231b3b80d8
* *** empty log message ***Chris Lattner2002-07-101-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2852 91177308-0d34-0410-b5e6-96231b3b80d8
* Moved MachineCodeForBB to be an annotation on BasicBlock.Vikram S. Adve2002-07-081-4/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2818 91177308-0d34-0410-b5e6-96231b3b80d8
* *** empty log message ***Chris Lattner2002-06-302-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2813 91177308-0d34-0410-b5e6-96231b3b80d8
* changes for 64bit gccAnand Shukla2002-06-254-7/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2801 91177308-0d34-0410-b5e6-96231b3b80d8
* added include<iostream> for cerrAnand Shukla2002-06-251-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2800 91177308-0d34-0410-b5e6-96231b3b80d8
* MEGAPATCH checkin.Chris Lattner2002-06-2516-435/+324
| | | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2779 91177308-0d34-0410-b5e6-96231b3b80d8
* *** empty log message ***Chris Lattner2002-06-251-57/+45
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2777 91177308-0d34-0410-b5e6-96231b3b80d8
* * Update to work with MegapatchChris Lattner2002-06-251-105/+153
| | | | | | | | | * Add two new checks: * PHI nodes must be the first thing in a basic block, all grouped together * All basic blocks should only end with terminator insts, not contain them git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2773 91177308-0d34-0410-b5e6-96231b3b80d8
* Support opaque type printing a little bit at leastChris Lattner2002-05-261-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2748 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Transforms/ADCE/2002-05-23-ZeroArgPHITest.llChris Lattner2002-05-231-1/+4
| | | | | | | Which contains a description of why this is neccesary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2733 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid creating the symbol table if we don't need it.Chris Lattner2002-05-221-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2728 91177308-0d34-0410-b5e6-96231b3b80d8
* Print out function name with % style instead of "" styleChris Lattner2002-05-221-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2726 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Transforms/CFGSimplify/2002-05-21-PHIElimination.llChris Lattner2002-05-211-4/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2694 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid emitting a useless comment for a basic block with no uses (whichChris Lattner2002-05-141-3/+6
| | | | | | | often happens for the entry basic block of a function) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2624 91177308-0d34-0410-b5e6-96231b3b80d8
* Add method to check to see if two _Instructions_ dominate each otherChris Lattner2002-05-131-0/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2616 91177308-0d34-0410-b5e6-96231b3b80d8
* We actually need this code for the release build to prevent link errors,Chris Lattner2002-05-101-6/+1
| | | | | | | un#ifdef it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2606 91177308-0d34-0410-b5e6-96231b3b80d8
* Verify that function call arguments match the function signatureChris Lattner2002-05-081-0/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2553 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement constant propogation of PHI instructions like this:Chris Lattner2002-05-071-1/+17
| | | | | | | X = phi(0, 0, 0) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2543 91177308-0d34-0410-b5e6-96231b3b80d8
* Move UnifyFunctionExitNodes to Utils library: final resting place this timeChris Lattner2002-05-071-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2531 91177308-0d34-0410-b5e6-96231b3b80d8
* Updates to move some header files out of include/llvm/Transforms intoChris Lattner2002-05-072-36/+39
| | | | | | | the Scalar and Utils subdirectories git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2523 91177308-0d34-0410-b5e6-96231b3b80d8
* Mark analyses that only depend on the CFG of a functionChris Lattner2002-05-061-8/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2507 91177308-0d34-0410-b5e6-96231b3b80d8
* Make functions that preserve the CFG not invalidate analyses that only dependChris Lattner2002-05-061-1/+28
| | | | | | | on the CFG of a function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2506 91177308-0d34-0410-b5e6-96231b3b80d8
* Move a bunch of code to a .cpp file, don't #include Instruction.hChris Lattner2002-05-062-86/+24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2499 91177308-0d34-0410-b5e6-96231b3b80d8
* Move code out of header fileChris Lattner2002-05-061-0/+81
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2498 91177308-0d34-0410-b5e6-96231b3b80d8
* Replace all usages of Type::isPointerType with isa<PointerType>Chris Lattner2002-05-061-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2486 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement getPrimitiveSize()Chris Lattner2002-05-061-2/+14
| | | | | | | don't use isPointerType() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2485 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement constant propogation of shift instructionsChris Lattner2002-05-062-0/+44
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2471 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement constant propogation of shiftsChris Lattner2002-05-061-0/+28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2470 91177308-0d34-0410-b5e6-96231b3b80d8
* Print functions with curly braces instead of begin/endChris Lattner2002-05-061-9/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2469 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement two iterator remove methodChris Lattner2002-05-061-0/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2467 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement remainderChris Lattner2002-05-031-9/+46
| | | | | | | Fix implementation of Not git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2464 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement remainderChris Lattner2002-05-032-22/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2463 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Transforms/SCCP/2002-05-03-NotOperator.llChris Lattner2002-05-031-12/+26
| | | | | | | by using the ~ operator instead of ! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2458 91177308-0d34-0410-b5e6-96231b3b80d8
* The implementation keyword is no longer neccesaryChris Lattner2002-05-021-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2434 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix problem where subpasses would invalidate all analyses outstandingChris Lattner2002-04-301-0/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2418 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the range insert operation return an iterator, even though the STLChris Lattner2002-04-291-3/+11
| | | | | | | range insert doesn't git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2413 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes so that iMemory.h doesn't include DerivedTypes.hChris Lattner2002-04-292-0/+19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2404 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate duplicate or unneccesary #include'sChris Lattner2002-04-296-7/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2397 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new optional getPassName() virtual function that a Pass can overrideChris Lattner2002-04-293-5/+15
| | | | | | | to make debugging output a lot nicer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2395 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a new command line option for PassManager using utilities.Chris Lattner2002-04-292-11/+144
| | | | | | | | | Now for llc, gccas, analyze, opt, etc you can specify the -time-passes command line option that outputs a timing summary report that indicates how long each pass takes to execute. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2394 91177308-0d34-0410-b5e6-96231b3b80d8
* Todo has been implemented, remove itChris Lattner2002-04-281-3/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2387 91177308-0d34-0410-b5e6-96231b3b80d8