/llvm-project/clang/lib/Sema/ |
H A D | SemaCast.cpp | 153 void checkAddressSpaceCast(QualType SrcType, QualType DestType); 231 static TryCastResult TryStaticPointerDowncast(Sema &Self, QualType SrcType, 237 static TryCastResult TryStaticDowncast(Sema &Self, CanQualType SrcType, 245 QualType SrcType, 667 /// Check if the pointer conversion from SrcType to DestType casts away 674 CastsAwayConstness(Sema &Self, QualType SrcType, QualType DestType, in CastsAwayConstness() 685 assert((SrcType->isAnyPointerType() || SrcType->isMemberPointerType() || in CastsAwayConstness() 686 SrcType->isBlockPointerType()) && in CastsAwayConstness() 693 QualType UnwrappedSrcType = Self.Context.getCanonicalType(SrcType), in CastsAwayConstness() 670 CastsAwayConstness(Sema & Self,QualType SrcType,QualType DestType,bool CheckCVR,bool CheckObjCLifetime,QualType * TheOffendingSrcType=nullptr,QualType * TheOffendingDestType=nullptr,Qualifiers * CastAwayQualifiers=nullptr) CastsAwayConstness() argument 839 QualType SrcType = Self.Context.getCanonicalType(OrigSrcType); CheckDynamicCast() local 1000 QualType SrcType = SrcExpr->getType(); DiagnoseReinterpretUpDownCast() local 1088 argTypeIsABIEquivalent(QualType SrcType,QualType DestType,ASTContext & Context) argTypeIsABIEquivalent() argument 1117 QualType SrcType = SrcExpr.get()->getType(); checkCastFunctionType() local 1302 IsAddressSpaceConversion(QualType SrcType,QualType DestType) IsAddressSpaceConversion() argument 1377 QualType SrcType = Self.Context.getCanonicalType(SrcExpr.get()->getType()); TryStaticCast() local 1620 TryStaticPointerDowncast(Sema & Self,QualType SrcType,QualType DestType,bool CStyle,SourceRange OpRange,unsigned & msg,CastKind & Kind,CXXCastPath & BasePath) TryStaticPointerDowncast() argument 1654 TryStaticDowncast(Sema & Self,CanQualType SrcType,CanQualType DestType,bool CStyle,SourceRange OpRange,QualType OrigSrcType,QualType OrigDestType,unsigned & msg,CastKind & Kind,CXXCastPath & BasePath) TryStaticDowncast() argument 1766 TryStaticMemberPointerUpcast(Sema & Self,ExprResult & SrcExpr,QualType SrcType,QualType DestType,bool CStyle,SourceRange OpRange,unsigned & msg,CastKind & Kind,CXXCastPath & BasePath) TryStaticMemberPointerUpcast() argument 1944 QualType SrcType = SrcExpr.get()->getType(); TryConstCast() local 2043 CheckCompatibleReinterpretCast(QualType SrcType,QualType DestType,bool IsDereference,SourceRange Range) CheckCompatibleReinterpretCast() argument 2095 QualType SrcType = SrcExpr.get()->getType(); DiagnoseCastOfObjCSEL() local 2116 QualType SrcType = SrcExpr.get()->getType(); DiagnoseCallingConvCast() local 2203 QualType SrcType = SrcExpr->getType(); checkIntToPointerCast() local 2262 QualType SrcType = SrcExpr.get()->getType(); TryReinterpretCast() local 2617 auto SrcType = SrcExpr.get()->getType(); TryAddressSpaceCast() local 2648 checkAddressSpaceCast(QualType SrcType,QualType DestType) checkAddressSpaceCast() argument 2786 QualType SrcType = SrcExpr.get()->getType(); CheckCXXCStyleCast() local 2893 QualType SrcType = SrcExpr.get()->getType(); DiagnoseBadFunctionCast() local 2968 QualType SrcType = SrcExpr.get()->getType(); CheckCStyleCast() local 3263 QualType SrcType = SrcExpr.get()->getType(); CheckBuiltinBitCast() local 3310 QualType SrcType = SrcExpr.get()->getType(); DiagnoseCastQual() local [all...] |
H A D | SemaExprObjC.cpp | 4183 QualType SrcType = castExpr->getType(); in CheckTollFreeBridgeCast() 4187 SrcType = PDecl->getType(); in CheckTollFreeBridgeCast() 4191 SrcType = Getter->getReturnType(); in CheckTollFreeBridgeCast() 4195 ARCConversionTypeClass srcExprACTC = classifyTypeForARCConversion(SrcType); in CheckObjCBridgeRelatedCast() 4199 CheckObjCBridgeRelatedConversions(castExpr->getBeginLoc(), castType, SrcType, in CheckObjCBridgeRelatedCast() 4221 SourceLocation Loc, QualType DestType, QualType SrcType, in CheckTollFreeBridgeStaticCast() 4226 QualType T = CfToNs ? SrcType : DestType; in CheckTollFreeBridgeStaticCast() 4243 << SrcType << DestType; in checkObjCBridgeRelatedComponents() 4254 << SrcType << DestType; in checkObjCBridgeRelatedComponents() 4269 << SrcType << DestTyp in checkObjCBridgeRelatedComponents() 4194 QualType SrcType = castExpr->getType(); CheckObjCBridgeRelatedCast() local 4232 checkObjCBridgeRelatedComponents(SourceLocation Loc,QualType DestType,QualType SrcType,ObjCInterfaceDecl * & RelatedClass,ObjCMethodDecl * & ClassMethod,ObjCMethodDecl * & InstanceMethod,TypedefNameDecl * & TDNDecl,bool CfToNs,bool Diagnose) checkObjCBridgeRelatedComponents() argument 4305 CheckObjCBridgeRelatedConversions(SourceLocation Loc,QualType DestType,QualType SrcType,Expr * & SrcExpr,bool Diagnose) CheckObjCBridgeRelatedConversions() argument [all...] |
H A D | Sema.cpp | 617 QualType SrcType, in diagnoseNullableToNonnullConversion() argument 619 std::optional<NullabilityKind> ExprNullability = SrcType->getNullability(); in diagnoseNullableToNonnullConversion() 628 Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType; in diagnoseNullableToNonnullConversion() 632 void Sema::diagnoseFunctionEffectConversion(QualType DstType, QualType SrcType, in diagnoseFunctionEffectConversion() argument 634 const auto SrcFX = FunctionEffectsRef::get(SrcType); in diagnoseFunctionEffectConversion() 638 if (Diff.shouldDiagnoseConversion(SrcType, SrcFX, DstType, DstFX)) in diagnoseFunctionEffectConversion() 2818 shouldDiagnoseConversion(QualType SrcType,const FunctionEffectsRef & SrcFX,QualType DstType,const FunctionEffectsRef & DstFX) const shouldDiagnoseConversion() argument
|
H A D | SemaExpr.cpp | 16845 QualType DstType, QualType SrcType, in VerifyIntegerConstantExpression() 16863 DiagnoseAssignmentEnum(DstType, SrcType, SrcExpr); in VerifyIntegerConstantExpression() 16873 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); 16883 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in diagnoseFold() 16889 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in VerifyIntegerConstantExpression() 16899 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in VerifyIntegerConstantExpression() 16912 SrcType->isObjCObjectPointerType(); in VerifyIntegerConstantExpression() 16914 SrcType = SrcType.getUnqualifiedType(); in VerifyIntegerConstantExpression() 16917 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstTyp in VerifyIntegerConstantExpression() 16555 DiagnoseAssignmentResult(AssignConvertType ConvTy,SourceLocation Loc,QualType DstType,QualType SrcType,Expr * SrcExpr,AssignmentAction Action,bool * Complained) DiagnoseAssignmentResult() argument [all...] |
H A D | SemaStmt.cpp | 1736 Sema::DiagnoseAssignmentEnum(QualType DstType, QualType SrcType, in ActOnWhileStmt() 1742 if (!Context.hasSameUnqualifiedType(SrcType, DstType) && in ActOnDoStmt() 1743 SrcType->isIntegerType()) { in ActOnDoStmt() 1663 DiagnoseAssignmentEnum(QualType DstType,QualType SrcType,Expr * SrcExpr) DiagnoseAssignmentEnum() argument
|
/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | MachineIRBuilder.h | 151 enum class SrcType { Ty_Reg, Ty_MIB, Ty_Predicate, Ty_Imm }; in SrcOp() 152 SrcOp(Register R) : Reg(R), Ty(SrcType::Ty_Reg) {} 153 SrcOp(const MachineOperand &Op) : Reg(Op.getReg()), Ty(SrcType::Ty_Reg) {} in addSrcToMIB() 154 SrcOp(const MachineInstrBuilder &MIB) : SrcMIB(MIB), Ty(SrcType::Ty_MIB) {} in addSrcToMIB() 155 SrcOp(const CmpInst::Predicate P) : Pred(P), Ty(SrcType::Ty_Predicate) {} in addSrcToMIB() 161 SrcOp(uint64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in addSrcToMIB() 162 SrcOp(int64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in addSrcToMIB() 166 case SrcType::Ty_Predicate: in addSrcToMIB() 169 case SrcType::Ty_Reg: 172 case SrcType in getLLTTy() 140 enum class SrcType { Ty_Reg, Ty_MIB, Ty_Predicate, Ty_Imm }; global() enum [all...] |
H A D | LegalizationArtifactCombiner.h | 790 LLT SrcType = MRI.getType(SrcReg); in findValueFromExt() 791 unsigned SrcSize = SrcType.getSizeInBits(); in findValueFromExt() 794 if (!SrcType.isScalar()) in findValueFromExt() 800 if (StartBit == 0 && SrcType.getSizeInBits() == Size) 816 LLT SrcType = MRI.getType(SrcReg); in findValueFromTrunc() 819 if (!SrcType.isScalar()) 785 LLT SrcType = MRI.getType(SrcReg); findValueFromExt() local 811 LLT SrcType = MRI.getType(SrcReg); findValueFromTrunc() local
|
/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprScalar.cpp | 343 Value *Src, QualType SrcType, QualType DstType, 359 void EmitIntegerTruncationCheck(Value *Src, QualType SrcType, Value *Dst, in ScalarConversionOpts() 365 void EmitIntegerSignChangeCheck(Value *Src, QualType SrcType, Value *Dst, 387 Value *EmitScalarCast(Value *Src, QualType SrcType, QualType DstType, in EmitFloatToBoolConversion() 968 Value *ScalarExprEmitter::EmitConversionToBool(Value *Src, QualType SrcType) { in EmitFloatConversionCheck() 969 assert(SrcType.isCanonical() && "EmitScalarConversion strips typedefs"); in EmitFloatConversionCheck() 971 if (SrcType->isRealFloatingType()) in EmitFloatConversionCheck() 974 if (const MemberPointerType *MPT = dyn_cast<MemberPointerType>(SrcType)) in EmitFloatConversionCheck() 977 assert((SrcType->isIntegerType() || isa<llvm::PointerType>(Src->getType())) && in EmitFloatConversionCheck() 984 return EmitPointerToBoolConversion(Src, SrcType); in EmitFloatConversionCheck() 937 EmitConversionToBool(Value * Src,QualType SrcType) EmitConversionToBool() argument 957 EmitFloatConversionCheck(Value * OrigSrc,QualType OrigSrcType,Value * Src,QualType SrcType,QualType DstType,llvm::Type * DstTy,SourceLocation Loc) EmitFloatConversionCheck() argument 1028 EmitIntegerTruncationCheckHelper(Value * Src,QualType SrcType,Value * Dst,QualType DstType,CGBuilderTy & Builder) EmitIntegerTruncationCheckHelper() argument 1065 PromotionIsPotentiallyEligibleForImplicitIntegerConversionCheck(QualType SrcType,QualType DstType) PromotionIsPotentiallyEligibleForImplicitIntegerConversionCheck() argument 1069 EmitIntegerTruncationCheck(Value * Src,QualType SrcType,Value * Dst,QualType DstType,SourceLocation Loc) EmitIntegerTruncationCheck() argument 1139 EmitIntegerSignChangeCheckHelper(Value * Src,QualType SrcType,Value * Dst,QualType DstType,CGBuilderTy & Builder) EmitIntegerSignChangeCheckHelper() argument 1177 EmitIntegerSignChangeCheck(Value * Src,QualType SrcType,Value * Dst,QualType DstType,SourceLocation Loc) EmitIntegerSignChangeCheck() argument 1264 EmitBitfieldTruncationCheckHelper(Value * Src,QualType SrcType,Value * Dst,QualType DstType,CGBuilderTy & Builder) EmitBitfieldTruncationCheckHelper() argument 1290 EmitBitfieldSignChangeCheckHelper(Value * Src,QualType SrcType,Value * Dst,QualType DstType,CGBuilderTy & Builder) EmitBitfieldSignChangeCheckHelper() argument 1311 EmitBitfieldConversionCheck(Value * Src,QualType SrcType,Value * Dst,QualType DstType,const CGBitFieldInfo & Info,SourceLocation Loc) EmitBitfieldConversionCheck() argument 1390 EmitScalarCast(Value * Src,QualType SrcType,QualType DstType,llvm::Type * SrcTy,llvm::Type * DstTy,ScalarConversionOpts Opts) EmitScalarCast() argument 1451 EmitScalarConversion(Value * Src,QualType SrcType,QualType DstType,SourceLocation Loc,ScalarConversionOpts Opts) EmitScalarConversion() argument 1861 QualType SrcType = E->getSrcExpr()->getType(), VisitConvertVectorExpr() local 2282 const QualType SrcType = E->getType(); VisitCastExpr() local 2533 const QualType SrcType = E->getType(); VisitCastExpr() local 2791 QualType SrcType = E->getType(); EmitScalarPrePostIncDec() local 3648 QualType SrcType = E->getRHS()->getType(); EmitCompoundAssignLValue() local 4772 EmitWithOriginalRHSBitfieldAssignment(const BinaryOperator * E,Value ** Previous,QualType * SrcType) EmitWithOriginalRHSBitfieldAssignment() argument 4818 QualType SrcType = E->getRHS()->getType(); VisitBinAssign() local [all...] |
H A D | CGExprComplex.cpp | 88 ComplexPairTy EmitComplexToComplexCast(ComplexPairTy Val, QualType SrcType, 91 ComplexPairTy EmitScalarToComplexCast(llvm::Value *Val, QualType SrcType, 502 QualType SrcType, in VisitStmtExpr() 506 SrcType = SrcType->castAs<ComplexType>()->getElementType(); 513 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast() 515 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast() 520 QualType SrcType, in EmitComplexToComplexCast() 525 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); 509 EmitComplexToComplexCast(ComplexPairTy Val,QualType SrcType,QualType DestType,SourceLocation Loc) EmitComplexToComplexCast() argument 527 EmitScalarToComplexCast(llvm::Value * Val,QualType SrcType,QualType DestType,SourceLocation Loc) EmitScalarToComplexCast() argument
|
H A D | CGExprConstant.cpp | 1358 static APValue withDestType(ASTContext &Ctx, const Expr *E, QualType SrcType, in EmitArrayInitialization() 1360 if (!Ctx.hasSameType(SrcType, DestType)) { in EmitArrayInitialization() 1262 withDestType(ASTContext & Ctx,const Expr * E,QualType SrcType,QualType DestType,const llvm::APSInt & Value) withDestType() argument
|
H A D | CGStmtOpenMP.cpp | 6144 QualType SrcType, QualType DestType, in emitOMPAtomicRMW() 6149 return Val.isScalar() ? CGF.EmitScalarConversion(Val.getScalarVal(), SrcType, in emitOMPAtomicRMW() 6152 Val.getComplexVal(), SrcType, DestType, Loc); in emitOMPAtomicRMW() 6156 convertToComplexValue(CodeGenFunction &CGF, RValue Val, QualType SrcType, in emitOMPAtomicRMW() 6166 Val.getScalarVal(), SrcType, DestElementType, Loc); in emitOMPAtomicRMW() 6171 QualType SrcElementType = SrcType->castAs<ComplexType>()->getElementType(); in emitOMPAtomicRMW() 5998 convertToScalarValue(CodeGenFunction & CGF,RValue Val,QualType SrcType,QualType DestType,SourceLocation Loc) convertToScalarValue() argument 6010 convertToComplexValue(CodeGenFunction & CGF,RValue Val,QualType SrcType,QualType DestType,SourceLocation Loc) convertToComplexValue() argument
|
/llvm-project/clang/lib/Analysis/FlowSensitive/ |
H A D | RecordOps.cpp | 53 auto SrcType = Src.getType().getCanonicalType().getUnqualifiedType(); in copyRecord() local 56 auto SrcDecl = SrcType->getAsCXXRecordDecl(); in copyRecord() 60 SrcType == DstType || in copyRecord() 72 if (SrcType == DstType || (SrcDecl != nullptr && DstDecl != nullptr && in copyRecord()
|
/llvm-project/llvm/test/LTO/X86/Inputs/ |
H A D | type-mapping-src.ll | 4 %SrcType = type { i8 } 7 @x = external global %SrcType
|
/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUPreLegalizerCombiner.cpp | 121 const LLT SrcType = MRI.getType(MI.getOperand(1).getReg()); in matchClampI64ToI16() 122 if (SrcType != LLT::scalar(64)) in matchClampI64ToI16() local
|
/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | CSEMIRBuilder.cpp | 99 case SrcOp::SrcType::Ty_Imm: in profileSrcOp() 102 case SrcOp::SrcType::Ty_Predicate: in profileSrcOp()
|
/llvm-project/llvm/test/LTO/X86/ |
H A D | type-mapping-bug.ll | 7 ; @x in Src will be linked with this @x, causing SrcType in Src to be mapped
|
/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineVectorOps.cpp | 2463 Type *SrcType = X->getType(); in foldShuffleOfUnaryOps() 2464 if (!SrcType->isVectorTy() || !SrcType->isIntOrIntVectorTy() || in foldShuffleOfUnaryOps() 2465 cast<FixedVectorType>(SrcType)->getNumElements() != in foldShuffleOfUnaryOps() 2467 SrcType->getScalarSizeInBits() % DestType->getScalarSizeInBits() != 0) in foldShuffleOfUnaryOps() 2476 SrcType->getScalarSizeInBits() / DestType->getScalarSizeInBits(); in foldShuffleOfUnaryOps() 2397 Type *SrcType = X->getType(); foldTruncShuffle() local
|
H A D | InstCombineCompares.cpp | 3382 Type *SrcType = Bitcast->getSrcTy(); in foldICmpBitCast() 3387 if (SrcType->isVectorTy() == DstType->isVectorTy() && in foldICmpBitCast() 3388 SrcType->getScalarSizeInBits() == DstType->getScalarSizeInBits()) { in foldICmpBitCast() 3433 if (!(XType->isPPC_FP128Ty() || SrcType->isPPC_FP128Ty())) { in foldICmpInstWithConstant() 3448 Type *FPType = SrcType->getScalarType(); in foldICmpInstWithConstant() 3465 !SrcType->isIntOrIntVectorTy()) in foldICmpBinOpEqualityWithConstant() 3508 auto *VecTy = cast<VectorType>(SrcType); in foldICmpBinOpEqualityWithConstant() 3268 Type *SrcType = Bitcast->getSrcTy(); foldICmpBitCast() local
|
/llvm-project/clang/include/clang/Sema/ |
H A D | SemaObjC.h | 783 QualType SrcType, 791 QualType SrcType, Expr *&SrcExpr,
|
H A D | Sema.h | 801 void diagnoseNullableToNonnullConversion(QualType DstType, QualType SrcType, 808 void diagnoseFunctionEffectConversion(QualType DstType, QualType SrcType, in getCurLexicalContext() 2112 void CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType, 7682 QualType DstType, QualType SrcType, 10749 void DiagnoseAssignmentEnum(QualType DstType, QualType SrcType, 15154 bool shouldDiagnoseConversion(QualType SrcType,
|
/llvm-project/clang/lib/AST/ |
H A D | ExprCXX.cpp | 824 QualType SrcType = getSubExpr()->getType(); in isAlwaysNull() 831 SrcType = SrcType->getPointeeType(); in isAlwaysNull() 835 const auto *SrcRD = SrcType->getAsCXXRecordDecl(); in isAlwaysNull() 822 QualType SrcType = getSubExpr()->getType(); isAlwaysNull() local
|
H A D | ExprConstant.cpp | 2778 QualType SrcType, const APFloat &Value, in CheckedIntArithmetic() 2847 QualType SrcType, QualType DestType, in handleIntIntBinOp() 2863 QualType DestType, QualType SrcType, in handleIntIntBinOp() 2877 QualType SrcType, const APSInt &Value, in handleIntIntBinOp() 14990 QualType SrcType = SubExpr->getType(); 15069 APFixedPoint Src(Info.Ctx.getFixedPointSemantics(SrcType)); in VisitCastExpr() 15100 return Info.Ctx.getTypeSize(DestType) <= Info.Ctx.getTypeSize(SrcType); in VisitCastExpr() 15102 return Info.Ctx.getTypeSize(DestType) == Info.Ctx.getTypeSize(SrcType); in VisitCastExpr() 15153 return Success(HandleIntToIntCast(Info, E, DestType, SrcType, in VisitCastExpr() 15170 if (Info.Ctx.getTypeSize(DestType) != Info.Ctx.getTypeSize(SrcType)) in VisitCastExpr() 2641 HandleFloatToIntCast(EvalInfo & Info,const Expr * E,QualType SrcType,const APFloat & Value,QualType DestType,APSInt & Result) HandleFloatToIntCast() argument 2710 HandleFloatToFloatCast(EvalInfo & Info,const Expr * E,QualType SrcType,QualType DestType,APFloat & Result) HandleFloatToFloatCast() argument 2726 HandleIntToIntCast(EvalInfo & Info,const Expr * E,QualType DestType,QualType SrcType,const APSInt & Value) HandleIntToIntCast() argument 2740 HandleIntToFloatCast(EvalInfo & Info,const Expr * E,const FPOptions FPO,QualType SrcType,const APSInt & Value,QualType DestType,APFloat & Result) HandleIntToFloatCast() argument 14213 QualType SrcType = SubExpr->getType(); VisitCastExpr() local [all...] |
/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyISelLowering.cpp | 2716 EVT SrcType = CastOp.getValueType(); in extractSubVector() 2718 if (!SrcType.is128BitVector() || in extractSubVector() 2719 SrcType.getVectorNumElements() != DstType.getVectorNumElements()) 2722 SrcType, SDLoc(N), CastOp, DAG.getUNDEF(SrcType), Shuffle->getMask()); 2490 EVT SrcType = CastOp.getValueType(); performVECTOR_SHUFFLECombine() local
|
/llvm-project/llvm/lib/Target/BPF/ |
H A D | BPFInstrInfo.td | 1070 class BSWAP<BPFOpClass Class, bits<32> SizeOp, string OpcodeStr, BPFSrcType SrcType, list<dag> Pattern> 1071 : TYPE_ALU_JMP<BPF_END.Value, SrcType.Value,
|
/llvm-project/llvm/include/llvm/IR/ |
H A D | PatternMatch.h | 2034 Type *SrcType = I->getSrcTy(); in m_SIToFP() 2038 if (SrcType->isVectorTy() != DstType->isVectorTy()) in m_FPToUI() 2040 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcType); 1910 Type *SrcType = I->getSrcTy(); match() local
|