================ @@ -10014,14 +10023,33 @@ bool ASTContext::areCompatibleRVVTypes(QualType FirstType, BuiltinVectorTypeInfo Info = getBuiltinVectorTypeInfo(BT); return FirstType->isRVVVLSBuiltinType() && Info.ElementType == BoolTy && - getTypeSize(SecondType) == getRVVTypeSize(*this, BT); + getTypeSize(SecondType) == ((getRVVTypeSize(*this, BT))); + } + if (VT->getVectorKind() == VectorKind::RVVFixedLengthMask_1) { + BuiltinVectorTypeInfo Info = getBuiltinVectorTypeInfo(BT); + return FirstType->isRVVVLSBuiltinType() && + Info.ElementType == BoolTy && + getTypeSize(SecondType) == ((getRVVTypeSize(*this, BT) * 8)); + } + if (VT->getVectorKind() == VectorKind::RVVFixedLengthMask_2) { + BuiltinVectorTypeInfo Info = getBuiltinVectorTypeInfo(BT); + return FirstType->isRVVVLSBuiltinType() && + Info.ElementType == BoolTy && + getTypeSize(SecondType) == ((getRVVTypeSize(*this, BT)) * 4); + } + if (VT->getVectorKind() == VectorKind::RVVFixedLengthMask_4) { + BuiltinVectorTypeInfo Info = getBuiltinVectorTypeInfo(BT); + return FirstType->isRVVVLSBuiltinType() && + Info.ElementType == BoolTy && + getTypeSize(SecondType) == ((getRVVTypeSize(*this, BT)) * 2); } if (VT->getVectorKind() == VectorKind::RVVFixedLengthData || - VT->getVectorKind() == VectorKind::Generic) + VT->getVectorKind() == VectorKind::Generic) { ---------------- topperc wrote:
Curly braces aren't supposed to be used on single line bodies per coding standards https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements https://github.com/llvm/llvm-project/pull/100110 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits