| /llvm-project-15.0.7/llvm/test/LTO/X86/ |
| H A D | type-mapping-bug.ll | 8 ; to %DstType. 10 %DstType = type { i8 } 14 %Tricky.1 = type { %DstType* } 16 @x = global %DstType zeroinitializer 23 ; getting a mapping from %DstType, which has previously used as
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CSEMIRBuilder.cpp | 71 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 D | CombinerHelper.cpp | 307 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchCombineShuffleVector() local 313 unsigned DstNumElts = DstType.isVector() ? DstType.getNumElements() : 1; in matchCombineShuffleVector() 5041 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in canCombineFMadOrFMA() local 5048 HasFMAD = (LI && TLI.isFMADLegal(MI, DstType)); in canCombineFMadOrFMA() 5062 Aggressive = TLI.enableAggressiveFMAFusion(DstType); in canCombineFMadOrFMA() 5127 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchCombineFAddFpExtFMulToFMadOrFMA() local 5250 LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchCombineFAddFpExtFMulToFMadOrFMAAggressive() local 5311 X = B.buildFPExt(DstType, X).getReg(0); in matchCombineFAddFpExtFMulToFMadOrFMAAggressive() 5312 Y = B.buildFPExt(DstType, Y).getReg(0); in matchCombineFAddFpExtFMulToFMadOrFMAAggressive() 5352 X = B.buildFPExt(DstType, X).getReg(0); in matchCombineFAddFpExtFMulToFMadOrFMAAggressive() [all …]
|
| H A D | LegalizerHelper.cpp | 5038 LLT DstType = MRI.getType(DstReg); in narrowScalarAddSub() local 5040 if (DstType.isVector()) in narrowScalarAddSub()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | MachineIRBuilder.h | 73 enum class DstType { Ty_LLT, Ty_Reg, Ty_RC }; enum 74 DstOp(unsigned R) : Reg(R), Ty(DstType::Ty_Reg) {} in DstOp() 82 case DstType::Ty_Reg: in addDefToMIB() 85 case DstType::Ty_LLT: in addDefToMIB() 88 case DstType::Ty_RC: in addDefToMIB() 96 case DstType::Ty_RC: in getLLTTy() 98 case DstType::Ty_LLT: in getLLTTy() 100 case DstType::Ty_Reg: in getLLTTy() 113 case DstType::Ty_RC: in getRegClass() 120 DstType getDstOpKind() const { return Ty; } in getDstOpKind() [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprScalar.cpp | 1222 DstElementType = DstType; in EmitScalarCast() 1275 if (DstType->isBooleanType()) in EmitScalarConversion() 1282 if (DstType->isFixedPointType() || DstType->isIntegerType() || in EmitScalarConversion() 1283 DstType->isRealFloatingType()) in EmitScalarConversion() 1301 DstType = CGF.getContext().getCanonicalType(DstType); in EmitScalarConversion() 1302 if (SrcType == DstType) return Src; in EmitScalarConversion() 1311 if (DstType->isBooleanType()) in EmitScalarConversion() 1675 DstType = E->getType(); in VisitConvertVectorExpr() local 1680 DstType = CGF.getContext().getCanonicalType(DstType); in VisitConvertVectorExpr() 1681 if (SrcType == DstType) return Src; in VisitConvertVectorExpr() [all …]
|
| H A D | CGStmtOpenMP.cpp | 372 QualType DstType, StringRef Name, in castValueFromUintptr() argument 378 Ctx.getPointerType(DstType), Loc); in castValueFromUintptr() 380 CGF.MakeNaturalAlignAddrLValue(CastedPtr, DstType).getAddress(CGF); in castValueFromUintptr()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPreLegalizerCombiner.cpp | 70 const LLT DstType = MRI.getType(MI.getOperand(0).getReg()); in matchClampI64ToI16() local 71 if (DstType != LLT::scalar(16)) in matchClampI64ToI16()
|
| H A D | AMDGPUPrintfRuntimeBinding.cpp | 462 Type *DstType = (Size == 32) ? Int32Ty : Int64Ty; in lowerPrintfForGpu() local 463 Arg = new PtrToIntInst(Arg, DstType, "PrintArgPtr", Brnch); in lowerPrintfForGpu()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | IRBuilder.cpp | 111 Value *IRBuilderBase::CreateStepVector(Type *DstType, const Twine &Name) { in CreateStepVector() argument 112 Type *STy = DstType->getScalarType(); in CreateStepVector() 113 if (isa<ScalableVectorType>(DstType)) { in CreateStepVector() 114 Type *StepVecType = DstType; in CreateStepVector() 120 VectorType::get(getInt8Ty(), cast<ScalableVectorType>(DstType)); in CreateStepVector() 123 if (StepVecType != DstType) in CreateStepVector() 124 Res = CreateTrunc(Res, DstType); in CreateStepVector() 128 unsigned NumEls = cast<FixedVectorType>(DstType)->getNumElements(); in CreateStepVector()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | IRBuilder.h | 868 Value *CreateStepVector(Type *DstType, const Twine &Name = ""); 911 CallInst *CreateArithmeticFence(Value *Val, Type *DstType, 913 return CreateIntrinsic(Intrinsic::arithmetic_fence, DstType, Val, nullptr, 918 CallInst *CreateExtractVector(Type *DstType, Value *SrcVec, Value *Idx, 921 {DstType, SrcVec->getType()}, {SrcVec, Idx}, nullptr, 926 CallInst *CreateInsertVector(Type *DstType, Value *SrcVec, Value *SubVec, 929 {DstType, SubVec->getType()}, {SrcVec, SubVec, Idx},
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCTargetTransformInfo.cpp | 453 Type *DstType = CI->getType()->getScalarType(); in mightUseCTR() local 454 if (SrcType->isPPC_FP128Ty() || DstType->isPPC_FP128Ty() || in mightUseCTR() 456 isLargeIntegerTy(!TM.isPPC64(), DstType)) in mightUseCTR()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaStmt.cpp | 1628 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 D | Sema.cpp | 570 void Sema::diagnoseNullableToNonnullConversion(QualType DstType, in diagnoseNullableToNonnullConversion() argument 578 Optional<NullabilityKind> TypeNullability = DstType->getNullability(Context); in diagnoseNullableToNonnullConversion() 582 Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType; in diagnoseNullableToNonnullConversion()
|
| H A D | SemaCast.cpp | 2057 QualType DstType, SourceRange OpRange) { in DiagnoseCallingConvCast() argument 2061 if (Self.Context.hasSameType(SrcType, DstType) || in DiagnoseCallingConvCast() 2062 !SrcType->isFunctionPointerType() || !DstType->isFunctionPointerType()) in DiagnoseCallingConvCast() 2067 DstType->castAs<PointerType>()->getPointeeType()->castAs<FunctionType>(); in DiagnoseCallingConvCast()
|
| H A D | SemaExpr.cpp | 16847 if (!DstType->isFunctionPointerType() || in maybeDiagnoseAssignmentToFunction() 16884 DiagnoseAssignmentEnum(DstType, SrcType, SrcExpr); in DiagnoseAssignmentResult() 16894 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult() 16904 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult() 16932 DstType = DstType.getUnqualifiedType(); in DiagnoseAssignmentResult() 16959 Qualifiers rhq = DstType->getPointeeType().getQualifiers(); in DiagnoseAssignmentResult() 17025 else if (DstType->isObjCQualifiedIdType()) { in DiagnoseAssignmentResult() 17027 DstType->castAs<ObjCObjectPointerType>(); in DiagnoseAssignmentResult() 17076 FirstType = DstType; in DiagnoseAssignmentResult() 17088 SecondType = DstType; in DiagnoseAssignmentResult() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 2976 Type *DstType = Bitcast->getType(); in foldICmpBitCast() local 2980 if (SrcType->isVectorTy() == DstType->isVectorTy() && in foldICmpBitCast() 2981 SrcType->getScalarSizeInBits() == DstType->getScalarSizeInBits()) { in foldICmpBitCast() 3044 if (DstType->isPointerTy() && (isa<Constant>(Op1) || isa<BitCastInst>(Op1))) { in foldICmpBitCast() 3055 if (!match(Cmp.getOperand(1), m_APInt(C)) || !DstType->isIntegerTy() || in foldICmpBitCast() 3068 Value *Cast = Builder.CreateBitCast(Builder.CreateNot(BCSrcOp), DstType); in foldICmpBitCast() 3069 return new ICmpInst(Pred, Cast, ConstantInt::getNullValue(DstType)); in foldICmpBitCast()
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyISelLowering.cpp | 2450 MVT DstType = Bitcast.getSimpleValueType(); in performVECTOR_SHUFFLECombine() local 2452 SrcType.getVectorNumElements() != DstType.getVectorNumElements()) in performVECTOR_SHUFFLECombine() 2456 return DAG.getBitcast(DstType, NewShuffle); in performVECTOR_SHUFFLECombine()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | Expr.h | 4476 ConvertVectorExpr(Expr *SrcExpr, TypeSourceInfo *TI, QualType DstType, in ConvertVectorExpr() argument 4479 : Expr(ConvertVectorExprClass, DstType, VK, OK), SrcExpr(SrcExpr), in ConvertVectorExpr() 6041 AsTypeExpr(Expr *SrcExpr, QualType DstType, ExprValueKind VK, in AsTypeExpr() argument 6044 : Expr(AsTypeExprClass, DstType, VK, OK), SrcExpr(SrcExpr), in AsTypeExpr()
|
| H A D | ExprCXX.h | 4906 TypeSourceInfo *DstType, SourceLocation KWLoc, in BuiltinBitCastExpr() argument 4909 DstType), in BuiltinBitCastExpr()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Sema.h | 5193 void diagnoseNullableToNonnullConversion(QualType DstType, QualType SrcType, 10223 bool CheckConversionToObjCLiteral(QualType DstType, Expr *&SrcExpr, 12070 QualType DstType, QualType SrcType, 12082 void DiagnoseAssignmentEnum(QualType DstType, QualType SrcType,
|