Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCast.cpp154 void checkAddressSpaceCast(QualType SrcType, QualType DestType);
232 static TryCastResult TryStaticPointerDowncast(Sema &Self, QualType SrcType,
238 static TryCastResult TryStaticDowncast(Sema &Self, CanQualType SrcType,
246 QualType SrcType,
670 CastsAwayConstness(Sema &Self, QualType SrcType, QualType DestType, in CastsAwayConstness() argument
681 assert((SrcType->isAnyPointerType() || SrcType->isMemberPointerType() || in CastsAwayConstness()
682 SrcType->isBlockPointerType()) && in CastsAwayConstness()
689 QualType UnwrappedSrcType = Self.Context.getCanonicalType(SrcType), in CastsAwayConstness()
839 QualType SrcType = Self.Context.getCanonicalType(OrigSrcType); in CheckDynamicCast() local
842 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast()
[all …]
H A DSemaExprObjC.cpp4194 QualType SrcType = castExpr->getType(); in CheckObjCBridgeRelatedCast() local
4198 SrcType = PDecl->getType(); in CheckObjCBridgeRelatedCast()
4202 SrcType = Getter->getReturnType(); in CheckObjCBridgeRelatedCast()
4206 ARCConversionTypeClass srcExprACTC = classifyTypeForARCConversion(SrcType); in CheckObjCBridgeRelatedCast()
4210 CheckObjCBridgeRelatedConversions(castExpr->getBeginLoc(), castType, SrcType, in CheckObjCBridgeRelatedCast()
4232 SourceLocation Loc, QualType DestType, QualType SrcType, in checkObjCBridgeRelatedComponents() argument
4237 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents()
4254 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4265 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4280 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents()
[all …]
H A DSema.cpp619 QualType SrcType, in diagnoseNullableToNonnullConversion() argument
621 std::optional<NullabilityKind> ExprNullability = SrcType->getNullability(); in diagnoseNullableToNonnullConversion()
630 Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType; in diagnoseNullableToNonnullConversion()
634 void Sema::diagnoseFunctionEffectConversion(QualType DstType, QualType SrcType, in diagnoseFunctionEffectConversion() argument
636 const auto SrcFX = FunctionEffectsRef::get(SrcType); in diagnoseFunctionEffectConversion()
640 if (Diff.shouldDiagnoseConversion(SrcType, SrcFX, DstType, DstFX)) in diagnoseFunctionEffectConversion()
2820 QualType SrcType, const FunctionEffectsRef &SrcFX, QualType DstType, in shouldDiagnoseConversion() argument
H A DSemaExpr.cpp16598 QualType DstType, QualType SrcType, in DiagnoseAssignmentResult() argument
16616 DiagnoseAssignmentEnum(DstType, SrcType, SrcExpr); in DiagnoseAssignmentResult()
16626 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
16636 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
16642 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
16652 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
16665 SrcType->isObjCObjectPointerType(); in DiagnoseAssignmentResult()
16667 SrcType = SrcType.getUnqualifiedType(); in DiagnoseAssignmentResult()
16670 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
16692 if (SrcType->isArrayType()) SrcType = Context.getArrayDecayedType(SrcType); in DiagnoseAssignmentResult()
[all …]
H A DSemaStmt.cpp1663 Sema::DiagnoseAssignmentEnum(QualType DstType, QualType SrcType, in DiagnoseAssignmentEnum() argument
1669 if (!Context.hasSameUnqualifiedType(SrcType, DstType) && in DiagnoseAssignmentEnum()
1670 SrcType->isIntegerType()) { in DiagnoseAssignmentEnum()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp317 Value *Src, QualType SrcType, QualType DstType,
333 void EmitIntegerTruncationCheck(Value *Src, QualType SrcType, Value *Dst,
339 void EmitIntegerSignChangeCheck(Value *Src, QualType SrcType, Value *Dst,
361 Value *EmitScalarCast(Value *Src, QualType SrcType, QualType DstType,
938 Value *ScalarExprEmitter::EmitConversionToBool(Value *Src, QualType SrcType) { in EmitConversionToBool() argument
939 assert(SrcType.isCanonical() && "EmitScalarConversion strips typedefs"); in EmitConversionToBool()
941 if (SrcType->isRealFloatingType()) in EmitConversionToBool()
944 if (const MemberPointerType *MPT = dyn_cast<MemberPointerType>(SrcType)) in EmitConversionToBool()
947 assert((SrcType->isIntegerType() || isa<llvm::PointerType>(Src->getType())) && in EmitConversionToBool()
954 return EmitPointerToBoolConversion(Src, SrcType); in EmitConversionToBool()
[all …]
H A DCGExprComplex.cpp90 ComplexPairTy EmitComplexToComplexCast(ComplexPairTy Val, QualType SrcType,
93 ComplexPairTy EmitScalarToComplexCast(llvm::Value *Val, QualType SrcType,
517 QualType SrcType, in EmitComplexToComplexCast() argument
521 SrcType = SrcType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
528 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast()
530 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast()
535 QualType SrcType, in EmitScalarToComplexCast() argument
540 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); in EmitScalarToComplexCast()
H A DItaniumCXXABI.cpp940 QualType SrcType = E->getSubExpr()->getType(); in EmitMemberPointerConversion() local
941 assert(SrcType->isMemberFunctionPointerType()); in EmitMemberPointerConversion()
942 const auto &CurAuthInfo = CGM.getMemberFunctionPointerAuthInfo(SrcType); in EmitMemberPointerConversion()
963 CGF.emitPointerAuthResign(MemFnPtr, SrcType, CurAuthInfo, NewAuthInfo, in EmitMemberPointerConversion()
1022 QualType SrcType, CodeGenModule &CGM) { in pointerAuthResignMemberFunctionPointer() argument
1024 SrcType->isMemberFunctionPointerType() && in pointerAuthResignMemberFunctionPointer()
1026 if (DestType == SrcType) in pointerAuthResignMemberFunctionPointer()
1030 const auto &CurAuthInfo = CGM.getMemberFunctionPointerAuthInfo(SrcType); in pointerAuthResignMemberFunctionPointer()
1227 QualType SrcType = getContext().getMemberPointerType( in EmitMemberPointer() local
1229 return pointerAuthResignMemberFunctionPointer(Src, MPType, SrcType, CGM); in EmitMemberPointer()
H A DCGExprConstant.cpp1273 static APValue withDestType(ASTContext &Ctx, const Expr *E, QualType SrcType, in withDestType() argument
1275 if (!Ctx.hasSameType(SrcType, DestType)) { in withDestType()
H A DCGStmtOpenMP.cpp6016 QualType SrcType, QualType DestType, in convertToScalarValue() argument
6021 return Val.isScalar() ? CGF.EmitScalarConversion(Val.getScalarVal(), SrcType, in convertToScalarValue()
6024 Val.getComplexVal(), SrcType, DestType, Loc); in convertToScalarValue()
6028 convertToComplexValue(CodeGenFunction &CGF, RValue Val, QualType SrcType, in convertToComplexValue() argument
6038 Val.getScalarVal(), SrcType, DestElementType, Loc); in convertToComplexValue()
6043 QualType SrcElementType = SrcType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DRecordOps.cpp53 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()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMachineIRBuilder.h140 enum class SrcType { Ty_Reg, Ty_MIB, Ty_Predicate, Ty_Imm }; enum
141 SrcOp(Register R) : Reg(R), Ty(SrcType::Ty_Reg) {} in SrcOp()
142 SrcOp(const MachineOperand &Op) : Reg(Op.getReg()), Ty(SrcType::Ty_Reg) {} in SrcOp()
143 SrcOp(const MachineInstrBuilder &MIB) : SrcMIB(MIB), Ty(SrcType::Ty_MIB) {} in SrcOp()
144 SrcOp(const CmpInst::Predicate P) : Pred(P), Ty(SrcType::Ty_Predicate) {} in SrcOp()
150 SrcOp(uint64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in SrcOp()
151 SrcOp(int64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in SrcOp()
155 case SrcType::Ty_Predicate: in addSrcToMIB()
158 case SrcType::Ty_Reg: in addSrcToMIB()
161 case SrcType::Ty_MIB: in addSrcToMIB()
[all …]
H A DLegalizationArtifactCombiner.h785 LLT SrcType = MRI.getType(SrcReg); in findValueFromExt() local
786 unsigned SrcSize = SrcType.getSizeInBits(); in findValueFromExt()
789 if (!SrcType.isScalar()) in findValueFromExt()
795 if (StartBit == 0 && SrcType.getSizeInBits() == Size) in findValueFromExt()
811 LLT SrcType = MRI.getType(SrcReg); in findValueFromTrunc() local
814 if (!SrcType.isScalar()) in findValueFromTrunc()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPreLegalizerCombiner.cpp122 const LLT SrcType = MRI.getType(MI.getOperand(1).getReg()); in matchClampI64ToI16() local
123 if (SrcType != LLT::scalar(64)) in matchClampI64ToI16()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCSEMIRBuilder.cpp93 case SrcOp::SrcType::Ty_Imm: in profileSrcOp()
96 case SrcOp::SrcType::Ty_Predicate: in profileSrcOp()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp2397 Type *SrcType = X->getType(); in foldTruncShuffle() local
2398 if (!SrcType->isVectorTy() || !SrcType->isIntOrIntVectorTy() || in foldTruncShuffle()
2399 cast<FixedVectorType>(SrcType)->getNumElements() != in foldTruncShuffle()
2401 SrcType->getScalarSizeInBits() % DestType->getScalarSizeInBits() != 0) in foldTruncShuffle()
2410 SrcType->getScalarSizeInBits() / DestType->getScalarSizeInBits(); in foldTruncShuffle()
H A DInstCombineCompares.cpp3268 Type *SrcType = Bitcast->getSrcTy(); in foldICmpBitCast() local
3273 if (SrcType->isVectorTy() == DstType->isVectorTy() && in foldICmpBitCast()
3274 SrcType->getScalarSizeInBits() == DstType->getScalarSizeInBits()) { in foldICmpBitCast()
3319 if (!(XType->isPPC_FP128Ty() || SrcType->isPPC_FP128Ty())) { in foldICmpBitCast()
3334 Type *FPType = SrcType->getScalarType(); in foldICmpBitCast()
3351 !SrcType->isIntOrIntVectorTy()) in foldICmpBitCast()
3394 auto *VecTy = cast<VectorType>(SrcType); in foldICmpBitCast()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaObjC.h791 QualType SrcType,
799 QualType SrcType, Expr *&SrcExpr,
H A DSema.h508 bool shouldDiagnoseConversion(QualType SrcType,
870 void diagnoseNullableToNonnullConversion(QualType DstType, QualType SrcType,
879 void diagnoseFunctionEffectConversion(QualType DstType, QualType SrcType,
2129 void CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType,
7671 QualType DstType, QualType SrcType,
10733 void DiagnoseAssignmentEnum(QualType DstType, QualType SrcType,
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprCXX.cpp825 QualType SrcType = getSubExpr()->getType(); in isAlwaysNull() local
832 SrcType = SrcType->getPointeeType(); in isAlwaysNull()
836 const auto *SrcRD = SrcType->getAsCXXRecordDecl(); in isAlwaysNull()
H A DExprConstant.cpp2641 QualType SrcType, const APFloat &Value, in HandleFloatToIntCast() argument
2710 QualType SrcType, QualType DestType, in HandleFloatToFloatCast() argument
2726 QualType DestType, QualType SrcType, in HandleIntToIntCast() argument
2740 QualType SrcType, const APSInt &Value, in HandleIntToFloatCast() argument
14250 QualType SrcType = SubExpr->getType(); in VisitCastExpr() local
14330 APFixedPoint Src(Info.Ctx.getFixedPointSemantics(SrcType)); in VisitCastExpr()
14361 return Info.Ctx.getTypeSize(DestType) <= Info.Ctx.getTypeSize(SrcType); in VisitCastExpr()
14363 return Info.Ctx.getTypeSize(DestType) == Info.Ctx.getTypeSize(SrcType); in VisitCastExpr()
14416 return Success(HandleIntToIntCast(Info, E, DestType, SrcType, in VisitCastExpr()
14433 if (Info.Ctx.getTypeSize(DestType) != Info.Ctx.getTypeSize(SrcType)) in VisitCastExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2491 EVT SrcType = CastOp.getValueType(); in performVECTOR_SHUFFLECombine() local
2493 if (!SrcType.is128BitVector() || in performVECTOR_SHUFFLECombine()
2494 SrcType.getVectorNumElements() != DstType.getVectorNumElements()) in performVECTOR_SHUFFLECombine()
2497 SrcType, SDLoc(N), CastOp, DAG.getUNDEF(SrcType), Shuffle->getMask()); in performVECTOR_SHUFFLECombine()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFInstrInfo.td1007 class BSWAP<BPFOpClass Class, bits<32> SizeOp, string OpcodeStr, BPFSrcType SrcType, list<dag> Patt…
1008 : TYPE_ALU_JMP<BPF_END.Value, SrcType.Value,
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h1972 Type *SrcType = I->getSrcTy(); in match() local
1976 if (SrcType->isVectorTy() != DstType->isVectorTy()) in match()
1978 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcType); in match()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVInstructionSelector.cpp1705 SPIRVType *SrcType = GR.getSPIRVTypeForVReg(SrcReg); in selectExt() local
1706 if (SrcType == ResType) in selectExt()

12