Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/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.cpp311 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchCombineShuffleVector() local
317 unsigned DstNumElts = DstType.isVector() ? DstType.getNumElements() : 1; in matchCombineShuffleVector()
5321 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in canCombineFMadOrFMA() local
5328 HasFMAD = (!isPreLegalize() && TLI.isFMADLegal(MI, DstType)); in canCombineFMadOrFMA()
5330 bool HasFMA = TLI.isFMAFasterThanFMulAndFAdd(*MF, DstType) && in canCombineFMadOrFMA()
5331 isLegalOrBeforeLegalizer({TargetOpcode::G_FMA, {DstType}}); in canCombineFMadOrFMA()
5342 Aggressive = TLI.enableAggressiveFMAFusion(DstType); in canCombineFMadOrFMA()
5407 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchCombineFAddFpExtFMulToFMadOrFMA() local
5424 TLI.isFPExtFoldable(MI, PreferredFusedOpcode, DstType, in matchCombineFAddFpExtFMulToFMadOrFMA()
5427 auto FpExtX = B.buildFPExt(DstType, FpExtSrc->getOperand(1).getReg()); in matchCombineFAddFpExtFMulToFMadOrFMA()
[all …]
H A DLegalizerHelper.cpp5132 LLT DstType = MRI.getType(DstReg); in narrowScalarAddSub() local
5134 if (DstType.isVector()) in narrowScalarAddSub()
/openbsd-src/gnu/llvm/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()
77 DstOp(Register R) : Reg(R), Ty(DstType::Ty_Reg) {} in DstOp()
78 DstOp(const MachineOperand &Op) : Reg(Op.getReg()), Ty(DstType::Ty_Reg) {} in DstOp()
79 DstOp(const LLT T) : LLTTy(T), Ty(DstType::Ty_LLT) {} in DstOp()
80 DstOp(const TargetRegisterClass *TRC) : RC(TRC), Ty(DstType::Ty_RC) {} 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()
[all …]
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGExprScalar.cpp303 Value *Src, QualType SrcType, QualType DstType,
319 QualType DstType, SourceLocation Loc);
325 QualType DstType, SourceLocation Loc);
346 Value *EmitScalarCast(Value *Src, QualType SrcType, QualType DstType,
929 QualType DstType, llvm::Type *DstTy, SourceLocation Loc) { in EmitFloatConversionCheck() argument
945 unsigned Width = CGF.getContext().getIntWidth(DstType); in EmitFloatConversionCheck()
946 bool Unsigned = DstType->isUnsignedIntegerOrEnumerationType(); in EmitFloatConversionCheck()
990 CGF.EmitCheckTypeDescriptor(DstType)}; in EmitFloatConversionCheck()
1000 QualType DstType, CGBuilderTy &Builder) { in EmitIntegerTruncationCheckHelper() argument
1012 bool DstSigned = DstType->isSignedIntegerOrEnumerationType(); in EmitIntegerTruncationCheckHelper()
[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()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUPreLegalizerCombiner.cpp70 const LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchClampI64ToI16() local
71 if (DstType != LLT::scalar(16)) in matchClampI64ToI16()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DIRBuilder.cpp110 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()
123 Res = CreateTrunc(Res, DstType); in CreateStepVector()
127 unsigned NumEls = cast<FixedVectorType>(DstType)->getNumElements(); in CreateStepVector()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DIRBuilder.h897 Value *CreateStepVector(Type *DstType, const Twine &Name = "");
956 CallInst *CreateArithmeticFence(Value *Val, Type *DstType,
958 return CreateIntrinsic(Intrinsic::arithmetic_fence, DstType, Val, nullptr,
963 CallInst *CreateExtractVector(Type *DstType, Value *SrcVec, Value *Idx,
966 {DstType, SrcVec->getType()}, {SrcVec, Idx}, nullptr,
971 CallInst *CreateInsertVector(Type *DstType, Value *SrcVec, Value *SubVec,
974 {DstType, SubVec->getType()}, {SrcVec, SubVec, Idx},
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaStmt.cpp1628 Sema::DiagnoseAssignmentEnum(QualType DstType, QualType SrcType, in DiagnoseAssignmentEnum() argument
1633 if (const EnumType *ET = DstType->getAs<EnumType>()) in DiagnoseAssignmentEnum()
1634 if (!Context.hasSameUnqualifiedType(SrcType, DstType) && in DiagnoseAssignmentEnum()
1639 unsigned DstWidth = Context.getIntWidth(DstType); in DiagnoseAssignmentEnum()
1640 bool DstIsSigned = DstType->isSignedIntegerOrEnumerationType(); in DiagnoseAssignmentEnum()
1652 << DstType.getUnqualifiedType(); in DiagnoseAssignmentEnum()
1677 << DstType.getUnqualifiedType(); in DiagnoseAssignmentEnum()
H A DSema.cpp565 void Sema::diagnoseNullableToNonnullConversion(QualType DstType, in diagnoseNullableToNonnullConversion() argument
573 std::optional<NullabilityKind> TypeNullability = DstType->getNullability(); in diagnoseNullableToNonnullConversion()
577 Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType; in diagnoseNullableToNonnullConversion()
H A DSemaCast.cpp2073 QualType DstType, SourceRange OpRange) { in DiagnoseCallingConvCast() argument
2077 if (Self.Context.hasSameType(SrcType, DstType) || in DiagnoseCallingConvCast()
2078 !SrcType->isFunctionPointerType() || !DstType->isFunctionPointerType()) in DiagnoseCallingConvCast()
2083 DstType->castAs<PointerType>()->getPointeeType()->castAs<FunctionType>(); in DiagnoseCallingConvCast()
H A DSemaExpr.cpp17059 bool Sema::CheckConversionToObjCLiteral(QualType DstType, Expr *&Exp, in CheckConversionToObjCLiteral() argument
17064 const ObjCObjectPointerType *PT = DstType->getAs<ObjCObjectPointerType>(); in CheckConversionToObjCLiteral()
17114 static bool maybeDiagnoseAssignmentToFunction(Sema &S, QualType DstType, in maybeDiagnoseAssignmentToFunction() argument
17116 if (!DstType->isFunctionPointerType() || in maybeDiagnoseAssignmentToFunction()
17135 QualType DstType, QualType SrcType, in DiagnoseAssignmentResult() argument
17153 DiagnoseAssignmentEnum(DstType, SrcType, SrcExpr); in DiagnoseAssignmentResult()
17163 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
17173 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
17179 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
17189 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp2929 Type *DstType = Bitcast->getType(); in foldICmpBitCast() local
2933 if (SrcType->isVectorTy() == DstType->isVectorTy() && in foldICmpBitCast()
2934 SrcType->getScalarSizeInBits() == DstType->getScalarSizeInBits()) { in foldICmpBitCast()
2997 if (DstType->isPointerTy() && (isa<Constant>(Op1) || isa<BitCastInst>(Op1))) { in foldICmpBitCast()
3008 if (!match(Cmp.getOperand(1), m_APInt(C)) || !DstType->isIntegerTy() || in foldICmpBitCast()
3021 Value *Cast = Builder.CreateBitCast(Builder.CreateNot(BCSrcOp), DstType); in foldICmpBitCast()
3022 return new ICmpInst(Pred, Cast, ConstantInt::getNullValue(DstType)); in foldICmpBitCast()
/openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2350 MVT DstType = Bitcast.getSimpleValueType(); in performVECTOR_SHUFFLECombine() local
2352 SrcType.getVectorNumElements() != DstType.getVectorNumElements()) in performVECTOR_SHUFFLECombine()
2356 return DAG.getBitcast(DstType, NewShuffle); in performVECTOR_SHUFFLECombine()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DExpr.h4483 ConvertVectorExpr(Expr *SrcExpr, TypeSourceInfo *TI, QualType DstType, in ConvertVectorExpr() argument
4486 : Expr(ConvertVectorExprClass, DstType, VK, OK), SrcExpr(SrcExpr), in ConvertVectorExpr()
6044 AsTypeExpr(Expr *SrcExpr, QualType DstType, ExprValueKind VK, in AsTypeExpr() argument
6047 : Expr(AsTypeExprClass, DstType, VK, OK), SrcExpr(SrcExpr), in AsTypeExpr()
H A DExprCXX.h5123 TypeSourceInfo *DstType, SourceLocation KWLoc, in BuiltinBitCastExpr() argument
5126 DstType), in BuiltinBitCastExpr()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DSema.h5322 void diagnoseNullableToNonnullConversion(QualType DstType, QualType SrcType,
10547 bool CheckConversionToObjCLiteral(QualType DstType, Expr *&SrcExpr,
12443 QualType DstType, QualType SrcType,
12455 void DiagnoseAssignmentEnum(QualType DstType, QualType SrcType,