aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ConstantRange.cpp
AgeCommit message (Expand)AuthorFilesLines
2012-07-23make ConstantRange::zeroExtend() optimalNuno Lopes1-2/+6
2012-07-19reimplement truncate() to make it optimal.Nuno Lopes1-10/+45
2012-07-17simplify getSetSize() per Duncan's commentsNuno Lopes1-6/+5
2012-07-16teach ConstantRange that zero times X is always zeroNuno Lopes1-0/+6
2012-07-16make ConstantRange::getSetSize() properly compute the size of wrapped and ful...Nuno Lopes1-8/+10
2012-06-28add ConstantRange::difference (to perform set difference/relative complement)Nuno Lopes1-0/+6
2012-06-28fix a off-by-one bug in intersectWith(), and add a bunch of testsNuno Lopes1-1/+1
2012-05-18fix corner case in ConstantRange::intersectWith().Nuno Lopes1-1/+1
2012-02-07Convert assert(0) to llvm_unreachableCraig Topper1-1/+1
2012-01-03Conform to the style guide; remove 'else' after 'return'. Also remove an extraNick Lewycky1-56/+36
2011-11-24Make ConstantRange::truncate a bit more efficient.Benjamin Kramer1-4/+2
2011-09-21Change:Richard Trieu1-1/+1
2011-07-27Trim includes.Frits van Bommel1-12/+11
2011-06-22Fix the implementation of ConstantRange::sub(ConstantRange). Patch by Xi Wang!Nick Lewycky1-2/+2
2010-12-07PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() andJay Foad1-9/+3
2010-09-28Make ConstantRange::makeICmpRegion handle all the edge cases properly. ThisNick Lewycky1-10/+28
2010-09-07Add completely hokey binary-and and binary-or operations to ConstantRange andNick Lewycky1-0/+26
2010-09-06Add a new isSignWrappedSet() method to ConstantRange.Nick Lewycky1-3/+15
2010-08-11Clean up ConstantRange a bit:Nick Lewycky1-78/+46
2010-08-07Remove layering violation.Owen Anderson1-2/+0
2010-08-07Add an inverse() method to ConstantRange.Owen Anderson1-0/+11
2010-08-07Add a convenience constructor.Owen Anderson1-0/+3
2010-01-26Fix a typo that several people pointed out. Also, address the case ofDan Gohman1-2/+4
2010-01-26Add a comment about a missed opportunity.Dan Gohman1-0/+3
2010-01-26Print empty and full sets specially.Dan Gohman1-1/+6
2010-01-05Change errs() to dbgs().David Greene1-1/+2
2009-11-12fix crash in my previous patchNuno Lopes1-1/+1
2009-11-12implement shl, ashr, and lshr methods. shl is not fully implemented as it is ...Nuno Lopes1-0/+37
2009-11-09add zextOrTrunc and sextOrTrunc methods, that are similar to the ones in APIntNuno Lopes1-0/+24
2009-08-23Change Pass::print to take a raw ostream instead of std::ostream,Chris Lattner1-6/+1
2009-07-19Fix ConstantRange::unionWith. Also make it work a little hard in some cases toNick Lewycky1-45/+50
2009-07-18Replace intersectWith with maximalIntersectWith. The latter guarantees thatNick Lewycky1-43/+5
2009-07-13Fix an error in ConstantRange::getSignedMax on wrapped ranges. Thanks onceNick Lewycky1-7/+3
2009-07-13'i8 full-range' sign extended to i16 should equal [-128, 128) not [-128, 127).Nick Lewycky1-1/+1
2009-07-13Multiply was very wrong for wrapped ranges. This supplies a half-fix that willNick Lewycky1-6/+6
2009-07-13Fix a bug summing two full sets. The overflow checking doesn't handle sets asNick Lewycky1-0/+2
2009-07-12Implement udiv for ConstantRanges.Nick Lewycky1-4/+26
2009-07-12Implement ConstantRange::multiply based on the code in LoopVR.Nick Lewycky1-3/+13
2009-07-11Fix handling of max and full set.Nick Lewycky1-4/+0
2009-07-11Clarify and simplify.Nick Lewycky1-1/+1
2009-07-11Move a method that creates constant ranges relative to another constant rangeNick Lewycky1-0/+72
2009-07-09Revert the part of 75177 that split ConstantRange into two classes, andDan Gohman1-513/+28
2009-07-09Add a ConstantSignedRange class, which does for signed integersDan Gohman1-19/+572
2008-08-23Switch the asmprinter (.ll) and all the stuff it requires over toChris Lattner1-4/+3
2008-08-17Rework the routines that convert AP[S]Int into a string. Now, instead ofChris Lattner1-2/+1
2008-05-27Tidy up whitespace in ConstantRange::print output.Dan Gohman1-1/+1
2007-12-29Remove attribution from file headers, per discussion on llvmdev.Chris Lattner1-2/+2
2007-07-14Clarify the language. Pointed out by Duncan Sands.Nick Lewycky1-2/+4
2007-07-14Add alternate ConstantRange intersection algorithm.Nick Lewycky1-0/+81
2007-06-09Fix edge case.Nick Lewycky1-2/+2