Changes in directory llvm/lib/Target/CBackend:
CBackend.cpp updated: 1.325 -> 1.326 --- Log message: For PR1195: http://llvm.org/PR1195 : Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and PackedTyID -> VectorTyID. No functional changes. --- Diffs of the changes: (+9 -9) CBackend.cpp | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) Index: llvm/lib/Target/CBackend/CBackend.cpp diff -u llvm/lib/Target/CBackend/CBackend.cpp:1.325 llvm/lib/Target/CBackend/CBackend.cpp:1.326 --- llvm/lib/Target/CBackend/CBackend.cpp:1.325 Mon Feb 5 14:47:20 2007 +++ llvm/lib/Target/CBackend/CBackend.cpp Wed Feb 14 20:26:10 2007 @@ -151,7 +151,7 @@ void printConstantWithCast(Constant *CPV, unsigned Opcode); bool printConstExprCast(const ConstantExpr *CE); void printConstantArray(ConstantArray *CPA); - void printConstantPacked(ConstantPacked *CP); + void printConstantVector(ConstantVector *CP); // isInlinableInst - Attempt to inline instructions into their uses to build // trees as much as possible. To do this, we have to consistently decide @@ -458,7 +458,7 @@ std::string ptrName = "*" + NameSoFar; if (isa<ArrayType>(PTy->getElementType()) || - isa<PackedType>(PTy->getElementType())) + isa<VectorType>(PTy->getElementType())) ptrName = "(" + ptrName + ")"; return printType(Out, PTy->getElementType(), false, ptrName); @@ -472,8 +472,8 @@ NameSoFar + "[" + utostr(NumElements) + "]"); } - case Type::PackedTyID: { - const PackedType *PTy = cast<PackedType>(Ty); + case Type::VectorTyID: { + const VectorType *PTy = cast<VectorType>(Ty); unsigned NumElements = PTy->getNumElements(); if (NumElements == 0) NumElements = 1; return printType(Out, PTy->getElementType(), false, @@ -563,7 +563,7 @@ } } -void CWriter::printConstantPacked(ConstantPacked *CP) { +void CWriter::printConstantVector(ConstantVector *CP) { Out << '{'; if (CP->getNumOperands()) { Out << ' '; @@ -926,9 +926,9 @@ } break; - case Type::PackedTyID: + case Type::VectorTyID: if (isa<ConstantAggregateZero>(CPV) || isa<UndefValue>(CPV)) { - const PackedType *AT = cast<PackedType>(CPV->getType()); + const VectorType *AT = cast<VectorType>(CPV->getType()); Out << '{'; if (AT->getNumElements()) { Out << ' '; @@ -941,7 +941,7 @@ } Out << " }"; } else { - printConstantPacked(cast<ConstantPacked>(CPV)); + printConstantVector(cast<ConstantVector>(CPV)); } break; @@ -1589,7 +1589,7 @@ Out << " = " ; if (isa<StructType>(I->getInitializer()->getType()) || isa<ArrayType>(I->getInitializer()->getType()) || - isa<PackedType>(I->getInitializer()->getType())) { + isa<VectorType>(I->getInitializer()->getType())) { Out << "{ 0 }"; } else { // Just print it out normally. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits