diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-15 02:26:10 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-15 02:26:10 +0000 |
| commit | 9d6565a5b1fbc4286d6ee638d8f47a3171a9ed7e (patch) | |
| tree | 6bac879128a02cb08acd536416a5f2d32fb465a7 /lib/Target/CBackend | |
| parent | b7d61101b1a9e28541470e05af1321fea76f08e5 (diff) | |
| download | external_llvm-9d6565a5b1fbc4286d6ee638d8f47a3171a9ed7e.zip external_llvm-9d6565a5b1fbc4286d6ee638d8f47a3171a9ed7e.tar.gz external_llvm-9d6565a5b1fbc4286d6ee638d8f47a3171a9ed7e.tar.bz2 | |
For PR1195:
Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and
PackedTyID -> VectorTyID. No functional changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend')
| -rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index ffa3b1e..460bf66 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -151,7 +151,7 @@ namespace { 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::ostream &CWriter::printType(std::ostream &Out, const Type *Ty, 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 @@ std::ostream &CWriter::printType(std::ostream &Out, const Type *Ty, 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::printConstantArray(ConstantArray *CPA) { } } -void CWriter::printConstantPacked(ConstantPacked *CP) { +void CWriter::printConstantVector(ConstantVector *CP) { Out << '{'; if (CP->getNumOperands()) { Out << ' '; @@ -926,9 +926,9 @@ void CWriter::printConstant(Constant *CPV) { } 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 @@ void CWriter::printConstant(Constant *CPV) { } Out << " }"; } else { - printConstantPacked(cast<ConstantPacked>(CPV)); + printConstantVector(cast<ConstantVector>(CPV)); } break; @@ -1589,7 +1589,7 @@ bool CWriter::doInitialization(Module &M) { 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. |
