| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaCast.cpp | 147 void checkAddressSpaceCast(QualType SrcType, QualType DestType); 225 static TryCastResult TryStaticPointerDowncast(Sema &Self, QualType SrcType, 231 static TryCastResult TryStaticDowncast(Sema &Self, CanQualType SrcType, 239 QualType SrcType, 639 CastsAwayConstness(Sema &Self, QualType SrcType, QualType DestType, in CastsAwayConstness() argument 650 assert((SrcType->isAnyPointerType() || SrcType->isMemberPointerType() || in CastsAwayConstness() 651 SrcType->isBlockPointerType()) && in CastsAwayConstness() 658 QualType UnwrappedSrcType = Self.Context.getCanonicalType(SrcType), in CastsAwayConstness() 808 QualType SrcType = Self.Context.getCanonicalType(OrigSrcType); in CheckDynamicCast() local 811 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast() [all …]
|
| H A D | SemaExprObjC.cpp | 4182 QualType SrcType = castExpr->getType(); in CheckObjCBridgeRelatedCast() local 4186 SrcType = PDecl->getType(); in CheckObjCBridgeRelatedCast() 4190 SrcType = Getter->getReturnType(); in CheckObjCBridgeRelatedCast() 4194 ARCConversionTypeClass srcExprACTC = classifyTypeForARCConversion(SrcType); in CheckObjCBridgeRelatedCast() 4198 CheckObjCBridgeRelatedConversions(castExpr->getBeginLoc(), castType, SrcType, in CheckObjCBridgeRelatedCast() 4220 QualType DestType, QualType SrcType, in checkObjCBridgeRelatedComponents() argument 4226 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents() 4243 << SrcType << DestType; in checkObjCBridgeRelatedComponents() 4254 << SrcType << DestType; in checkObjCBridgeRelatedComponents() 4269 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents() [all …]
|
| H A D | Sema.cpp | 566 QualType SrcType, in diagnoseNullableToNonnullConversion() argument 568 std::optional<NullabilityKind> ExprNullability = SrcType->getNullability(); in diagnoseNullableToNonnullConversion() 577 Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType; in diagnoseNullableToNonnullConversion()
|
| H A D | SemaExpr.cpp | 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() 17202 SrcType->isObjCObjectPointerType(); in DiagnoseAssignmentResult() 17204 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult() 17206 SrcType = SrcType.getUnqualifiedType(); in DiagnoseAssignmentResult() 17229 if (SrcType->isArrayType()) SrcType = Context.getArrayDecayedType(SrcType); in DiagnoseAssignmentResult() [all …]
|
| H A D | SemaStmt.cpp | 1628 Sema::DiagnoseAssignmentEnum(QualType DstType, QualType SrcType, in DiagnoseAssignmentEnum() argument 1634 if (!Context.hasSameUnqualifiedType(SrcType, DstType) && in DiagnoseAssignmentEnum() 1635 SrcType->isIntegerType()) { in DiagnoseAssignmentEnum()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | MachineIRBuilder.h | 137 enum class SrcType { Ty_Reg, Ty_MIB, Ty_Predicate, Ty_Imm }; enum 138 SrcOp(Register R) : Reg(R), Ty(SrcType::Ty_Reg) {} in SrcOp() 139 SrcOp(const MachineOperand &Op) : Reg(Op.getReg()), Ty(SrcType::Ty_Reg) {} in SrcOp() 140 SrcOp(const MachineInstrBuilder &MIB) : SrcMIB(MIB), Ty(SrcType::Ty_MIB) {} in SrcOp() 141 SrcOp(const CmpInst::Predicate P) : Pred(P), Ty(SrcType::Ty_Predicate) {} in SrcOp() 147 SrcOp(uint64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in SrcOp() 148 SrcOp(int64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in SrcOp() 152 case SrcType::Ty_Predicate: in addSrcToMIB() 155 case SrcType::Ty_Reg: in addSrcToMIB() 158 case SrcType::Ty_MIB: in addSrcToMIB() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGExprScalar.cpp | 303 Value *Src, QualType SrcType, QualType DstType, 318 void EmitIntegerTruncationCheck(Value *Src, QualType SrcType, Value *Dst, 324 void EmitIntegerSignChangeCheck(Value *Src, QualType SrcType, Value *Dst, 346 Value *EmitScalarCast(Value *Src, QualType SrcType, QualType DstType, 908 Value *ScalarExprEmitter::EmitConversionToBool(Value *Src, QualType SrcType) { in EmitConversionToBool() argument 909 assert(SrcType.isCanonical() && "EmitScalarConversion strips typedefs"); in EmitConversionToBool() 911 if (SrcType->isRealFloatingType()) in EmitConversionToBool() 914 if (const MemberPointerType *MPT = dyn_cast<MemberPointerType>(SrcType)) in EmitConversionToBool() 917 assert((SrcType->isIntegerType() || isa<llvm::PointerType>(Src->getType())) && in EmitConversionToBool() 924 return EmitPointerToBoolConversion(Src, SrcType); in EmitConversionToBool() [all …]
|
| H A D | CGExprComplex.cpp | 85 ComplexPairTy EmitComplexToComplexCast(ComplexPairTy Val, QualType SrcType, 88 ComplexPairTy EmitScalarToComplexCast(llvm::Value *Val, QualType SrcType, 446 QualType SrcType, in EmitComplexToComplexCast() argument 450 SrcType = SrcType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast() 457 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast() 459 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast() 464 QualType SrcType, in EmitScalarToComplexCast() argument 469 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); in EmitScalarToComplexCast()
|
| H A D | CGStmtOpenMP.cpp | 5912 QualType SrcType, QualType DestType, in convertToScalarValue() argument 5917 return Val.isScalar() ? CGF.EmitScalarConversion(Val.getScalarVal(), SrcType, in convertToScalarValue() 5920 Val.getComplexVal(), SrcType, DestType, Loc); in convertToScalarValue() 5924 convertToComplexValue(CodeGenFunction &CGF, RValue Val, QualType SrcType, in convertToComplexValue() argument 5934 Val.getScalarVal(), SrcType, DestElementType, Loc); in convertToComplexValue() 5939 QualType SrcElementType = SrcType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
|
| H A D | CGBuiltin.cpp | 18566 llvm::Type *SrcType = nullptr; member 18577 SrcType = Src->getType(); in BuiltinAlignArgs() 18578 if (SrcType->isPointerTy()) { in BuiltinAlignArgs() 18581 CGF.CGM.getDataLayout().getIndexTypeSizeInBits(SrcType)); in BuiltinAlignArgs() 18583 assert(SrcType->isIntegerTy()); in BuiltinAlignArgs() 18584 IntType = cast<llvm::IntegerType>(SrcType); in BuiltinAlignArgs() 18598 if (Args.SrcType->isPointerTy()) in EmitBuiltinIsAligned() 18644 Result = Builder.CreatePointerCast(Result, Args.SrcType); in EmitBuiltinAlignTo() 18649 assert(Result->getType() == Args.SrcType); in EmitBuiltinAlignTo()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPreLegalizerCombiner.cpp | 66 const LLT SrcType = MRI.getType(MI.getOperand(1).getReg()); in matchClampI64ToI16() local 67 if (SrcType != LLT::scalar(64)) in matchClampI64ToI16()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CSEMIRBuilder.cpp | 88 case SrcOp::SrcType::Ty_Imm: in profileSrcOp() 91 case SrcOp::SrcType::Ty_Predicate: in profileSrcOp()
|
| H A D | CombinerHelper.cpp | 313 LLT SrcType = MRI.getType(Src1); in matchCombineShuffleVector() local 318 unsigned SrcNumElts = SrcType.isVector() ? SrcType.getNumElements() : 1; in matchCombineShuffleVector() 372 UndefReg = Builder.buildUndef(SrcType).getReg(0); in matchCombineShuffleVector()
|
| H A D | MachineIRBuilder.cpp | 1151 assert(SrcOps[0].getSrcOpKind() == SrcOp::SrcType::Ty_Predicate && in buildInstr()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 2348 Type *SrcType = X->getType(); in foldTruncShuffle() local 2349 if (!SrcType->isVectorTy() || !SrcType->isIntOrIntVectorTy() || in foldTruncShuffle() 2350 cast<FixedVectorType>(SrcType)->getNumElements() != in foldTruncShuffle() 2352 SrcType->getScalarSizeInBits() % DestType->getScalarSizeInBits() != 0) in foldTruncShuffle() 2361 SrcType->getScalarSizeInBits() / DestType->getScalarSizeInBits(); in foldTruncShuffle()
|
| H A D | InstructionCombining.cpp | 2179 PointerType *SrcType = cast<PointerType>(BCI->getSrcTy()); in visitGEPOfBitcast() local 2180 if (SrcType->isOpaque()) in visitGEPOfBitcast() 2184 Type *SrcEltType = SrcType->getNonOpaquePointerElementType(); in visitGEPOfBitcast() 2253 if (SrcType->getPointerAddressSpace() != GEP.getAddressSpace()) in visitGEPOfBitcast() 2262 if (findElementAtOffset(SrcType, Offset.getSExtValue(), NewIndices, DL)) { in visitGEPOfBitcast()
|
| H A D | InstCombineCompares.cpp | 2928 Type *SrcType = Bitcast->getSrcTy(); in foldICmpBitCast() local 2933 if (SrcType->isVectorTy() == DstType->isVectorTy() && in foldICmpBitCast() 2934 SrcType->getScalarSizeInBits() == DstType->getScalarSizeInBits()) { in foldICmpBitCast() 2979 if (!(XType->isPPC_FP128Ty() || SrcType->isPPC_FP128Ty())) { in foldICmpBitCast() 3003 Op1 = Builder.CreateBitCast(Op1, SrcType); in foldICmpBitCast() 3009 !SrcType->isIntOrIntVectorTy()) in foldICmpBitCast() 3050 auto *VecTy = cast<VectorType>(SrcType); in foldICmpBitCast()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | ExprCXX.cpp | 770 QualType SrcType = getSubExpr()->getType(); in isAlwaysNull() local 773 if (const auto *SrcPTy = SrcType->getAs<PointerType>()) { in isAlwaysNull() 774 SrcType = SrcPTy->getPointeeType(); in isAlwaysNull() 782 cast<CXXRecordDecl>(SrcType->castAs<RecordType>()->getDecl()); in isAlwaysNull()
|
| H A D | ExprConstant.cpp | 2547 QualType SrcType, const APFloat &Value, in HandleFloatToIntCast() argument 2616 QualType SrcType, QualType DestType, in HandleFloatToFloatCast() argument 2628 QualType DestType, QualType SrcType, in HandleIntToIntCast() argument 2642 QualType SrcType, const APSInt &Value, in HandleIntToFloatCast() argument 13528 QualType SrcType = SubExpr->getType(); in VisitCastExpr() local 13606 APFixedPoint Src(Info.Ctx.getFixedPointSemantics(SrcType)); in VisitCastExpr() 13637 return Info.Ctx.getTypeSize(DestType) <= Info.Ctx.getTypeSize(SrcType); in VisitCastExpr() 13639 return Info.Ctx.getTypeSize(DestType) == Info.Ctx.getTypeSize(SrcType); in VisitCastExpr() 13691 return Success(HandleIntToIntCast(Info, E, DestType, SrcType, in VisitCastExpr() 13708 if (Info.Ctx.getTypeSize(DestType) != Info.Ctx.getTypeSize(SrcType)) in VisitCastExpr() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyISelLowering.cpp | 2349 MVT SrcType = CastOp.getSimpleValueType(); in performVECTOR_SHUFFLECombine() local 2351 if (!SrcType.is128BitVector() || in performVECTOR_SHUFFLECombine() 2352 SrcType.getVectorNumElements() != DstType.getVectorNumElements()) in performVECTOR_SHUFFLECombine() 2355 SrcType, SDLoc(N), CastOp, DAG.getUNDEF(SrcType), Shuffle->getMask()); in performVECTOR_SHUFFLECombine()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/BPF/ |
| H A D | BPFInstrInfo.td | 838 class BSWAP<bits<32> SizeOp, string OpcodeStr, BPFSrcType SrcType, list<dag> Pattern> 839 : TYPE_ALU_JMP<BPF_END.Value, SrcType.Value,
|
| /openbsd-src/gnu/llvm/clang/include/clang/Sema/ |
| H A D | Sema.h | 5322 void diagnoseNullableToNonnullConversion(QualType DstType, QualType SrcType, 6537 void CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType, 10536 QualType DestType, QualType SrcType, 10544 QualType DestType, QualType SrcType, 12443 QualType DstType, QualType SrcType, 12455 void DiagnoseAssignmentEnum(QualType DstType, QualType SrcType,
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | ScalarEvolution.cpp | 2638 if (auto *SrcType = FindTruncSrcType()) { in getAddExpr() local 2645 if (T->getOperand()->getType() != SrcType) { in getAddExpr() 2651 LargeOps.push_back(getAnyExtendExpr(C, SrcType)); in getAddExpr() 2657 if (T->getOperand()->getType() != SrcType) { in getAddExpr() 2663 LargeMulOps.push_back(getAnyExtendExpr(C, SrcType)); in getAddExpr()
|