Changes in directory llvm/lib/VMCore:
Constants.cpp updated: 1.228 -> 1.229 Type.cpp updated: 1.187 -> 1.188 --- Log message: Minor comment cleanups. --- Diffs of the changes: (+6 -6) Constants.cpp | 10 +++++----- Type.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) Index: llvm/lib/VMCore/Constants.cpp diff -u llvm/lib/VMCore/Constants.cpp:1.228 llvm/lib/VMCore/Constants.cpp:1.229 --- llvm/lib/VMCore/Constants.cpp:1.228 Mon Mar 19 15:39:08 2007 +++ llvm/lib/VMCore/Constants.cpp Thu May 24 09:36:04 2007 @@ -130,14 +130,14 @@ return 0; } -/// @returns the value for an packed integer constant of the given type that +/// @returns the value for a vector integer constant of the given type that /// has all its bits set to true. /// @brief Get the all ones value ConstantVector *ConstantVector::getAllOnesValue(const VectorType *Ty) { std::vector<Constant*> Elts; Elts.resize(Ty->getNumElements(), ConstantInt::getAllOnesValue(Ty->getElementType())); - assert(Elts[0] && "Not a packed integer type!"); + assert(Elts[0] && "Not a vector integer type!"); return cast<ConstantVector>(ConstantVector::get(Elts)); } @@ -353,7 +353,7 @@ assert((C->getType() == T->getElementType() || (T->isAbstract() && C->getType()->getTypeID() == T->getElementType()->getTypeID())) && - "Initializer for packed element doesn't match packed element type!"); + "Initializer for vector element doesn't match vector element type!"); OL->init(C, this); } } @@ -1185,7 +1185,7 @@ Constant *ConstantVector::get(const VectorType *Ty, const std::vector<Constant*> &V) { - // If this is an all-zero packed, return a ConstantAggregateZero object + // If this is an all-zero vector, return a ConstantAggregateZero object if (!V.empty()) { Constant *C = V[0]; if (!C->isNullValue()) @@ -1209,7 +1209,7 @@ destroyConstantImpl(); } -/// This function will return true iff every element in this packed constant +/// This function will return true iff every element in this vector 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. Index: llvm/lib/VMCore/Type.cpp diff -u llvm/lib/VMCore/Type.cpp:1.187 llvm/lib/VMCore/Type.cpp:1.188 --- llvm/lib/VMCore/Type.cpp:1.187 Thu May 3 22:39:28 2007 +++ llvm/lib/VMCore/Type.cpp Thu May 24 09:36:04 2007 @@ -1181,7 +1181,7 @@ VectorType *VectorType::get(const Type *ElementType, unsigned NumElements) { - assert(ElementType && "Can't get packed of null types!"); + assert(ElementType && "Can't get vector of null types!"); assert(isPowerOf2_32(NumElements) && "Vector length should be a power of 2!"); VectorValType PVT(ElementType, NumElements); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits