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 | |
parent | 237898ac1f6f6d1915282cc3afaa3c36435e76c0 (diff) |
Minor comment cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37321 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 2 | ||||
-rw-r--r-- | include/llvm/Constants.h | 8 | ||||
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 2 | ||||
-rw-r--r-- | lib/VMCore/Constants.cpp | 10 | ||||
-rw-r--r-- | lib/VMCore/Type.cpp | 2 |
6 files changed, 13 insertions, 13 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index ebc07560fd..23682c765c 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -249,7 +249,7 @@ namespace ISD { /// VINSERT_VECTOR_ELT(VECTOR, VAL, IDX, COUNT,TYPE) - Given a vector /// VECTOR, an element ELEMENT, and a (potentially variable) index IDX, - /// return an vector with the specified element of VECTOR replaced with VAL. + /// return a vector with the specified element of VECTOR replaced with VAL. /// COUNT and TYPE specify the type of vector, as is standard for V* nodes. VINSERT_VECTOR_ELT, diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 2bec1d42ab..c14d25d676 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -399,14 +399,14 @@ public: return get(std::vector<Constant*>(Vals, Vals+NumVals)); } - /// getType - Specialize the getType() method to always return an VectorType, + /// getType - Specialize the getType() method to always return a VectorType, /// which reduces the amount of casting needed in parts of the compiler. /// inline const VectorType *getType() const { return reinterpret_cast<const VectorType*>(Value::getType()); } - /// @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 static ConstantVector *getAllOnesValue(const VectorType *Ty); @@ -416,7 +416,7 @@ public: /// created as ConstantAggregateZero objects. virtual bool isNullValue() const { return false; } - /// 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. @@ -631,7 +631,7 @@ public: static Constant *getShuffleVector(Constant *V1, Constant *V2, Constant *Mask); /// Floating point negation must be implemented with f(x) = -0.0 - x. This - /// method returns the negative zero constant for floating point or packed + /// method returns the negative zero constant for floating point or vector /// floating point types; for all other types, it returns the null value. static Constant *getZeroValueForNegationExpr(const Type *Ty); diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 1115b21994..8a3ad8a31c 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/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/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index f4dc8a9840..6c34d02c15 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/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/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index e5417f5245..55e1539b5c 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 4bb32bbae8..1d182b7b92 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); |