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 | 30978078bfa169742f15a0b8cd46aff3f5358552 (patch) | |
tree | 785b3a84fd12d587220151b649678c8589faf7ab /llvm/lib | |
parent | 703e0f86085d6cc9e8c916ea0e163231ea964cf3 (diff) | |
download | bcm5719-llvm-30978078bfa169742f15a0b8cd46aff3f5358552.tar.gz bcm5719-llvm-30978078bfa169742f15a0b8cd46aff3f5358552.zip |
Minor comment cleanups.
llvm-svn: 37321
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/VMCore/Constants.cpp | 10 | ||||
-rw-r--r-- | llvm/lib/VMCore/Type.cpp | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 1115b219948..8a3ad8a31c4 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -770,7 +770,7 @@ SDOperand SelectionDAGLowering::getValue(const Value *V) { Ops.push_back(DAG.getCopyFromReg(DAG.getEntryNode(), InReg++, PTyElementVT)); } else if (PTyElementVT < PTyLegalElementVT) { - // If the register was promoted, use TRUNCATE of FP_ROUND as appropriate. + // If the register was promoted, use TRUNCATE or FP_ROUND as appropriate. for (unsigned i = 0; i != NE; ++i) { SDOperand Op = DAG.getCopyFromReg(DAG.getEntryNode(), InReg++, PTyElementVT); diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index f4dc8a98400..6c34d02c15f 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -532,7 +532,7 @@ GetValueEqualityComparisonCases(TerminatorInst *TI, } -// EliminateBlockCases - Given an vector of bb/value pairs, remove any entries +// EliminateBlockCases - Given a vector of bb/value pairs, remove any entries // in the list that match the specified block. static void EliminateBlockCases(BasicBlock *BB, std::vector<std::pair<ConstantInt*, BasicBlock*> > &Cases) { diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp index e5417f52456..55e1539b5c1 100644 --- a/llvm/lib/VMCore/Constants.cpp +++ b/llvm/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/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index 4bb32bbae89..1d182b7b92f 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/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); |