Lines Matching refs:DstType

303                                 Value *Src, QualType SrcType, QualType DstType,
319 QualType DstType, SourceLocation Loc);
325 QualType DstType, SourceLocation Loc);
346 Value *EmitScalarCast(Value *Src, QualType SrcType, QualType DstType,
937 QualType DstType, llvm::Type *DstTy, SourceLocation Loc) {
953 unsigned Width = CGF.getContext().getIntWidth(DstType);
954 bool Unsigned = DstType->isUnsignedIntegerOrEnumerationType();
998 CGF.EmitCheckTypeDescriptor(DstType)};
1008 QualType DstType, CGBuilderTy &Builder) {
1020 bool DstSigned = DstType->isSignedIntegerOrEnumerationType();
1044 QualType SrcType, QualType DstType) {
1045 return SrcType->isIntegerType() && DstType->isIntegerType();
1049 Value *Dst, QualType DstType,
1057 DstType))
1066 assert(!DstType->isBooleanType() && "we should not get here with booleans.");
1072 bool DstSigned = DstType->isSignedIntegerOrEnumerationType();
1082 EmitIntegerTruncationCheckHelper(Src, SrcType, Dst, DstType, Builder);
1091 CGF.EmitCheckTypeDescriptor(DstType),
1102 QualType DstType, CGBuilderTy &Builder) {
1110 bool DstSigned = DstType->isSignedIntegerOrEnumerationType();
1144 llvm::Value *DstIsNegative = EmitIsNegativeTest(Dst, DstType, "dst");
1158 Value *Dst, QualType DstType,
1169 DstType))
1173 bool DstSigned = DstType->isSignedIntegerOrEnumerationType();
1214 Check = EmitIntegerSignChangeCheckHelper(Src, SrcType, Dst, DstType, Builder);
1224 EmitIntegerTruncationCheckHelper(Src, SrcType, Dst, DstType, Builder);
1232 CGF.EmitCheckTypeDescriptor(DstType),
1240 QualType DstType, llvm::Type *SrcTy,
1248 if (SrcType->isMatrixType() && DstType->isMatrixType()) {
1252 DstElementType = DstType->castAs<MatrixType>()->getElementType();
1254 assert(!SrcType->isMatrixType() && !DstType->isMatrixType() &&
1259 DstElementType = DstType;
1301 QualType DstType,
1312 if (DstType->isBooleanType())
1319 if (DstType->isFixedPointType() || DstType->isIntegerType() ||
1320 DstType->isRealFloatingType())
1321 return EmitFixedPointConversion(Src, SrcType, DstType, Loc);
1325 } else if (DstType->isFixedPointType()) {
1328 return EmitFixedPointConversion(Src, SrcType, DstType, Loc);
1335 QualType NoncanonicalDstType = DstType;
1338 DstType = CGF.getContext().getCanonicalType(DstType);
1339 if (SrcType == DstType) return Src;
1341 if (DstType->isVoidType()) return nullptr;
1348 if (DstType->isBooleanType())
1351 llvm::Type *DstTy = ConvertType(DstType);
1413 if (DstType->isExtVectorType() && !SrcType->isVectorType()) {
1416 assert(DstType->castAs<ExtVectorType>()->getElementType().getTypePtr() ==
1425 if (SrcType->isMatrixType() && DstType->isMatrixType())
1426 return EmitScalarCast(Src, SrcType, DstType, SrcTy, DstTy, Opts);
1476 EmitFloatConversionCheck(OrigSrc, OrigSrcType, Src, SrcType, DstType, DstTy,
1480 if (DstType->isHalfType() && !CGF.getContext().getLangOpts().NativeHalfType) {
1494 Res = EmitScalarCast(Src, SrcType, DstType, SrcTy, DstTy, Opts);
1705 DstType = E->getType();
1710 DstType = CGF.getContext().getCanonicalType(DstType);
1711 if (SrcType == DstType) return Src;
1715 assert(DstType->isVectorType() &&
1719 llvm::Type *DstTy = ConvertType(DstType);
1726 DstEltType = DstType->castAs<VectorType>()->getElementType();