Allow isAllOnesValue testing on packed constants

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33146 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Laskey
2007-01-12 22:39:14 +00:00
parent 9f7f49caa4
commit fa30182eb8
2 changed files with 22 additions and 0 deletions

View File

@ -358,6 +358,12 @@ public:
/// 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);