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 | ac9dcb94dde5f166ee29372385c0e3b695227ab4 (patch) | |
tree | 468a925b8be61cdf917f1203ba57ac2a419b59a6 /lib/Bytecode | |
parent | a85210ac66ef8a60587c3557a41a4e81c8989579 (diff) | |
download | external_llvm-ac9dcb94dde5f166ee29372385c0e3b695227ab4.zip external_llvm-ac9dcb94dde5f166ee29372385c0e3b695227ab4.tar.gz external_llvm-ac9dcb94dde5f166ee29372385c0e3b695227ab4.tar.bz2 |
For PR1195:
Change use of "packed" term to "vector" in comments, strings, variable
names, etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Reader/Analyzer.cpp | 4 | ||||
-rw-r--r-- | lib/Bytecode/Reader/Reader.cpp | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/Bytecode/Reader/Analyzer.cpp b/lib/Bytecode/Reader/Analyzer.cpp index 75b3ca7..aef482a 100644 --- a/lib/Bytecode/Reader/Analyzer.cpp +++ b/lib/Bytecode/Reader/Analyzer.cpp @@ -427,7 +427,7 @@ public: const VectorType* PT, Constant**Elements, unsigned NumElts, unsigned TypeSlot, - Constant* PackedVal) + Constant* VectorVal) { if (os) { *os << " PACKD: "; @@ -439,7 +439,7 @@ public: *os << "\n"; } *os << " Value="; - PackedVal->print(*os); + VectorVal->print(*os); *os << "\n"; } diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index bafe7d3..200f0d7 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/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!"); |