Home
last modified time | relevance | path

Searched refs:SrcType (Results 1 – 24 of 24) sorted by relevance

/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaCast.cpp673 assert((SrcType->isAnyPointerType() || SrcType->isMemberPointerType() || in CastsAwayConstness()
847 SrcPointee = SrcType; in CheckDynamicCast()
854 SrcPointee = SrcType; in CheckDynamicCast()
1111 if (((SrcType->isBlockPointerType() || SrcType->isFunctionPointerType()) && in checkCastFunctionType()
1982 SrcType = Self.Context.getPointerType(SrcType); in TryConstCast()
2055 SrcTy = SrcType; in CheckCompatibleReinterpretCast()
2310 SrcType = Self.Context.getPointerType(SrcType); in TryReinterpretCast()
2316 SrcType = Self.Context.getCanonicalType(SrcType); in TryReinterpretCast()
2886 if ((SrcType->isAnyPointerType() || SrcType->isBlockPointerType()) in DiagnoseBadFunctionCast()
3055 if (!SrcType->isScalarType() && !SrcType->isVectorType() && in CheckCStyleCast()
[all …]
H A DSemaExprObjC.cpp4187 QualType SrcType = castExpr->getType(); in CheckObjCBridgeRelatedCast() local
4191 SrcType = PDecl->getType(); in CheckObjCBridgeRelatedCast()
4195 SrcType = Getter->getReturnType(); in CheckObjCBridgeRelatedCast()
4231 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents()
4248 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4259 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4274 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents()
4288 << SrcType << DestType << Sel << true; in checkObjCBridgeRelatedComponents()
4299 QualType DestType, QualType SrcType, in CheckObjCBridgeRelatedConversions() argument
4329 << SrcType << DestType << ClassMethod->getSelector() << false in CheckObjCBridgeRelatedConversions()
[all …]
H A DSema.cpp574 QualType SrcType, in diagnoseNullableToNonnullConversion() argument
576 std::optional<NullabilityKind> ExprNullability = SrcType->getNullability(); in diagnoseNullableToNonnullConversion()
585 Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType; in diagnoseNullableToNonnullConversion()
H A DSemaExpr.cpp17672 DiagnoseAssignmentEnum(DstType, SrcType, SrcExpr); in DiagnoseAssignmentResult()
17682 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
17692 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
17721 SrcType->isObjCObjectPointerType(); in DiagnoseAssignmentResult()
17725 SrcType = SrcType.getUnqualifiedType(); in DiagnoseAssignmentResult()
17748 if (SrcType->isArrayType()) SrcType = Context.getArrayDecayedType(SrcType); in DiagnoseAssignmentResult()
17752 Qualifiers lhq = SrcType->getPointeeType().getQualifiers(); in DiagnoseAssignmentResult()
17808 if (SrcType->isObjCQualifiedIdType()) { in DiagnoseAssignmentResult()
17810 SrcType->castAs<ObjCObjectPointerType>(); in DiagnoseAssignmentResult()
17871 SecondType = SrcType; in DiagnoseAssignmentResult()
[all …]
H A DSemaStmt.cpp1640 Sema::DiagnoseAssignmentEnum(QualType DstType, QualType SrcType, in DiagnoseAssignmentEnum() argument
1646 if (!Context.hasSameUnqualifiedType(SrcType, DstType) && in DiagnoseAssignmentEnum()
1647 SrcType->isIntegerType()) { in DiagnoseAssignmentEnum()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMachineIRBuilder.h155 case SrcType::Ty_Reg: in addSrcToMIB()
158 case SrcType::Ty_MIB: in addSrcToMIB()
161 case SrcType::Ty_Imm: in addSrcToMIB()
170 case SrcType::Ty_Imm: in getLLTTy()
172 case SrcType::Ty_Reg: in getLLTTy()
174 case SrcType::Ty_MIB: in getLLTTy()
183 case SrcType::Ty_Imm: in getReg()
185 case SrcType::Ty_Reg: in getReg()
187 case SrcType::Ty_MIB: in getReg()
204 case SrcType::Ty_Imm: in getImm()
[all …]
H A DLegalizationArtifactCombiner.h767 LLT SrcType = MRI.getType(SrcReg); in findValueFromExt() local
768 unsigned SrcSize = SrcType.getSizeInBits(); in findValueFromExt()
771 if (!SrcType.isScalar()) in findValueFromExt()
777 if (StartBit == 0 && SrcType.getSizeInBits() == Size) in findValueFromExt()
793 LLT SrcType = MRI.getType(SrcReg); in findValueFromTrunc() local
796 if (!SrcType.isScalar()) in findValueFromTrunc()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DRecordOps.cpp19 auto SrcType = Src.getType().getCanonicalType().getUnqualifiedType(); in copyRecord() local
22 auto SrcDecl = SrcType->getAsCXXRecordDecl(); in copyRecord()
26 SrcType == DstType || in copyRecord()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp919 if (SrcType->isRealFloatingType()) in EmitConversionToBool()
1258 SrcElementType = SrcType; in EmitScalarCast()
1311 if (SrcType->isFixedPointType()) { in EmitScalarConversion()
1326 if (SrcType->isIntegerType() || SrcType->isRealFloatingType()) in EmitScalarConversion()
1337 SrcType = CGF.getContext().getCanonicalType(SrcType); in EmitScalarConversion()
1339 if (SrcType == DstType) return Src; in EmitScalarConversion()
1344 QualType OrigSrcType = SrcType; in EmitScalarConversion()
1417 SrcType.getTypePtr() && in EmitScalarConversion()
1709 SrcType = CGF.getContext().getCanonicalType(SrcType); in VisitConvertVectorExpr()
1711 if (SrcType == DstType) return Src; in VisitConvertVectorExpr()
[all …]
H A DCGExprComplex.cpp85 ComplexPairTy EmitComplexToComplexCast(ComplexPairTy Val, QualType SrcType,
88 ComplexPairTy EmitScalarToComplexCast(llvm::Value *Val, QualType SrcType,
454 QualType SrcType, in EmitComplexToComplexCast() argument
458 SrcType = SrcType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
465 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast()
467 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast()
472 QualType SrcType, in EmitScalarToComplexCast() argument
477 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); in EmitScalarToComplexCast()
H A DCGStmtOpenMP.cpp5962 QualType SrcType, QualType DestType, in convertToScalarValue() argument
5967 return Val.isScalar() ? CGF.EmitScalarConversion(Val.getScalarVal(), SrcType, in convertToScalarValue()
5970 Val.getComplexVal(), SrcType, DestType, Loc); in convertToScalarValue()
5974 convertToComplexValue(CodeGenFunction &CGF, RValue Val, QualType SrcType, in convertToComplexValue() argument
5984 Val.getScalarVal(), SrcType, DestElementType, Loc); in convertToComplexValue()
5989 QualType SrcElementType = SrcType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
H A DCGBuiltin.cpp20140 llvm::Type *SrcType = nullptr; member
20151 SrcType = Src->getType(); in BuiltinAlignArgs()
20152 if (SrcType->isPointerTy()) { in BuiltinAlignArgs()
20155 CGF.CGM.getDataLayout().getIndexTypeSizeInBits(SrcType)); in BuiltinAlignArgs()
20157 assert(SrcType->isIntegerTy()); in BuiltinAlignArgs()
20158 IntType = cast<llvm::IntegerType>(SrcType); in BuiltinAlignArgs()
20172 if (Args.SrcType->isPointerTy()) in EmitBuiltinIsAligned()
20209 Intrinsic::ptrmask, {Args.SrcType, Args.IntType}, in EmitBuiltinAlignTo()
20214 assert(Result->getType() == Args.SrcType); in EmitBuiltinAlignTo()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPreLegalizerCombiner.cpp124 const LLT SrcType = MRI.getType(MI.getOperand(1).getReg()); in matchClampI64ToI16() local
125 if (SrcType != LLT::scalar(64)) in matchClampI64ToI16()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCSEMIRBuilder.cpp88 case SrcOp::SrcType::Ty_Imm: in profileSrcOp()
91 case SrcOp::SrcType::Ty_Predicate: in profileSrcOp()
H A DCombinerHelper.cpp315 LLT SrcType = MRI.getType(Src1); in matchCombineShuffleVector() local
320 unsigned SrcNumElts = SrcType.isVector() ? SrcType.getNumElements() : 1; in matchCombineShuffleVector()
374 UndefReg = Builder.buildUndef(SrcType).getReg(0); in matchCombineShuffleVector()
H A DMachineIRBuilder.cpp1211 assert(SrcOps[0].getSrcOpKind() == SrcOp::SrcType::Ty_Predicate && in buildInstr()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp2374 Type *SrcType = X->getType(); in foldTruncShuffle() local
2375 if (!SrcType->isVectorTy() || !SrcType->isIntOrIntVectorTy() || in foldTruncShuffle()
2376 cast<FixedVectorType>(SrcType)->getNumElements() != in foldTruncShuffle()
2378 SrcType->getScalarSizeInBits() % DestType->getScalarSizeInBits() != 0) in foldTruncShuffle()
2387 SrcType->getScalarSizeInBits() / DestType->getScalarSizeInBits(); in foldTruncShuffle()
H A DInstCombineCompares.cpp3173 Type *SrcType = Bitcast->getSrcTy(); in foldICmpBitCast() local
3178 if (SrcType->isVectorTy() == DstType->isVectorTy() && in foldICmpBitCast()
3179 SrcType->getScalarSizeInBits() == DstType->getScalarSizeInBits()) { in foldICmpBitCast()
3224 if (!(XType->isPPC_FP128Ty() || SrcType->isPPC_FP128Ty())) { in foldICmpBitCast()
3242 !SrcType->isIntOrIntVectorTy()) in foldICmpBitCast()
3285 auto *VecTy = cast<VectorType>(SrcType); in foldICmpBitCast()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DExprCXX.cpp775 QualType SrcType = getSubExpr()->getType(); in isAlwaysNull() local
782 SrcType = SrcType->getPointeeType(); in isAlwaysNull()
786 const auto *SrcRD = SrcType->getAsCXXRecordDecl(); in isAlwaysNull()
H A DExprConstant.cpp2634 QualType SrcType, const APFloat &Value, in HandleFloatToIntCast() argument
2703 QualType SrcType, QualType DestType, in HandleFloatToFloatCast() argument
2715 QualType DestType, QualType SrcType, in HandleIntToIntCast() argument
2729 QualType SrcType, const APSInt &Value, in HandleIntToFloatCast() argument
13875 QualType SrcType = SubExpr->getType(); in VisitCastExpr() local
13953 APFixedPoint Src(Info.Ctx.getFixedPointSemantics(SrcType)); in VisitCastExpr()
13986 return Info.Ctx.getTypeSize(DestType) == Info.Ctx.getTypeSize(SrcType); in VisitCastExpr()
14039 return Success(HandleIntToIntCast(Info, E, DestType, SrcType, in VisitCastExpr()
14056 if (Info.Ctx.getTypeSize(DestType) != Info.Ctx.getTypeSize(SrcType)) in VisitCastExpr()
14067 if (!V.toIntegralConstant(AsInt, SrcType, Info.Ctx)) in VisitCastExpr()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2474 EVT SrcType = CastOp.getValueType(); in performVECTOR_SHUFFLECombine() local
2476 if (!SrcType.is128BitVector() || in performVECTOR_SHUFFLECombine()
2477 SrcType.getVectorNumElements() != DstType.getVectorNumElements()) in performVECTOR_SHUFFLECombine()
2480 SrcType, SDLoc(N), CastOp, DAG.getUNDEF(SrcType), Shuffle->getMask()); in performVECTOR_SHUFFLECombine()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFInstrInfo.td964 class BSWAP<BPFOpClass Class, bits<32> SizeOp, string OpcodeStr, BPFSrcType SrcType, list<dag> Patt…
965 : TYPE_ALU_JMP<BPF_END.Value, SrcType.Value,
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h5448 void diagnoseNullableToNonnullConversion(QualType DstType, QualType SrcType,
6689 void CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType,
10854 QualType DestType, QualType SrcType,
10862 QualType DestType, QualType SrcType,
12857 QualType DstType, QualType SrcType,
12869 void DiagnoseAssignmentEnum(QualType DstType, QualType SrcType,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp2611 if (auto *SrcType = FindTruncSrcType()) { in getAddExpr() local
2618 if (T->getOperand()->getType() != SrcType) { in getAddExpr()
2624 LargeOps.push_back(getAnyExtendExpr(C, SrcType)); in getAddExpr()
2630 if (T->getOperand()->getType() != SrcType) { in getAddExpr()
2636 LargeMulOps.push_back(getAnyExtendExpr(C, SrcType)); in getAddExpr()