From 9d6565a5b1fbc4286d6ee638d8f47a3171a9ed7e Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 15 Feb 2007 02:26:10 +0000 Subject: 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 --- lib/Bytecode/Reader/Reader.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lib/Bytecode/Reader/Reader.cpp') diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index d516910d80..bafe7d3250 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -482,7 +482,7 @@ void BytecodeReader::ParseInstruction(SmallVector &Oprnds, break; } case Instruction::InsertElement: { - const PackedType *PackedTy = dyn_cast(InstTy); + const VectorType *PackedTy = dyn_cast(InstTy); if (!PackedTy || Oprnds.size() != 3) error("Invalid insertelement instruction!"); @@ -496,13 +496,13 @@ void BytecodeReader::ParseInstruction(SmallVector &Oprnds, break; } case Instruction::ShuffleVector: { - const PackedType *PackedTy = dyn_cast(InstTy); + const VectorType *PackedTy = dyn_cast(InstTy); if (!PackedTy || Oprnds.size() != 3) error("Invalid shufflevector instruction!"); Value *V1 = getValue(iType, Oprnds[0]); Value *V2 = getValue(iType, Oprnds[1]); - const PackedType *EltTy = - PackedType::get(Type::Int32Ty, PackedTy->getNumElements()); + const VectorType *EltTy = + VectorType::get(Type::Int32Ty, PackedTy->getNumElements()); Value *V3 = getValue(getTypeSlot(EltTy), Oprnds[2]); if (!ShuffleVectorInst::isValidOperands(V1, V2, V3)) error("Invalid shufflevector instruction!"); @@ -1029,10 +1029,10 @@ const Type *BytecodeReader::ParseType() { Result = ArrayType::get(ElementType, NumElements); break; } - case Type::PackedTyID: { + case Type::VectorTyID: { const Type *ElementType = readType(); unsigned NumElements = read_vbr_uint(); - Result = PackedType::get(ElementType, NumElements); + Result = VectorType::get(ElementType, NumElements); break; } case Type::StructTyID: { @@ -1314,8 +1314,8 @@ Value *BytecodeReader::ParseConstantPoolValue(unsigned TypeID) { break; } - case Type::PackedTyID: { - const PackedType *PT = cast(Ty); + case Type::VectorTyID: { + const VectorType *PT = cast(Ty); unsigned NumElements = PT->getNumElements(); unsigned TypeSlot = getTypeSlot(PT->getElementType()); std::vector Elements; @@ -1323,8 +1323,8 @@ Value *BytecodeReader::ParseConstantPoolValue(unsigned TypeID) { while (NumElements--) // Read all of the elements of the constant. Elements.push_back(getConstantValue(TypeSlot, read_vbr_uint())); - Result = ConstantPacked::get(PT, Elements); - if (Handler) Handler->handleConstantPacked(PT, &Elements[0],Elements.size(), + Result = ConstantVector::get(PT, Elements); + if (Handler) Handler->handleConstantVector(PT, &Elements[0],Elements.size(), TypeSlot, Result); break; } -- cgit v1.2.3-18-g5258