[llvm-commits] CVS: llvm/tools/llvm-upgrade/UpgradeParser.y
Reid Spencer
reid at x10sys.com
Wed Feb 14 19:40:07 PST 2007
Changes in directory llvm/tools/llvm-upgrade:
UpgradeParser.y updated: 1.66 -> 1.67
---
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: (+4 -4)
UpgradeParser.y | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/tools/llvm-upgrade/UpgradeParser.y
diff -u llvm/tools/llvm-upgrade/UpgradeParser.y:1.66 llvm/tools/llvm-upgrade/UpgradeParser.y:1.67
--- llvm/tools/llvm-upgrade/UpgradeParser.y:1.66 Wed Feb 14 20:26:10 2007
+++ llvm/tools/llvm-upgrade/UpgradeParser.y Wed Feb 14 21:39:18 2007
@@ -999,7 +999,7 @@
// types of its operands.
bool isFP = Ty->isFloatingPoint();
if (const VectorType* PTy = dyn_cast<VectorType>(Ty))
- // If its a packed type we want to use the element type
+ // If its a vector type we want to use the element type
isFP = PTy->getElementType()->isFloatingPoint();
if (isFP)
return Instruction::FDiv;
@@ -1015,7 +1015,7 @@
// types of its operands.
bool isFP = Ty->isFloatingPoint();
if (const VectorType* PTy = dyn_cast<VectorType>(Ty))
- // If its a packed type we want to use the element type
+ // If its a vector type we want to use the element type
isFP = PTy->getElementType()->isFloatingPoint();
// Select correct opcode
if (isFP)
@@ -1841,7 +1841,7 @@
$$.S = $4.S;
delete $4.PAT;
}
- | '<' EUINT64VAL 'x' UpRTypes '>' { // Packed array type?
+ | '<' EUINT64VAL 'x' UpRTypes '>' { // Vector type?
const llvm::Type* ElemTy = $4.PAT->get();
if ((unsigned)$2 != $2)
error("Unsigned result not equal to signed result");
@@ -3112,7 +3112,7 @@
error("Arithmetic operator requires integer, FP, or packed operands");
if (isa<VectorType>(Ty) &&
($1 == URemOp || $1 == SRemOp || $1 == FRemOp || $1 == RemOp))
- error("Remainder not supported on packed types");
+ error("Remainder not supported on vector types");
// Upgrade the opcode from obsolete versions before we do anything with it.
Instruction::BinaryOps Opcode = getBinaryOp($1, Ty, $2.S);
Value* val1 = getVal(Ty, $3);
More information about the llvm-commits
mailing list