mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
rename PT -> VT for VectorTypes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47805 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c8b6d339d7
commit
0a3d4d971d
@ -518,10 +518,9 @@ std::ostream &CWriter::printType(std::ostream &Out, const Type *Ty,
|
||||
}
|
||||
|
||||
case Type::VectorTyID: {
|
||||
const VectorType *PTy = cast<VectorType>(Ty);
|
||||
unsigned NumElements = PTy->getNumElements();
|
||||
if (NumElements == 0) NumElements = 1;
|
||||
return printType(Out, PTy->getElementType(), false,
|
||||
const VectorType *VTy = cast<VectorType>(Ty);
|
||||
unsigned NumElements = VTy->getNumElements();
|
||||
return printType(Out, VTy->getElementType(), false,
|
||||
NameSoFar + "[" + utostr(NumElements) + "]");
|
||||
}
|
||||
|
||||
@ -972,8 +971,8 @@ void CWriter::printConstant(Constant *CPV) {
|
||||
}
|
||||
|
||||
case Type::ArrayTyID:
|
||||
if (const ConstantArray *CA = cast<ConstantArray>(CPV)) {
|
||||
printConstantVector(CA);
|
||||
if (ConstantArray *CA = cast<ConstantArray>(CPV)) {
|
||||
printConstantArray(CA);
|
||||
} else {
|
||||
assert(isa<ConstantAggregateZero>(CPV) || isa<UndefValue>(CPV));
|
||||
const ArrayType *AT = cast<ArrayType>(CPV->getType());
|
||||
@ -992,7 +991,7 @@ void CWriter::printConstant(Constant *CPV) {
|
||||
break;
|
||||
|
||||
case Type::VectorTyID:
|
||||
if (const ConstantVector *CV = cast<ConstantVector>(CPV)) {
|
||||
if (ConstantVector *CV = cast<ConstantVector>(CPV)) {
|
||||
printConstantVector(CV);
|
||||
} else {
|
||||
assert(isa<ConstantAggregateZero>(CPV) || isa<UndefValue>(CPV));
|
||||
@ -1000,7 +999,7 @@ void CWriter::printConstant(Constant *CPV) {
|
||||
Out << "{ ";
|
||||
Constant *CZ = Constant::getNullValue(VT->getElementType());
|
||||
printConstant(CZ);
|
||||
for (unsigned i = 1, e = AT->getNumElements(); i != e; ++i) {
|
||||
for (unsigned i = 1, e = VT->getNumElements(); i != e; ++i) {
|
||||
Out << ", ";
|
||||
printConstant(CZ);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user