diff options
author | Dan Gohman <gohman@apple.com> | 2007-05-24 14:36:04 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-05-24 14:36:04 +0000 |
commit | fa73ea2d9fd785a214256ca44488407b26c5a3db (patch) | |
tree | e2276b2aa3601c47a2efa077659be354720dbb97 /lib/VMCore | |
parent | 237898ac1f6f6d1915282cc3afaa3c36435e76c0 (diff) | |
download | external_llvm-fa73ea2d9fd785a214256ca44488407b26c5a3db.zip external_llvm-fa73ea2d9fd785a214256ca44488407b26c5a3db.tar.gz external_llvm-fa73ea2d9fd785a214256ca44488407b26c5a3db.tar.bz2 |
Minor comment cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37321 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Constants.cpp | 10 | ||||
-rw-r--r-- | lib/VMCore/Type.cpp | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index e5417f5..55e1539 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -130,14 +130,14 @@ ConstantInt *ConstantInt::getAllOnesValue(const Type *Ty) { 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 @@ ConstantVector::ConstantVector(const VectorType *T, 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 @@ static ManagedStatic<ValueMap<std::vector<Constant*>, VectorType, 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 @@ void ConstantVector::destroyConstant() { 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. diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 4bb32bb..1d182b7 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -1181,7 +1181,7 @@ static ManagedStatic<TypeMap<VectorValType, VectorType> > VectorTypes; 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); |