Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCSEMIRBuilder.cpp74 case DstOp::DstType::Ty_RC: { in profileDstOp()
78 case DstOp::DstType::Ty_Reg: { in profileDstOp()
83 case DstOp::DstType::Ty_LLT: { in profileDstOp()
87 case DstOp::DstType::Ty_VRegAttrs: { in profileDstOp()
146 DstOp::DstType DT = Op.getDstOpKind(); in checkCopyToDefsPossible()
147 return DT == DstOp::DstType::Ty_LLT || DT == DstOp::DstType::Ty_RC; in checkCopyToDefsPossible()
158 if (Op.getDstOpKind() == DstOp::DstType::Ty_Reg) in generateCopiesIfRequired()
H A DCombinerHelper.cpp535 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchCombineShuffleVector() local
541 unsigned DstNumElts = DstType.isVector() ? DstType.getNumElements() : 1; in matchCombineShuffleVector()
5937 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in canCombineFMadOrFMA() local
5944 HasFMAD = (!isPreLegalize() && TLI.isFMADLegal(MI, DstType)); in canCombineFMadOrFMA()
5946 bool HasFMA = TLI.isFMAFasterThanFMulAndFAdd(*MF, DstType) && in canCombineFMadOrFMA()
5947 isLegalOrBeforeLegalizer({TargetOpcode::G_FMA, {DstType}}); in canCombineFMadOrFMA()
5958 Aggressive = TLI.enableAggressiveFMAFusion(DstType); in canCombineFMadOrFMA()
6025 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchCombineFAddFpExtFMulToFMadOrFMA() local
6042 TLI.isFPExtFoldable(MI, PreferredFusedOpcode, DstType, in matchCombineFAddFpExtFMulToFMadOrFMA()
6045 auto FpExtX = B.buildFPExt(DstType, FpExtSrc->getOperand(1).getReg()); in matchCombineFAddFpExtFMulToFMadOrFMA()
[all …]
/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/llvm/include/llvm/CodeGen/GlobalISel/
H A DMachineIRBuilder.h80 enum class DstType { Ty_LLT, Ty_Reg, Ty_RC, Ty_VRegAttrs }; enum
81 DstOp(unsigned R) : Reg(R), Ty(DstType::Ty_Reg) {} in DstOp()
82 DstOp(Register R) : Reg(R), Ty(DstType::Ty_Reg) {} in DstOp()
83 DstOp(const MachineOperand &Op) : Reg(Op.getReg()), Ty(DstType::Ty_Reg) {} in DstOp()
84 DstOp(const LLT T) : LLTTy(T), Ty(DstType::Ty_LLT) {} in DstOp()
85 DstOp(const TargetRegisterClass *TRC) : RC(TRC), Ty(DstType::Ty_RC) {} in DstOp()
87 : Attrs(Attrs), Ty(DstType::Ty_VRegAttrs) {} in DstOp()
89 : Attrs({RCOrRB, Ty}), Ty(DstType::Ty_VRegAttrs) {} in DstOp()
93 case DstType::Ty_Reg: in addDefToMIB()
96 case DstType::Ty_LLT: in addDefToMIB()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp345 Value *Src, QualType SrcType, QualType DstType,
362 QualType DstType, SourceLocation Loc);
368 QualType DstType, SourceLocation Loc);
389 Value *EmitScalarCast(Value *Src, QualType SrcType, QualType DstType,
997 QualType DstType, llvm::Type *DstTy, SourceLocation Loc) { in EmitFloatConversionCheck() argument
1015 unsigned Width = CGF.getContext().getIntWidth(DstType); in EmitFloatConversionCheck()
1016 bool Unsigned = DstType->isUnsignedIntegerOrEnumerationType(); in EmitFloatConversionCheck()
1060 CGF.EmitCheckTypeDescriptor(DstType)}; in EmitFloatConversionCheck()
1070 QualType DstType, CGBuilderTy &Builder) { in EmitIntegerTruncationCheckHelper() argument
1082 bool DstSigned = DstType->isSignedIntegerOrEnumerationType(); in EmitIntegerTruncationCheckHelper()
[all …]
H A DItaniumCXXABI.cpp946 QualType DstType = E->getType(); in EmitMemberPointerConversion() local
948 if (DstType->isMemberFunctionPointerType()) { in EmitMemberPointerConversion()
950 CGM.getMemberFunctionPointerAuthInfo(DstType)) { in EmitMemberPointerConversion()
1066 QualType DstType = E->getType(); in EmitMemberPointerConversion() local
1068 if (DstType->isMemberFunctionPointerType()) in EmitMemberPointerConversion()
1070 src, DstType, E->getSubExpr()->getType(), CGM); in EmitMemberPointerConversion()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVLegalizePointerCast.cpp185 FixedVectorType *DstType = in storeVectorFromVector() local
187 assert(DstType->getNumElements() >= SrcType->getNumElements()); in storeVectorFromVector()
189 LoadInst *LI = B.CreateLoad(DstType, Dst); in storeVectorFromVector()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPreLegalizerCombiner.cpp125 const LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchClampI64ToI16() local
126 if (DstType != LLT::scalar(16)) in matchClampI64ToI16()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp137 Value *IRBuilderBase::CreateStepVector(Type *DstType, const Twine &Name) { in CreateStepVector() argument
138 Type *STy = DstType->getScalarType(); in CreateStepVector()
139 if (isa<ScalableVectorType>(DstType)) { in CreateStepVector()
140 Type *StepVecType = DstType; in CreateStepVector()
146 VectorType::get(getInt8Ty(), cast<ScalableVectorType>(DstType)); in CreateStepVector()
149 if (StepVecType != DstType) in CreateStepVector()
150 Res = CreateTrunc(Res, DstType); in CreateStepVector()
154 unsigned NumEls = cast<FixedVectorType>(DstType)->getNumElements(); in CreateStepVector()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h978 LLVM_ABI Value *CreateStepVector(Type *DstType, const Twine &Name = "");
1091 CallInst *CreateArithmeticFence(Value *Val, Type *DstType,
1093 return CreateIntrinsic(Intrinsic::arithmetic_fence, DstType, Val, nullptr,
1098 CallInst *CreateExtractVector(Type *DstType, Value *SrcVec, Value *Idx,
1101 {DstType, SrcVec->getType()}, {SrcVec, Idx}, nullptr,
1106 CallInst *CreateExtractVector(Type *DstType, Value *SrcVec, uint64_t Idx,
1108 return CreateExtractVector(DstType, SrcVec, getInt64(Idx), Name);
1112 CallInst *CreateInsertVector(Type *DstType, Value *SrcVec, Value *SubVec,
1115 {DstType, SubVec->getType()}, {SrcVec, SubVec, Idx},
1120 CallInst *CreateInsertVector(Type *DstType, Value *SrcVec, Value *SubVec,
[all …]
H A DPatternMatch.h2084 Type *DstType = I->getType(); in match() local
2087 if (SrcType->isVectorTy() != DstType->isVectorTy()) in match()
2091 cast<VectorType>(DstType)->getElementCount()) in match()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSema.cpp681 void Sema::diagnoseNullableToNonnullConversion(QualType DstType, in diagnoseNullableToNonnullConversion() argument
689 std::optional<NullabilityKind> TypeNullability = DstType->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
700 const auto DstFX = FunctionEffectsRef::get(DstType); in diagnoseFunctionEffectConversion()
703 if (Diff.shouldDiagnoseConversion(SrcType, SrcFX, DstType, DstFX)) in diagnoseFunctionEffectConversion()
H A DSemaStmt.cpp1737 Sema::DiagnoseAssignmentEnum(QualType DstType, QualType SrcType, in DiagnoseAssignmentEnum() argument
1740 const auto *ET = DstType->getAs<EnumType>(); in DiagnoseAssignmentEnum()
1745 Context.hasSameUnqualifiedType(SrcType, DstType)) in DiagnoseAssignmentEnum()
1763 unsigned DstWidth = Context.getIntWidth(DstType); in DiagnoseAssignmentEnum()
1764 bool DstIsSigned = DstType->isSignedIntegerOrEnumerationType(); in DiagnoseAssignmentEnum()
1770 << DstType.getUnqualifiedType(); in DiagnoseAssignmentEnum()
1796 << DstType.getUnqualifiedType(); in DiagnoseAssignmentEnum()
H A DSemaCast.cpp2144 QualType DstType, in DiagnoseCallingConvCast() argument
2149 if (Self.Context.hasSameType(SrcType, DstType) || in DiagnoseCallingConvCast()
2150 !SrcType->isFunctionPointerType() || !DstType->isFunctionPointerType()) in DiagnoseCallingConvCast()
2155 DstType->castAs<PointerType>()->getPointeeType()->castAs<FunctionType>(); in DiagnoseCallingConvCast()
H A DSemaExpr.cpp16948 static bool maybeDiagnoseAssignmentToFunction(Sema &S, QualType DstType, in maybeDiagnoseAssignmentToFunction() argument
16950 if (!DstType->isFunctionPointerType() || in maybeDiagnoseAssignmentToFunction()
16969 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()
17039 CheckInferredResultType = DstType->isObjCObjectPointerType() && in DiagnoseAssignmentResult()
17043 DstType = DstType.getUnqualifiedType(); in DiagnoseAssignmentResult()
[all …]
H A DSemaFunctionEffects.cpp1551 QualType SrcType, const FunctionEffectsRef &SrcFX, QualType DstType, in shouldDiagnoseConversion() argument
H A DSemaExprObjC.cpp5075 bool SemaObjC::CheckConversionToObjCLiteral(QualType DstType, Expr *&Exp, in CheckConversionToObjCLiteral() argument
5080 const ObjCObjectPointerType *PT = DstType->getAs<ObjCObjectPointerType>(); in CheckConversionToObjCLiteral()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp465 Type *DstType = Trunc.getType(); in foldVecExtTruncToExtElt() local
470 unsigned DstBits = DstType->getScalarSizeInBits(); in foldVecExtTruncToExtElt()
509 VectorType::get(DstType, BitCastNumElts, VecElts.isScalable()); in foldVecExtTruncToExtElt()
H A DInstCombineCompares.cpp3416 Type *DstType = Bitcast->getType(); in foldICmpBitCast() local
3420 if (SrcType->isVectorTy() == DstType->isVectorTy() && in foldICmpBitCast()
3421 SrcType->getScalarSizeInBits() == DstType->getScalarSizeInBits()) { in foldICmpBitCast()
3497 if (!match(Cmp.getOperand(1), m_APInt(C)) || !DstType->isIntegerTy() || in foldICmpBitCast()
3511 Value *Cast = Builder.CreateBitCast(NotBCSrcOp, DstType); in foldICmpBitCast()
3512 return new ICmpInst(Pred, Cast, ConstantInt::getNullValue(DstType)); in foldICmpBitCast()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaObjC.h894 bool CheckConversionToObjCLiteral(QualType DstType, Expr *&SrcExpr,
H A DSema.h1157 void diagnoseNullableToNonnullConversion(QualType DstType, QualType SrcType,
1164 void diagnoseFunctionEffectConversion(QualType DstType, QualType SrcType,
8003 QualType DstType, QualType SrcType,
10948 void DiagnoseAssignmentEnum(QualType DstType, QualType SrcType,
15403 QualType DstType,
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DExpr.h4661 ConvertVectorExpr(Expr *SrcExpr, TypeSourceInfo *TI, QualType DstType, in ConvertVectorExpr() argument
4665 : Expr(ConvertVectorExprClass, DstType, VK, OK), SrcExpr(SrcExpr), in ConvertVectorExpr()
4692 TypeSourceInfo *TI, QualType DstType,
6623 AsTypeExpr(Expr *SrcExpr, QualType DstType, ExprValueKind VK, in AsTypeExpr() argument
6626 : Expr(AsTypeExprClass, DstType, VK, OK), SrcExpr(SrcExpr), in AsTypeExpr()
H A DExprCXX.h5424 TypeSourceInfo *DstType, SourceLocation KWLoc, in BuiltinBitCastExpr() argument
5427 DstType), in BuiltinBitCastExpr()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2902 EVT DstType = Bitcast.getValueType(); in performVECTOR_SHUFFLECombine() local
2904 SrcType.getVectorNumElements() != DstType.getVectorNumElements()) in performVECTOR_SHUFFLECombine()
2908 return DAG.getBitcast(DstType, NewShuffle); in performVECTOR_SHUFFLECombine()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExpr.cpp5444 const ASTContext &C, Expr *SrcExpr, TypeSourceInfo *TI, QualType DstType, in Create() argument
5450 return new (Mem) ConvertVectorExpr(SrcExpr, TI, DstType, VK, OK, BuiltinLoc, in Create()

12