Lines Matching refs:SrcTy

150   Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy);
156 QualType SrcTy, QualType DstTy);
606 llvm::Type *SrcTy = Src->getType(); in EmitFloatConversionCheck() local
609 if (llvm::IntegerType *IntTy = dyn_cast<llvm::IntegerType>(SrcTy)) { in EmitFloatConversionCheck()
746 llvm::Type *SrcTy = Src->getType(); in EmitScalarConversion() local
775 SrcTy = CGF.FloatTy; in EmitScalarConversion()
780 if (SrcTy == DstTy) in EmitScalarConversion()
788 if (isa<llvm::PointerType>(SrcTy)) in EmitScalarConversion()
802 if (isa<llvm::PointerType>(SrcTy)) { in EmitScalarConversion()
820 if (isa<llvm::VectorType>(SrcTy) || in EmitScalarConversion()
838 if (SrcTy->isFloatingPointTy()) { in EmitScalarConversion()
843 CGF.CGM.getIntrinsic(llvm::Intrinsic::convert_to_fp16, SrcTy), Src); in EmitScalarConversion()
850 if (isa<llvm::IntegerType>(SrcTy)) { in EmitScalarConversion()
859 assert(SrcTy->isFloatingPointTy() && "Unknown real conversion"); in EmitScalarConversion()
865 assert(SrcTy->isFloatingPointTy() && DstTy->isFloatingPointTy() && in EmitScalarConversion()
867 if (DstTy->getTypeID() < SrcTy->getTypeID()) in EmitScalarConversion()
892 QualType SrcTy, QualType DstTy) { in EmitComplexToScalarConversion() argument
894 SrcTy = SrcTy->castAs<ComplexType>()->getElementType(); in EmitComplexToScalarConversion()
899 Src.first = EmitScalarConversion(Src.first, SrcTy, DstTy); in EmitComplexToScalarConversion()
900 Src.second = EmitScalarConversion(Src.second, SrcTy, DstTy); in EmitComplexToScalarConversion()
908 return EmitScalarConversion(Src.first, SrcTy, DstTy); in EmitComplexToScalarConversion()
1067 llvm::Type *SrcTy = Src->getType(); in VisitConvertVectorExpr() local
1071 if (SrcTy == DstTy) in VisitConvertVectorExpr()
1077 assert(SrcTy->isVectorTy() && in VisitConvertVectorExpr()
1082 llvm::Type *SrcEltTy = SrcTy->getVectorElementType(), in VisitConvertVectorExpr()
1089 llvm::Value *Zero = llvm::Constant::getNullValue(SrcTy); in VisitConvertVectorExpr()
1379 llvm::Type *SrcTy = Src->getType(); in VisitCastExpr() local
1381 if (SrcTy->isPtrOrPtrVectorTy() && DstTy->isPtrOrPtrVectorTy() && in VisitCastExpr()
1382 SrcTy->getPointerAddressSpace() != DstTy->getPointerAddressSpace()) { in VisitCastExpr()
3399 llvm::Type *SrcTy = Src->getType(); in VisitAsTypeExpr() local
3400 if (isa<llvm::VectorType>(DstTy) && isa<llvm::VectorType>(SrcTy)) { in VisitAsTypeExpr()
3402 unsigned numElementsSrc = cast<llvm::VectorType>(SrcTy)->getNumElements(); in VisitAsTypeExpr()
3410 cast<llvm::VectorType>(SrcTy)->getElementType(); in VisitAsTypeExpr()
3462 Value *CodeGenFunction::EmitScalarConversion(Value *Src, QualType SrcTy, in EmitScalarConversion() argument
3464 assert(hasScalarEvaluationKind(SrcTy) && hasScalarEvaluationKind(DstTy) && in EmitScalarConversion()
3466 return ScalarExprEmitter(*this).EmitScalarConversion(Src, SrcTy, DstTy); in EmitScalarConversion()
3473 QualType SrcTy, in EmitComplexToScalarConversion() argument
3475 assert(SrcTy->isAnyComplexType() && hasScalarEvaluationKind(DstTy) && in EmitComplexToScalarConversion()
3477 return ScalarExprEmitter(*this).EmitComplexToScalarConversion(Src, SrcTy, in EmitComplexToScalarConversion()