Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCast.cpp187 void checkAddressSpaceCast(QualType SrcType, QualType DestType);
275 TryStaticPointerDowncast(Sema &Self, QualType SrcType, QualType DestType,
278 static TryCastResult TryStaticDowncast(Sema &Self, CanQualType SrcType,
285 TryStaticMemberPointerUpcast(Sema &Self, ExprResult &SrcExpr, QualType SrcType,
719 CastsAwayConstness(Sema &Self, QualType SrcType, QualType DestType, in CastsAwayConstness() argument
730 assert((SrcType->isAnyPointerType() || SrcType->isMemberPointerType() || in CastsAwayConstness()
731 SrcType->isBlockPointerType()) && in CastsAwayConstness()
738 QualType UnwrappedSrcType = Self.Context.getCanonicalType(SrcType), in CastsAwayConstness()
889 QualType SrcType = Self.Context.getCanonicalType(OrigSrcType); in CheckDynamicCast() local
892 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast()
[all …]
H A DSemaExprObjC.cpp4184 QualType SrcType = castExpr->getType(); in CheckObjCBridgeRelatedCast() local
4188 SrcType = PDecl->getType(); in CheckObjCBridgeRelatedCast()
4192 SrcType = Getter->getReturnType(); in CheckObjCBridgeRelatedCast()
4196 ARCConversionTypeClass srcExprACTC = classifyTypeForARCConversion(SrcType); in CheckObjCBridgeRelatedCast()
4200 CheckObjCBridgeRelatedConversions(castExpr->getBeginLoc(), castType, SrcType, in CheckObjCBridgeRelatedCast()
4222 SourceLocation Loc, QualType DestType, QualType SrcType, in checkObjCBridgeRelatedComponents() argument
4227 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents()
4244 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4255 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4270 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents()
[all …]
H A DSema.cpp682 QualType SrcType, in diagnoseNullableToNonnullConversion() argument
684 std::optional<NullabilityKind> ExprNullability = SrcType->getNullability(); in diagnoseNullableToNonnullConversion()
693 Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType; in diagnoseNullableToNonnullConversion()
697 void Sema::diagnoseFunctionEffectConversion(QualType DstType, QualType SrcType, in diagnoseFunctionEffectConversion() argument
699 const auto SrcFX = FunctionEffectsRef::get(SrcType); in diagnoseFunctionEffectConversion()
703 if (Diff.shouldDiagnoseConversion(SrcType, SrcFX, DstType, DstFX)) in diagnoseFunctionEffectConversion()
H A DSemaExpr.cpp16969 QualType DstType, QualType SrcType, in DiagnoseAssignmentResult() argument
16987 DiagnoseAssignmentEnum(DstType, SrcType, SrcExpr); in DiagnoseAssignmentResult()
17001 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
17011 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
17017 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
17027 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
17040 SrcType->isObjCObjectPointerType(); in DiagnoseAssignmentResult()
17042 SrcType = SrcType.getUnqualifiedType(); in DiagnoseAssignmentResult()
17045 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
17067 if (SrcType->isArrayType()) SrcType = Context.getArrayDecayedType(SrcType); in DiagnoseAssignmentResult()
[all …]
H A DSemaStmt.cpp1737 Sema::DiagnoseAssignmentEnum(QualType DstType, QualType SrcType, in DiagnoseAssignmentEnum() argument
1744 if (!SrcType->isIntegerType() || in DiagnoseAssignmentEnum()
1745 Context.hasSameUnqualifiedType(SrcType, DstType)) in DiagnoseAssignmentEnum()
H A DSemaFunctionEffects.cpp1551 QualType SrcType, const FunctionEffectsRef &SrcFX, QualType DstType, in shouldDiagnoseConversion() argument
/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.h152 enum class SrcType { Ty_Reg, Ty_MIB, Ty_Predicate, Ty_Imm }; enum
153 SrcOp(Register R) : Reg(R), Ty(SrcType::Ty_Reg) {} in SrcOp()
154 SrcOp(const MachineOperand &Op) : Reg(Op.getReg()), Ty(SrcType::Ty_Reg) {} in SrcOp()
155 SrcOp(const MachineInstrBuilder &MIB) : SrcMIB(MIB), Ty(SrcType::Ty_MIB) {} in SrcOp()
156 SrcOp(const CmpInst::Predicate P) : Pred(P), Ty(SrcType::Ty_Predicate) {} in SrcOp()
162 SrcOp(uint64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in SrcOp()
163 SrcOp(int64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in SrcOp()
167 case SrcType::Ty_Predicate: in addSrcToMIB()
170 case SrcType::Ty_Reg: in addSrcToMIB()
173 case SrcType::Ty_MIB: in addSrcToMIB()
[all …]
H A DLegalizationArtifactCombiner.h790 LLT SrcType = MRI.getType(SrcReg); in findValueFromExt() local
791 unsigned SrcSize = SrcType.getSizeInBits(); in findValueFromExt()
794 if (!SrcType.isScalar()) in findValueFromExt()
800 if (StartBit == 0 && SrcType.getSizeInBits() == Size) in findValueFromExt()
816 LLT SrcType = MRI.getType(SrcReg); in findValueFromTrunc() local
819 if (!SrcType.isScalar()) in findValueFromTrunc()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp345 Value *Src, QualType SrcType, QualType DstType,
361 void EmitIntegerTruncationCheck(Value *Src, QualType SrcType, Value *Dst,
367 void EmitIntegerSignChangeCheck(Value *Src, QualType SrcType, Value *Dst,
389 Value *EmitScalarCast(Value *Src, QualType SrcType, QualType DstType,
976 Value *ScalarExprEmitter::EmitConversionToBool(Value *Src, QualType SrcType) { in EmitConversionToBool() argument
977 assert(SrcType.isCanonical() && "EmitScalarConversion strips typedefs"); in EmitConversionToBool()
979 if (SrcType->isRealFloatingType()) in EmitConversionToBool()
982 if (const MemberPointerType *MPT = dyn_cast<MemberPointerType>(SrcType)) in EmitConversionToBool()
985 assert((SrcType->isIntegerType() || isa<llvm::PointerType>(Src->getType())) && in EmitConversionToBool()
992 return EmitPointerToBoolConversion(Src, SrcType); in EmitConversionToBool()
[all …]
H A DCGExprComplex.cpp89 ComplexPairTy EmitComplexToComplexCast(ComplexPairTy Val, QualType SrcType,
92 ComplexPairTy EmitScalarToComplexCast(llvm::Value *Val, QualType SrcType,
514 QualType SrcType, in EmitComplexToComplexCast() argument
518 SrcType = SrcType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
525 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast()
527 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast()
532 QualType SrcType, in EmitScalarToComplexCast() argument
537 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); in EmitScalarToComplexCast()
H A DItaniumCXXABI.cpp951 QualType SrcType = E->getSubExpr()->getType(); in EmitMemberPointerConversion() local
952 assert(SrcType->isMemberFunctionPointerType()); in EmitMemberPointerConversion()
953 const auto &CurAuthInfo = CGM.getMemberFunctionPointerAuthInfo(SrcType); in EmitMemberPointerConversion()
974 CGF.emitPointerAuthResign(MemFnPtr, SrcType, CurAuthInfo, NewAuthInfo, in EmitMemberPointerConversion()
1033 QualType SrcType, CodeGenModule &CGM) { in pointerAuthResignMemberFunctionPointer() argument
1035 SrcType->isMemberFunctionPointerType() && in pointerAuthResignMemberFunctionPointer()
1037 if (DestType == SrcType) in pointerAuthResignMemberFunctionPointer()
1041 const auto &CurAuthInfo = CGM.getMemberFunctionPointerAuthInfo(SrcType); in pointerAuthResignMemberFunctionPointer()
1238 QualType SrcType = getContext().getMemberPointerType( in EmitMemberPointer() local
1240 return pointerAuthResignMemberFunctionPointer(Src, MPType, SrcType, CGM); in EmitMemberPointer()
H A DCGBuiltin.cpp6480 llvm::Type *SrcType = nullptr; member
6491 SrcType = Src->getType(); in BuiltinAlignArgs()
6492 if (SrcType->isPointerTy()) { in BuiltinAlignArgs()
6495 CGF.CGM.getDataLayout().getIndexTypeSizeInBits(SrcType)); in BuiltinAlignArgs()
6497 assert(SrcType->isIntegerTy()); in BuiltinAlignArgs()
6498 IntType = cast<llvm::IntegerType>(SrcType); in BuiltinAlignArgs()
6512 if (Args.SrcType->isPointerTy()) in EmitBuiltinIsAligned()
6549 Intrinsic::ptrmask, {Args.SrcType, Args.IntType}, in EmitBuiltinAlignTo()
6554 assert(Result->getType() == Args.SrcType); in EmitBuiltinAlignTo()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVLegalizePointerCast.cpp184 FixedVectorType *SrcType = cast<FixedVectorType>(Src->getType()); in storeVectorFromVector() local
187 assert(DstType->getNumElements() >= SrcType->getNumElements()); in storeVectorFromVector()
195 for (unsigned I = 0; I < SrcType->getNumElements(); ++I) { in storeVectorFromVector()
197 makeExtractElement(B, SrcType->getElementType(), NewValues, I); in storeVectorFromVector()
H A DSPIRVInstructionSelector.cpp409 LLT SrcType = MRI.getType(SrcReg); in resetVRegsType() local
410 if (DstType != SrcType) in resetVRegsType()
2605 SPIRVType *SrcType = GR.getSPIRVTypeForVReg(SrcReg); in selectExt() local
2606 if (SrcType == ResType) in selectExt()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPreLegalizerCombiner.cpp121 const LLT SrcType = MRI.getType(MI.getOperand(1).getReg()); in matchClampI64ToI16() local
122 if (SrcType != LLT::scalar(64)) in matchClampI64ToI16()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCSEMIRBuilder.cpp97 case SrcOp::SrcType::Ty_Imm: in profileSrcOp()
100 case SrcOp::SrcType::Ty_Predicate: in profileSrcOp()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp2475 Type *SrcType = X->getType(); in foldTruncShuffle() local
2476 if (!SrcType->isVectorTy() || !SrcType->isIntOrIntVectorTy() || in foldTruncShuffle()
2477 cast<FixedVectorType>(SrcType)->getNumElements() != in foldTruncShuffle()
2479 SrcType->getScalarSizeInBits() % DestType->getScalarSizeInBits() != 0) in foldTruncShuffle()
2488 SrcType->getScalarSizeInBits() / DestType->getScalarSizeInBits(); in foldTruncShuffle()
H A DInstCombineCompares.cpp3415 Type *SrcType = Bitcast->getSrcTy(); in foldICmpBitCast() local
3420 if (SrcType->isVectorTy() == DstType->isVectorTy() && in foldICmpBitCast()
3421 SrcType->getScalarSizeInBits() == DstType->getScalarSizeInBits()) { in foldICmpBitCast()
3466 if (!(XType->isPPC_FP128Ty() || SrcType->isPPC_FP128Ty())) { in foldICmpBitCast()
3481 Type *FPType = SrcType->getScalarType(); in foldICmpBitCast()
3498 !SrcType->isIntOrIntVectorTy()) in foldICmpBitCast()
3541 auto *VecTy = cast<VectorType>(SrcType); in foldICmpBitCast()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaObjC.h783 QualType SrcType,
791 QualType SrcType, Expr *&SrcExpr,
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprCXX.cpp830 QualType SrcType = getSubExpr()->getType(); in isAlwaysNull() local
837 SrcType = SrcType->getPointeeType(); in isAlwaysNull()
841 const auto *SrcRD = SrcType->getAsCXXRecordDecl(); in isAlwaysNull()
H A DExprConstant.cpp2783 QualType SrcType, const APFloat &Value, in HandleFloatToIntCast() argument
2852 QualType SrcType, QualType DestType, in HandleFloatToFloatCast() argument
2868 QualType DestType, QualType SrcType, in HandleIntToIntCast() argument
2882 QualType SrcType, const APSInt &Value, in HandleIntToFloatCast() argument
15126 QualType SrcType = SubExpr->getType(); in VisitCastExpr() local
15207 APFixedPoint Src(Info.Ctx.getFixedPointSemantics(SrcType)); in VisitCastExpr()
15238 return Info.Ctx.getTypeSize(DestType) <= Info.Ctx.getTypeSize(SrcType); in VisitCastExpr()
15240 return Info.Ctx.getTypeSize(DestType) == Info.Ctx.getTypeSize(SrcType); in VisitCastExpr()
15277 return Success(HandleIntToIntCast(Info, E, DestType, SrcType, in VisitCastExpr()
15295 if (Info.Ctx.getTypeSize(DestType) != Info.Ctx.getTypeSize(SrcType)) in VisitCastExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2901 EVT SrcType = CastOp.getValueType(); in performVECTOR_SHUFFLECombine() local
2903 if (!SrcType.is128BitVector() || in performVECTOR_SHUFFLECombine()
2904 SrcType.getVectorNumElements() != DstType.getVectorNumElements()) in performVECTOR_SHUFFLECombine()
2907 SrcType, SDLoc(N), CastOp, DAG.getUNDEF(SrcType), Shuffle->getMask()); in performVECTOR_SHUFFLECombine()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFInstrInfo.td1153 class BSWAP<BPFOpClass Class, bits<32> SizeOp, string OpcodeStr, BPFSrcType SrcType, list<dag> Patt…
1154 : TYPE_ALU_JMP<BPF_END.Value, SrcType.Value,
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h2083 Type *SrcType = I->getSrcTy(); in match() local
2087 if (SrcType->isVectorTy() != DstType->isVectorTy()) in match()
2089 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcType); in match()

12