Changes in directory llvm/include/llvm/Support:
ConstantRange.h updated: 1.21 -> 1.22 --- Log message: Add signExtend to ConstantRange, to complement zeroExtend and truncate. --- Diffs of the changes: (+6 -0) ConstantRange.h | 6 ++++++ 1 files changed, 6 insertions(+) Index: llvm/include/llvm/Support/ConstantRange.h diff -u llvm/include/llvm/Support/ConstantRange.h:1.21 llvm/include/llvm/Support/ConstantRange.h:1.22 --- llvm/include/llvm/Support/ConstantRange.h:1.21 Sat Mar 10 09:54:12 2007 +++ llvm/include/llvm/Support/ConstantRange.h Sat Apr 7 10:41:33 2007 @@ -157,6 +157,12 @@ /// zero extended to BitWidth. ConstantRange zeroExtend(uint32_t BitWidth) const; + /// signExtend - Return a new range in the specified integer type, which must + /// be strictly larger than the current type. The returned range will + /// correspond to the possible range of values if the source range had been + /// sign extended to BitWidth. + ConstantRange signExtend(uint32_t BitWidth) const; + /// truncate - Return a new range in the specified integer type, which must be /// strictly smaller than the current type. The returned range will /// correspond to the possible range of values if the source range had been _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits