summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Constants.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix bug: Linker/2003-06-02-TypeResolveProblem.llChris Lattner2003-06-021-0/+4
| | | | llvm-svn: 6542
* Fix problem with last checkin.Chris Lattner2003-05-251-4/+6
| | | | llvm-svn: 6328
* Fix Bug: Linker/2003-04-26-NullPtrLinkProblem.llChris Lattner2003-05-231-103/+194
| | | | | | | | This was a problem with constants having their types resolved to some new type, but there was already a constant of the new type created. Before, these types were never merged together, now they are. llvm-svn: 6314
* Add support for shift constant expressionsChris Lattner2003-05-211-5/+28
| | | | llvm-svn: 6260
* Fix bug: Assembler/2003-05-15-AssemblerProblem.llxChris Lattner2003-05-151-2/+1
| | | | llvm-svn: 6234
* Remove unnecessary castsChris Lattner2003-05-141-11/+12
| | | | llvm-svn: 6201
* Eliminate using declarationsChris Lattner2003-05-131-19/+14
| | | | llvm-svn: 6179
* Don't build constantexprs that could be foldedChris Lattner2003-04-171-0/+10
| | | | llvm-svn: 5801
* Change the interface to constant expressions to allow automatic foldingChris Lattner2003-04-161-6/+5
| | | | llvm-svn: 5793
* Fix ConstantUInt::isAllOnesValueChris Lattner2003-03-101-0/+7
| | | | llvm-svn: 5734
* Remove #includeChris Lattner2003-03-061-1/+18
| | | | | | Extend getNullValue to work with struct and array types llvm-svn: 5718
* - Dramatically simplify the Constant::mutateReferences implementation,Chris Lattner2002-10-141-21/+19
| | | | | | allowing it to be called on all constant types (structures/arrays) llvm-svn: 4160
* - Rename Instruction::First*Op to *OpsBegin, and Num*Ops to *OpsEnd toChris Lattner2002-10-131-2/+2
| | | | | | reflect the fact that it's a range being defined. llvm-svn: 4147
* - Add new Constant::replaceUsesOfWithOnConstant which has an end resultChris Lattner2002-10-091-0/+106
| | | | | | | similar to User::replaceUsesOfWith but actually does the right thing for constants. llvm-svn: 4102
* Fix bug: Assembler/2002-10-08-LargeArrayPerformance.ll by usingChris Lattner2002-10-081-2/+4
| | | | | | std::vector::reserve when possible llvm-svn: 4085
* include/llvm/DataTypes.h includes this #define so we don't need it anymoreChris Lattner2002-09-131-1/+0
| | | | llvm-svn: 3708
* Give better assertion message for error conditionsChris Lattner2002-09-111-0/+4
| | | | llvm-svn: 3680
* - Renamed Type::isIntegral() to Type::isInteger()Chris Lattner2002-09-031-3/+2
| | | | | | | - Added new method Type::isIntegral() that is the same as isInteger, but also accepts bool. llvm-svn: 3574
* Add support for turning an array of characters into a string.Chris Lattner2002-08-261-0/+18
| | | | llvm-svn: 3509
* - ConstantPointerRefs are now automatically removed from the module tableChris Lattner2002-08-181-0/+17
| | | | | | | | | when they are destroyed, which makes Constant::destroyConstant an actually useful external interface. Expose these methods publicly. - Implement destroyConstant on ConstPointerNull so that destroyConstant can be used on any derived type constant safely. llvm-svn: 3379
* Remove support for Not ConstantExpr. This simplifies the unary case to onlyChris Lattner2002-08-141-13/+3
| | | | | | have to support the cast instruction, so the function is renamed to getCast. llvm-svn: 3328
* Return null on failure, instead of aborting.Chris Lattner2002-08-141-9/+3
| | | | llvm-svn: 3308
* - Rename ConstantGenericIntegral -> ConstantIntegralChris Lattner2002-08-131-27/+104
| | | | | | | - Add new methods to ConstantIntegral: getMaxValue, getMinValue, getAllOnesValue llvm-svn: 3299
* - Added a new superclass of ConstantBool/ConstantInt: ConstantGenericIntegralChris Lattner2002-08-121-2/+8
| | | | | | - Moved InstCombine: isMaxValue, isMinValue, isAllOnesValue to Constants.h llvm-svn: 3293
* Cleanup ConstantExpr handling:Chris Lattner2002-07-301-36/+25
| | | | | | | | | | | | | | * 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
* *** empty log message ***Chris Lattner2002-07-241-2/+2
| | | | llvm-svn: 3065
* * 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. llvm-svn: 2949
* added std:: to cerr and endlAnand Shukla2002-07-161-2/+5
| | | | llvm-svn: 2914
* Ensure ConstExpr constants are unique using aVikram S. Adve2002-07-151-5/+62
| | | | | | map of <opcode, operands> to ConstExpr. llvm-svn: 2909
* 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. llvm-svn: 2901
* *** empty log message ***Chris Lattner2002-06-301-1/+0
| | | | llvm-svn: 2813
* added include<iostream> for cerrAnand Shukla2002-06-251-0/+1
| | | | llvm-svn: 2800
* MEGAPATCH checkin.Chris Lattner2002-06-251-1/+0
| | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2779
* Split ConstantVals.h into Constant.h and Constants.hChris Lattner2002-04-281-2/+2
| | | | llvm-svn: 2378
* * Change Constant::getNullConstant to Constant::getNullValueChris Lattner2002-04-271-33/+1
| | | | | | * Remove some unused code llvm-svn: 2324
* Move asmwriter/getStrValue cruft into AsmWriter.cpp file.Chris Lattner2002-04-181-128/+0
| | | | llvm-svn: 2300
* Remove unneccesary castChris Lattner2002-04-161-1/+1
| | | | llvm-svn: 2269
* * Move include/llvm/Analysis/SlotCalculator.h to include/llvm/SlotCalculator.hChris Lattner2002-04-071-1/+2
| | | | | | | because the slot calculator is already part of the VMCore library. * Rename incorporateMethod and purgeMethod to *Function llvm-svn: 2154
* Remove some gross code by using the VAlue::dump method to do debug dumpsChris Lattner2002-04-071-7/+5
| | | | llvm-svn: 2149
* Fix Bug: test/Regression/Other/2002-04-07-InfConstant.llChris Lattner2002-04-071-3/+12
| | | | llvm-svn: 2142
* Fix bug: test/Regression/Other/2002-04-07-HexFloatConstants.llChris Lattner2002-04-071-2/+20
| | | | llvm-svn: 2141
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-24/+29
| | | | llvm-svn: 1503
* Rename ConstPoolVals.cpp to Constants.cppChris Lattner2001-12-141-0/+499
llvm-svn: 1471
OpenPOWER on IntegriCloud