Changes in directory llvm/include/llvm:
Constants.h updated: 1.117 -> 1.118 --- Log message: Allow isAllOnesValue testing on packed constants --- Diffs of the changes: (+6 -0) Constants.h | 6 ++++++ 1 files changed, 6 insertions(+) Index: llvm/include/llvm/Constants.h diff -u llvm/include/llvm/Constants.h:1.117 llvm/include/llvm/Constants.h:1.118 --- llvm/include/llvm/Constants.h:1.117 Thu Jan 11 22:24:45 2007 +++ llvm/include/llvm/Constants.h Fri Jan 12 16:39:14 2007 @@ -358,6 +358,12 @@ /// created as ConstantAggregateZero objects. virtual bool isNullValue() const { return false; } + /// This function will return true iff every element in this packed constant + /// is set to all ones. + /// @returns true iff this constant's emements are all set to all ones. + /// @brief Determine if the value is all ones. + virtual bool isAllOnesValue() const; + virtual void destroyConstant(); virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits