[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Analyzer.cpp Reader.cpp

Reid Spencer reid at x10sys.com
Wed Feb 14 19:40:06 PST 2007



Changes in directory llvm/lib/Bytecode/Reader:

Analyzer.cpp updated: 1.38 -> 1.39
Reader.cpp updated: 1.240 -> 1.241
---
Log message:

For PR1195: http://llvm.org/PR1195 :
Change use of "packed" term to "vector" in comments, strings, variable
names, etc.


---
Diffs of the changes:  (+8 -8)

 Analyzer.cpp |    4 ++--
 Reader.cpp   |   12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)


Index: llvm/lib/Bytecode/Reader/Analyzer.cpp
diff -u llvm/lib/Bytecode/Reader/Analyzer.cpp:1.38 llvm/lib/Bytecode/Reader/Analyzer.cpp:1.39
--- llvm/lib/Bytecode/Reader/Analyzer.cpp:1.38	Wed Feb 14 20:26:09 2007
+++ llvm/lib/Bytecode/Reader/Analyzer.cpp	Wed Feb 14 21:39:18 2007
@@ -427,7 +427,7 @@
     const VectorType* PT,
     Constant**Elements, unsigned NumElts,
     unsigned TypeSlot,
-    Constant* PackedVal)
+    Constant* VectorVal)
   {
     if (os) {
       *os << "      PACKD: ";
@@ -439,7 +439,7 @@
         *os << "\n";
       }
       *os << "        Value=";
-      PackedVal->print(*os);
+      VectorVal->print(*os);
       *os << "\n";
     }
 


Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.240 llvm/lib/Bytecode/Reader/Reader.cpp:1.241
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.240	Wed Feb 14 20:26:09 2007
+++ llvm/lib/Bytecode/Reader/Reader.cpp	Wed Feb 14 21:39:18 2007
@@ -482,12 +482,12 @@
       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 @@
       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!");






More information about the llvm-commits mailing list