Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCSEMIRBuilder.cpp71 case DstOp::DstType::Ty_RC: in profileDstOp()
74 case DstOp::DstType::Ty_Reg: { in profileDstOp()
137 DstOp::DstType DT = Op.getDstOpKind(); in checkCopyToDefsPossible()
138 return DT == DstOp::DstType::Ty_LLT || DT == DstOp::DstType::Ty_RC; in checkCopyToDefsPossible()
149 if (Op.getDstOpKind() == DstOp::DstType::Ty_Reg) in generateCopiesIfRequired()
H A DCombinerHelper.cpp313 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchCombineShuffleVector() local
319 unsigned DstNumElts = DstType.isVector() ? DstType.getNumElements() : 1; in matchCombineShuffleVector()
5416 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in canCombineFMadOrFMA() local
5437 Aggressive = TLI.enableAggressiveFMAFusion(DstType); in canCombineFMadOrFMA()
5502 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchCombineFAddFpExtFMulToFMadOrFMA() local
5625 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchCombineFAddFpExtFMulToFMadOrFMAAggressive() local
5645 Register FpExtU = B.buildFPExt(DstType, U).getReg(0); in matchCombineFAddFpExtFMulToFMadOrFMAAggressive()
5686 X = B.buildFPExt(DstType, X).getReg(0); in matchCombineFAddFpExtFMulToFMadOrFMAAggressive()
5687 Y = B.buildFPExt(DstType, Y).getReg(0); in matchCombineFAddFpExtFMulToFMadOrFMAAggressive()
5727 X = B.buildFPExt(DstType, X).getReg(0); in matchCombineFAddFpExtFMulToFMadOrFMAAggressive()
[all …]
H A DLegalizerHelper.cpp5527 LLT DstType = MRI.getType(DstReg); in narrowScalarAddSub() local
5529 if (DstType.isVector()) in narrowScalarAddSub()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DRecordOps.cpp20 auto DstType = Dst.getType().getCanonicalType().getUnqualifiedType(); in copyRecord() local
23 auto DstDecl = DstType->getAsCXXRecordDecl(); in copyRecord()
26 SrcType == DstType || in copyRecord()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMachineIRBuilder.h75 enum class DstType { Ty_LLT, Ty_Reg, Ty_RC }; enum
76 DstOp(unsigned R) : Reg(R), Ty(DstType::Ty_Reg) {} in DstOp()
84 case DstType::Ty_Reg: in addDefToMIB()
87 case DstType::Ty_LLT: in addDefToMIB()
90 case DstType::Ty_RC: in addDefToMIB()
98 case DstType::Ty_RC: in getLLTTy()
100 case DstType::Ty_LLT: in getLLTTy()
102 case DstType::Ty_Reg: in getLLTTy()
115 case DstType::Ty_RC: in getRegClass()
122 DstType getDstOpKind() const { return Ty; } in getDstOpKind()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp1259 DstElementType = DstType; in EmitScalarCast()
1312 if (DstType->isBooleanType()) in EmitScalarConversion()
1319 if (DstType->isFixedPointType() || DstType->isIntegerType() || in EmitScalarConversion()
1320 DstType->isRealFloatingType()) in EmitScalarConversion()
1338 DstType = CGF.getContext().getCanonicalType(DstType); in EmitScalarConversion()
1339 if (SrcType == DstType) return Src; in EmitScalarConversion()
1348 if (DstType->isBooleanType()) in EmitScalarConversion()
1705 DstType = E->getType(); in VisitConvertVectorExpr() local
1710 DstType = CGF.getContext().getCanonicalType(DstType); in VisitConvertVectorExpr()
1711 if (SrcType == DstType) return Src; in VisitConvertVectorExpr()
[all …]
H A DCGStmtOpenMP.cpp373 QualType DstType, StringRef Name, in castValueFromUintptr() argument
379 Ctx.getPointerType(DstType), Loc); in castValueFromUintptr()
381 CGF.MakeNaturalAlignAddrLValue(CastedPtr, DstType).getAddress(CGF); in castValueFromUintptr()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp99 Value *IRBuilderBase::CreateElementCount(Type *DstType, ElementCount EC) { in CreateElementCount() argument
100 Constant *MinEC = ConstantInt::get(DstType, EC.getKnownMinValue()); in CreateElementCount()
104 Value *IRBuilderBase::CreateTypeSize(Type *DstType, TypeSize Size) { in CreateTypeSize() argument
105 Constant *MinSize = ConstantInt::get(DstType, Size.getKnownMinValue()); in CreateTypeSize()
109 Value *IRBuilderBase::CreateStepVector(Type *DstType, const Twine &Name) { in CreateStepVector() argument
110 Type *STy = DstType->getScalarType(); in CreateStepVector()
111 if (isa<ScalableVectorType>(DstType)) { in CreateStepVector()
112 Type *StepVecType = DstType; in CreateStepVector()
121 if (StepVecType != DstType) in CreateStepVector()
122 Res = CreateTrunc(Res, DstType); in CreateStepVector()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPreLegalizerCombiner.cpp128 const LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchClampI64ToI16() local
129 if (DstType != LLT::scalar(16)) in matchClampI64ToI16()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h948 Value *CreateElementCount(Type *DstType, ElementCount EC);
952 Value *CreateTypeSize(Type *DstType, TypeSize Size);
955 Value *CreateStepVector(Type *DstType, const Twine &Name = "");
1024 CallInst *CreateArithmeticFence(Value *Val, Type *DstType,
1026 return CreateIntrinsic(Intrinsic::arithmetic_fence, DstType, Val, nullptr,
1031 CallInst *CreateExtractVector(Type *DstType, Value *SrcVec, Value *Idx,
1034 {DstType, SrcVec->getType()}, {SrcVec, Idx}, nullptr,
1039 CallInst *CreateInsertVector(Type *DstType, Value *SrcVec, Value *SubVec,
1042 {DstType, SubVec->getType()}, {SrcVec, SubVec, Idx},
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp1640 Sema::DiagnoseAssignmentEnum(QualType DstType, QualType SrcType, in DiagnoseAssignmentEnum() argument
1645 if (const EnumType *ET = DstType->getAs<EnumType>()) in DiagnoseAssignmentEnum()
1646 if (!Context.hasSameUnqualifiedType(SrcType, DstType) && in DiagnoseAssignmentEnum()
1651 unsigned DstWidth = Context.getIntWidth(DstType); in DiagnoseAssignmentEnum()
1652 bool DstIsSigned = DstType->isSignedIntegerOrEnumerationType(); in DiagnoseAssignmentEnum()
1664 << DstType.getUnqualifiedType(); in DiagnoseAssignmentEnum()
1689 << DstType.getUnqualifiedType(); in DiagnoseAssignmentEnum()
H A DSemaCast.cpp2104 QualType DstType, SourceRange OpRange) { in DiagnoseCallingConvCast() argument
2108 if (Self.Context.hasSameType(SrcType, DstType) || in DiagnoseCallingConvCast()
2109 !SrcType->isFunctionPointerType() || !DstType->isFunctionPointerType()) in DiagnoseCallingConvCast()
2114 DstType->castAs<PointerType>()->getPointeeType()->castAs<FunctionType>(); in DiagnoseCallingConvCast()
H A DSemaExpr.cpp17635 if (!DstType->isFunctionPointerType() || in maybeDiagnoseAssignmentToFunction()
17672 DiagnoseAssignmentEnum(DstType, SrcType, SrcExpr); in DiagnoseAssignmentResult()
17682 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
17692 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
17726 DstType = DstType.getUnqualifiedType(); in DiagnoseAssignmentResult()
17753 Qualifiers rhq = DstType->getPointeeType().getQualifiers(); in DiagnoseAssignmentResult()
17819 else if (DstType->isObjCQualifiedIdType()) { in DiagnoseAssignmentResult()
17821 DstType->castAs<ObjCObjectPointerType>(); in DiagnoseAssignmentResult()
17870 FirstType = DstType; in DiagnoseAssignmentResult()
17882 SecondType = DstType; in DiagnoseAssignmentResult()
[all …]
H A DSema.cpp573 void Sema::diagnoseNullableToNonnullConversion(QualType DstType, in diagnoseNullableToNonnullConversion() argument
581 std::optional<NullabilityKind> TypeNullability = DstType->getNullability(); in diagnoseNullableToNonnullConversion()
585 Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType; in diagnoseNullableToNonnullConversion()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2475 EVT DstType = Bitcast.getValueType(); in performVECTOR_SHUFFLECombine() local
2477 SrcType.getVectorNumElements() != DstType.getVectorNumElements()) in performVECTOR_SHUFFLECombine()
2481 return DAG.getBitcast(DstType, NewShuffle); in performVECTOR_SHUFFLECombine()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DExpr.h4481 ConvertVectorExpr(Expr *SrcExpr, TypeSourceInfo *TI, QualType DstType, in ConvertVectorExpr() argument
4484 : Expr(ConvertVectorExprClass, DstType, VK, OK), SrcExpr(SrcExpr), in ConvertVectorExpr()
6215 AsTypeExpr(Expr *SrcExpr, QualType DstType, ExprValueKind VK, in AsTypeExpr() argument
6218 : Expr(AsTypeExprClass, DstType, VK, OK), SrcExpr(SrcExpr), in AsTypeExpr()
H A DExprCXX.h5141 TypeSourceInfo *DstType, SourceLocation KWLoc, in BuiltinBitCastExpr() argument
5144 DstType), in BuiltinBitCastExpr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp3174 Type *DstType = Bitcast->getType(); in foldICmpBitCast() local
3178 if (SrcType->isVectorTy() == DstType->isVectorTy() && in foldICmpBitCast()
3179 SrcType->getScalarSizeInBits() == DstType->getScalarSizeInBits()) { in foldICmpBitCast()
3241 if (!match(Cmp.getOperand(1), m_APInt(C)) || !DstType->isIntegerTy() || in foldICmpBitCast()
3255 Value *Cast = Builder.CreateBitCast(NotBCSrcOp, DstType); in foldICmpBitCast()
3256 return new ICmpInst(Pred, Cast, ConstantInt::getNullValue(DstType)); in foldICmpBitCast()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h5448 void diagnoseNullableToNonnullConversion(QualType DstType, QualType SrcType,
10865 bool CheckConversionToObjCLiteral(QualType DstType, Expr *&SrcExpr,
12857 QualType DstType, QualType SrcType,
12869 void DiagnoseAssignmentEnum(QualType DstType, QualType SrcType,