mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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
This commit is contained in:
@@ -999,7 +999,7 @@ getBinaryOp(BinaryOps op, const Type *Ty, Signedness Sign) {
|
||||
// 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 @@ getBinaryOp(BinaryOps op, const Type *Ty, Signedness Sign) {
|
||||
// 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 @@ UpRTypes
|
||||
$$.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 @@ InstVal
|
||||
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);
|
||||
|
@@ -338,7 +338,7 @@ CppWriter::getCppName(const Type* Ty)
|
||||
case Type::ArrayTyID: prefix = "ArrayTy_"; break;
|
||||
case Type::PointerTyID: prefix = "PointerTy_"; break;
|
||||
case Type::OpaqueTyID: prefix = "OpaqueTy_"; break;
|
||||
case Type::VectorTyID: prefix = "PackedTy_"; break;
|
||||
case Type::VectorTyID: prefix = "VectorTy_"; break;
|
||||
default: prefix = "OtherTy_"; break; // prevent breakage
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user