diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-15 03:39:18 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-15 03:39:18 +0000 |
commit | 09575bac2e45bd4d0482d19db619e8d251a4389b (patch) | |
tree | c663b88733121d07ace82b721615431f7ef91c80 /llvm/lib/Bytecode/Reader/Reader.cpp | |
parent | d4a0b7bb7b14fb94d0f3f0dfd8697fa4c82cff53 (diff) | |
download | bcm5719-llvm-09575bac2e45bd4d0482d19db619e8d251a4389b.tar.gz bcm5719-llvm-09575bac2e45bd4d0482d19db619e8d251a4389b.zip |
For PR1195:
Change use of "packed" term to "vector" in comments, strings, variable
names, etc.
llvm-svn: 34300
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Reader/Reader.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index bafe7d32503..200f0d7a2fe 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/lib/Bytecode/Reader/Reader.cpp @@ -482,12 +482,12 @@ void BytecodeReader::ParseInstruction(SmallVector<unsigned, 8> &Oprnds, break; } case Instruction::InsertElement: { - const VectorType *PackedTy = dyn_cast<VectorType>(InstTy); - if (!PackedTy || Oprnds.size() != 3) + const VectorType *VectorTy = dyn_cast<VectorType>(InstTy); + if (!VectorTy || Oprnds.size() != 3) error("Invalid insertelement instruction!"); Value *V1 = getValue(iType, Oprnds[0]); - Value *V2 = getValue(getTypeSlot(PackedTy->getElementType()),Oprnds[1]); + Value *V2 = getValue(getTypeSlot(VectorTy->getElementType()),Oprnds[1]); Value *V3 = getValue(Int32TySlot, Oprnds[2]); if (!InsertElementInst::isValidOperands(V1, V2, V3)) @@ -496,13 +496,13 @@ void BytecodeReader::ParseInstruction(SmallVector<unsigned, 8> &Oprnds, break; } case Instruction::ShuffleVector: { - const VectorType *PackedTy = dyn_cast<VectorType>(InstTy); - if (!PackedTy || Oprnds.size() != 3) + const VectorType *VectorTy = dyn_cast<VectorType>(InstTy); + if (!VectorTy || Oprnds.size() != 3) error("Invalid shufflevector instruction!"); Value *V1 = getValue(iType, Oprnds[0]); Value *V2 = getValue(iType, Oprnds[1]); const VectorType *EltTy = - VectorType::get(Type::Int32Ty, PackedTy->getNumElements()); + VectorType::get(Type::Int32Ty, VectorTy->getNumElements()); Value *V3 = getValue(getTypeSlot(EltTy), Oprnds[2]); if (!ShuffleVectorInst::isValidOperands(V1, V2, V3)) error("Invalid shufflevector instruction!"); |