aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/ConstantFolding.h
Commit message (Collapse)AuthorAgeFilesLines
* - Renamed Type::isIntegral() to Type::isInteger()Chris Lattner2002-09-031-2/+2
| | | | | | | | | - Added new method Type::isIntegral() that is the same as isInteger, but also accepts bool. SCVS: ---------------------------------------------------------------------- git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3572 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove constant propogation support for NOT instructionChris Lattner2002-08-141-9/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3321 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement constant propogation of logical (and, or, xor) expressions.Chris Lattner2002-07-301-1/+21
| | | | | | | Fixes testcase: test/Regression/Transforms/ConstProp/logicaltest.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3153 91177308-0d34-0410-b5e6-96231b3b80d8
* Move a bunch of code to a .cpp file, don't #include Instruction.hChris Lattner2002-05-061-43/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2499 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement constant propogation of shift instructionsChris Lattner2002-05-061-0/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2471 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement remainderChris Lattner2002-05-031-11/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2463 91177308-0d34-0410-b5e6-96231b3b80d8
* Split ConstantVals.h into Constant.h and Constants.hChris Lattner2002-04-281-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2378 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor change to reflect that ConstantHandling is now part of VMCoreChris Lattner2002-04-081-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2163 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement constant propogation of multiply and divide instructions!!Chris Lattner2002-04-071-0/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2134 91177308-0d34-0410-b5e6-96231b3b80d8
* Pull stuff out of opt namespaceChris Lattner2002-01-211-3/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1511 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename ConstPoolVal -> ConstantChris Lattner2001-12-031-53/+53
| | | | | | | | Rename ConstPool* -> Constant* Rename ConstPoolVals.h -> ConstantVals.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1407 91177308-0d34-0410-b5e6-96231b3b80d8
* Be more const correctChris Lattner2001-11-261-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1332 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement constant propogation of null pointer values.Chris Lattner2001-11-011-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1078 91177308-0d34-0410-b5e6-96231b3b80d8
* Implemented constant propogation of cast instructionsChris Lattner2001-10-311-0/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1064 91177308-0d34-0410-b5e6-96231b3b80d8
* not is a keyword in Ansi C++. Avoid itChris Lattner2001-10-131-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@748 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert ConstRules to use annotations to clean it up.Chris Lattner2001-09-091-6/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@514 91177308-0d34-0410-b5e6-96231b3b80d8
* You no longer have to delete constants! They are located in a globalChris Lattner2001-09-071-19/+11
| | | | | | | | | constant pool instead of in local ones. Change bool handling to prevent modification of bool values git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@436 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for casting operatorsChris Lattner2001-07-211-0/+30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243 91177308-0d34-0410-b5e6-96231b3b80d8
* Add multiply as a supported constant propogation operationChris Lattner2001-07-201-0/+7
| | | | | | | Include the LevelChange.h header in AllOpts.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211 91177308-0d34-0410-b5e6-96231b3b80d8
* Neg instruction removed. Cast instruction implemented.Chris Lattner2001-07-081-6/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156 91177308-0d34-0410-b5e6-96231b3b80d8
* Split AllOpts.h into lots of little .h files.Chris Lattner2001-06-301-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108 91177308-0d34-0410-b5e6-96231b3b80d8
* Add instructions to fold unary and binary instructions.Chris Lattner2001-06-271-0/+32
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial revisionChris Lattner2001-06-061-0/+145
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2 91177308-0d34-0410-b5e6-96231b3b80d8