Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DRecordOps.cpp54 auto DstType = Dst.getType().getCanonicalType().getUnqualifiedType(); in copyRecord() local
57 auto DstDecl = DstType->getAsCXXRecordDecl(); in copyRecord()
60 SrcType == DstType || in copyRecord()
72 if (SrcType == DstType || (SrcDecl != nullptr && DstDecl != nullptr && in copyRecord()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp317 Value *Src, QualType SrcType, QualType DstType,
334 QualType DstType, SourceLocation Loc);
340 QualType DstType, SourceLocation Loc);
361 Value *EmitScalarCast(Value *Src, QualType SrcType, QualType DstType,
959 QualType DstType, llvm::Type *DstTy, SourceLocation Loc) { in EmitFloatConversionCheck() argument
975 unsigned Width = CGF.getContext().getIntWidth(DstType); in EmitFloatConversionCheck()
976 bool Unsigned = DstType->isUnsignedIntegerOrEnumerationType(); in EmitFloatConversionCheck()
1020 CGF.EmitCheckTypeDescriptor(DstType)}; in EmitFloatConversionCheck()
1030 QualType DstType, CGBuilderTy &Builder) { in EmitIntegerTruncationCheckHelper() argument
1042 bool DstSigned = DstType->isSignedIntegerOrEnumerationType(); in EmitIntegerTruncationCheckHelper()
[all …]
H A DItaniumCXXABI.cpp935 QualType DstType = E->getType(); in EmitMemberPointerConversion() local
937 if (DstType->isMemberFunctionPointerType()) { in EmitMemberPointerConversion()
939 CGM.getMemberFunctionPointerAuthInfo(DstType)) { in EmitMemberPointerConversion()
1055 QualType DstType = E->getType(); in EmitMemberPointerConversion() local
1057 if (DstType->isMemberFunctionPointerType()) in EmitMemberPointerConversion()
1059 src, DstType, E->getSubExpr()->getType(), CGM); in EmitMemberPointerConversion()
H A DCGStmtOpenMP.cpp400 QualType DstType, StringRef Name, in castValueFromUintptr() argument
406 Ctx.getPointerType(DstType), Loc); in castValueFromUintptr()
409 CGF.MakeNaturalAlignAddrLValue(CastedPtr, DstType).getAddress(); in castValueFromUintptr()
H A DCGExpr.cpp5664 QualType DstType = E->getLHS()->getType(); in EmitBinaryOperatorLValue() local
5665 EmitBitfieldConversionCheck(Src, SrcType, Result, DstType, in EmitBinaryOperatorLValue()
H A DCodeGenFunction.h2890 llvm::Value *Dst, QualType DstType,
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCSEMIRBuilder.cpp76 case DstOp::DstType::Ty_RC: in profileDstOp()
79 case DstOp::DstType::Ty_Reg: { in profileDstOp()
142 DstOp::DstType DT = Op.getDstOpKind(); in checkCopyToDefsPossible()
143 return DT == DstOp::DstType::Ty_LLT || DT == DstOp::DstType::Ty_RC; in checkCopyToDefsPossible()
154 if (Op.getDstOpKind() == DstOp::DstType::Ty_Reg) in generateCopiesIfRequired()
H A DCombinerHelper.cpp469 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchCombineShuffleVector() local
475 unsigned DstNumElts = DstType.isVector() ? DstType.getNumElements() : 1; in matchCombineShuffleVector()
5699 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in canCombineFMadOrFMA() local
5706 HasFMAD = (!isPreLegalize() && TLI.isFMADLegal(MI, DstType)); in canCombineFMadOrFMA()
5708 bool HasFMA = TLI.isFMAFasterThanFMulAndFAdd(*MF, DstType) && in canCombineFMadOrFMA()
5709 isLegalOrBeforeLegalizer({TargetOpcode::G_FMA, {DstType}}); in canCombineFMadOrFMA()
5720 Aggressive = TLI.enableAggressiveFMAFusion(DstType); in canCombineFMadOrFMA()
5785 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchCombineFAddFpExtFMulToFMadOrFMA() local
5802 TLI.isFPExtFoldable(MI, PreferredFusedOpcode, DstType, in matchCombineFAddFpExtFMulToFMadOrFMA()
5805 auto FpExtX = B.buildFPExt(DstType, FpExtSrc->getOperand(1).getReg()); in matchCombineFAddFpExtFMulToFMadOrFMA()
[all …]
H A DLegalizerHelper.cpp5879 LLT DstType = MRI.getType(DstReg); in narrowScalarAddSub() local
5881 if (DstType.isVector()) in narrowScalarAddSub()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMachineIRBuilder.h78 enum class DstType { Ty_LLT, Ty_Reg, Ty_RC }; enum
79 DstOp(unsigned R) : Reg(R), Ty(DstType::Ty_Reg) {} in DstOp()
80 DstOp(Register R) : Reg(R), Ty(DstType::Ty_Reg) {} in DstOp()
81 DstOp(const MachineOperand &Op) : Reg(Op.getReg()), Ty(DstType::Ty_Reg) {} in DstOp()
82 DstOp(const LLT T) : LLTTy(T), Ty(DstType::Ty_LLT) {} in DstOp()
83 DstOp(const TargetRegisterClass *TRC) : RC(TRC), Ty(DstType::Ty_RC) {} in DstOp()
87 case DstType::Ty_Reg: in addDefToMIB()
90 case DstType::Ty_LLT: in addDefToMIB()
93 case DstType::Ty_RC: in addDefToMIB()
101 case DstType::Ty_RC: in getLLTTy()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp100 Value *IRBuilderBase::CreateElementCount(Type *DstType, ElementCount EC) { in CreateElementCount() argument
101 Constant *MinEC = ConstantInt::get(DstType, EC.getKnownMinValue()); in CreateElementCount()
105 Value *IRBuilderBase::CreateTypeSize(Type *DstType, TypeSize Size) { in CreateTypeSize() argument
106 Constant *MinSize = ConstantInt::get(DstType, Size.getKnownMinValue()); in CreateTypeSize()
110 Value *IRBuilderBase::CreateStepVector(Type *DstType, const Twine &Name) { in CreateStepVector() argument
111 Type *STy = DstType->getScalarType(); in CreateStepVector()
112 if (isa<ScalableVectorType>(DstType)) { in CreateStepVector()
113 Type *StepVecType = DstType; in CreateStepVector()
119 VectorType::get(getInt8Ty(), cast<ScalableVectorType>(DstType)); in CreateStepVector()
122 if (StepVecType != DstType) in CreateStepVector()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPreLegalizerCombiner.cpp126 const LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchClampI64ToI16() local
127 if (DstType != LLT::scalar(16)) in matchClampI64ToI16()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSema.cpp618 void Sema::diagnoseNullableToNonnullConversion(QualType DstType, in diagnoseNullableToNonnullConversion() argument
626 std::optional<NullabilityKind> TypeNullability = DstType->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
637 const auto DstFX = FunctionEffectsRef::get(DstType); 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 DSemaStmt.cpp1663 Sema::DiagnoseAssignmentEnum(QualType DstType, QualType SrcType, in DiagnoseAssignmentEnum() argument
1668 if (const EnumType *ET = DstType->getAs<EnumType>()) in DiagnoseAssignmentEnum()
1669 if (!Context.hasSameUnqualifiedType(SrcType, DstType) && in DiagnoseAssignmentEnum()
1674 unsigned DstWidth = Context.getIntWidth(DstType); in DiagnoseAssignmentEnum()
1675 bool DstIsSigned = DstType->isSignedIntegerOrEnumerationType(); in DiagnoseAssignmentEnum()
1687 << DstType.getUnqualifiedType(); in DiagnoseAssignmentEnum()
1712 << DstType.getUnqualifiedType(); in DiagnoseAssignmentEnum()
H A DSemaCast.cpp2113 QualType DstType, SourceRange OpRange) { in DiagnoseCallingConvCast() argument
2117 if (Self.Context.hasSameType(SrcType, DstType) || in DiagnoseCallingConvCast()
2118 !SrcType->isFunctionPointerType() || !DstType->isFunctionPointerType()) in DiagnoseCallingConvCast()
2123 DstType->castAs<PointerType>()->getPointeeType()->castAs<FunctionType>(); in DiagnoseCallingConvCast()
H A DSemaExpr.cpp16577 static bool maybeDiagnoseAssignmentToFunction(Sema &S, QualType DstType, in maybeDiagnoseAssignmentToFunction() argument
16579 if (!DstType->isFunctionPointerType() || in maybeDiagnoseAssignmentToFunction()
16598 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()
16664 CheckInferredResultType = DstType->isObjCObjectPointerType() && in DiagnoseAssignmentResult()
16668 DstType = DstType.getUnqualifiedType(); in DiagnoseAssignmentResult()
[all …]
H A DSemaExprObjC.cpp5081 bool SemaObjC::CheckConversionToObjCLiteral(QualType DstType, Expr *&Exp, in CheckConversionToObjCLiteral() argument
5086 const ObjCObjectPointerType *PT = DstType->getAs<ObjCObjectPointerType>(); in CheckConversionToObjCLiteral()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h951 Value *CreateElementCount(Type *DstType, ElementCount EC);
955 Value *CreateTypeSize(Type *DstType, TypeSize Size);
958 Value *CreateStepVector(Type *DstType, const Twine &Name = "");
1035 CallInst *CreateArithmeticFence(Value *Val, Type *DstType,
1037 return CreateIntrinsic(Intrinsic::arithmetic_fence, DstType, Val, nullptr,
1042 CallInst *CreateExtractVector(Type *DstType, Value *SrcVec, Value *Idx,
1045 {DstType, SrcVec->getType()}, {SrcVec, Idx}, nullptr,
1050 CallInst *CreateInsertVector(Type *DstType, Value *SrcVec, Value *SubVec,
1053 {DstType, SubVec->getType()}, {SrcVec, SubVec, Idx},
H A DPatternMatch.h1973 Type *DstType = I->getType(); in match() local
1976 if (SrcType->isVectorTy() != DstType->isVectorTy()) in match()
1980 cast<VectorType>(DstType)->getElementCount()) in match()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaObjC.h901 bool CheckConversionToObjCLiteral(QualType DstType, Expr *&SrcExpr,
H A DSema.h510 QualType DstType,
870 void diagnoseNullableToNonnullConversion(QualType DstType, QualType SrcType,
879 void diagnoseFunctionEffectConversion(QualType DstType, QualType SrcType,
7671 QualType DstType, QualType SrcType,
10733 void DiagnoseAssignmentEnum(QualType DstType, QualType SrcType,
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2492 EVT DstType = Bitcast.getValueType(); in performVECTOR_SHUFFLECombine() local
2494 SrcType.getVectorNumElements() != DstType.getVectorNumElements()) in performVECTOR_SHUFFLECombine()
2498 return DAG.getBitcast(DstType, NewShuffle); in performVECTOR_SHUFFLECombine()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DExpr.h4534 ConvertVectorExpr(Expr *SrcExpr, TypeSourceInfo *TI, QualType DstType, in ConvertVectorExpr() argument
4537 : Expr(ConvertVectorExprClass, DstType, VK, OK), SrcExpr(SrcExpr), in ConvertVectorExpr()
6426 AsTypeExpr(Expr *SrcExpr, QualType DstType, ExprValueKind VK, in AsTypeExpr() argument
6429 : Expr(AsTypeExprClass, DstType, VK, OK), SrcExpr(SrcExpr), in AsTypeExpr()
H A DExprCXX.h5309 TypeSourceInfo *DstType, SourceLocation KWLoc, in BuiltinBitCastExpr() argument
5312 DstType), in BuiltinBitCastExpr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp3269 Type *DstType = Bitcast->getType(); in foldICmpBitCast() local
3273 if (SrcType->isVectorTy() == DstType->isVectorTy() && in foldICmpBitCast()
3274 SrcType->getScalarSizeInBits() == DstType->getScalarSizeInBits()) { in foldICmpBitCast()
3350 if (!match(Cmp.getOperand(1), m_APInt(C)) || !DstType->isIntegerTy() || in foldICmpBitCast()
3364 Value *Cast = Builder.CreateBitCast(NotBCSrcOp, DstType); in foldICmpBitCast()
3365 return new ICmpInst(Pred, Cast, ConstantInt::getNullValue(DstType)); in foldICmpBitCast()