| /freebsd-13.1/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaCast.cpp | 649 assert((SrcType->isAnyPointerType() || SrcType->isMemberPointerType() || in CastsAwayConstness() 823 SrcPointee = SrcType; in CheckDynamicCast() 830 SrcPointee = SrcType; in CheckDynamicCast() 1071 if (((SrcType->isBlockPointerType() || SrcType->isFunctionPointerType()) && in checkCastFunctionType() 1933 SrcType = Self.Context.getPointerType(SrcType); in TryConstCast() 2006 SrcTy = SrcType; in CheckCompatibleReinterpretCast() 2261 SrcType = Self.Context.getPointerType(SrcType); in TryReinterpretCast() 2267 SrcType = Self.Context.getCanonicalType(SrcType); in TryReinterpretCast() 2803 if ((SrcType->isAnyPointerType() || SrcType->isBlockPointerType()) in DiagnoseBadFunctionCast() 2958 if (!SrcType->isScalarType() && !SrcType->isVectorType() && in CheckCStyleCast() [all …]
|
| H A D | SemaExprObjC.cpp | 4191 QualType SrcType = castExpr->getType(); in CheckObjCBridgeRelatedCast() local 4195 SrcType = PDecl->getType(); in CheckObjCBridgeRelatedCast() 4199 SrcType = Getter->getReturnType(); in CheckObjCBridgeRelatedCast() 4235 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents() 4252 << SrcType << DestType; in checkObjCBridgeRelatedComponents() 4263 << SrcType << DestType; in checkObjCBridgeRelatedComponents() 4278 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents() 4292 << SrcType << DestType << Sel << true; in checkObjCBridgeRelatedComponents() 4303 QualType DestType, QualType SrcType, in CheckObjCBridgeRelatedConversions() argument 4333 << SrcType << DestType << ClassMethod->getSelector() << false in CheckObjCBridgeRelatedConversions() [all …]
|
| H A D | Sema.cpp | 549 QualType SrcType, in diagnoseNullableToNonnullConversion() argument 551 Optional<NullabilityKind> ExprNullability = SrcType->getNullability(Context); in diagnoseNullableToNonnullConversion() 560 Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType; in diagnoseNullableToNonnullConversion()
|
| H A D | SemaExpr.cpp | 16023 DiagnoseAssignmentEnum(DstType, SrcType, SrcExpr); in DiagnoseAssignmentResult() 16033 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult() 16043 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult() 16066 SrcType->isObjCObjectPointerType(); in DiagnoseAssignmentResult() 16070 SrcType = SrcType.getUnqualifiedType(); in DiagnoseAssignmentResult() 16093 if (SrcType->isArrayType()) SrcType = Context.getArrayDecayedType(SrcType); in DiagnoseAssignmentResult() 16097 Qualifiers lhq = SrcType->getPointeeType().getQualifiers(); in DiagnoseAssignmentResult() 16153 if (SrcType->isObjCQualifiedIdType()) { in DiagnoseAssignmentResult() 16155 SrcType->castAs<ObjCObjectPointerType>(); in DiagnoseAssignmentResult() 16216 SecondType = SrcType; in DiagnoseAssignmentResult() [all …]
|
| H A D | SemaStmt.cpp | 1591 Sema::DiagnoseAssignmentEnum(QualType DstType, QualType SrcType, in DiagnoseAssignmentEnum() argument 1597 if (!Context.hasSameUnqualifiedType(SrcType, DstType) && in DiagnoseAssignmentEnum() 1598 SrcType->isIntegerType()) { in DiagnoseAssignmentEnum()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | MachineIRBuilder.h | 146 case SrcType::Ty_Reg: in addSrcToMIB() 149 case SrcType::Ty_MIB: in addSrcToMIB() 152 case SrcType::Ty_Imm: in addSrcToMIB() 161 case SrcType::Ty_Imm: in getLLTTy() 163 case SrcType::Ty_Reg: in getLLTTy() 165 case SrcType::Ty_MIB: in getLLTTy() 174 case SrcType::Ty_Imm: in getReg() 176 case SrcType::Ty_Reg: in getReg() 178 case SrcType::Ty_MIB: in getReg() 195 case SrcType::Ty_Imm: in getImm() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprScalar.cpp | 880 if (SrcType->isRealFloatingType()) in EmitConversionToBool() 1219 SrcElementType = SrcType; in EmitScalarCast() 1261 if (SrcType->isFixedPointType()) { in EmitScalarConversion() 1276 if (SrcType->isIntegerType() || SrcType->isRealFloatingType()) in EmitScalarConversion() 1287 SrcType = CGF.getContext().getCanonicalType(SrcType); in EmitScalarConversion() 1289 if (SrcType == DstType) return Src; in EmitScalarConversion() 1294 QualType OrigSrcType = SrcType; in EmitScalarConversion() 1367 SrcType.getTypePtr() && in EmitScalarConversion() 1665 SrcType = CGF.getContext().getCanonicalType(SrcType); in VisitConvertVectorExpr() 1667 if (SrcType == DstType) return Src; in VisitConvertVectorExpr() [all …]
|
| H A D | CGExprComplex.cpp | 85 ComplexPairTy EmitComplexToComplexCast(ComplexPairTy Val, QualType SrcType, 88 ComplexPairTy EmitScalarToComplexCast(llvm::Value *Val, QualType SrcType, 427 QualType SrcType, in EmitComplexToComplexCast() argument 431 SrcType = SrcType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast() 438 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast() 440 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast() 445 QualType SrcType, in EmitScalarToComplexCast() argument 450 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); in EmitScalarToComplexCast()
|
| H A D | CGStmtOpenMP.cpp | 5344 QualType SrcType, QualType DestType, in convertToScalarValue() argument 5349 return Val.isScalar() ? CGF.EmitScalarConversion(Val.getScalarVal(), SrcType, in convertToScalarValue() 5352 Val.getComplexVal(), SrcType, DestType, Loc); in convertToScalarValue() 5356 convertToComplexValue(CodeGenFunction &CGF, RValue Val, QualType SrcType, in convertToComplexValue() argument 5366 Val.getScalarVal(), SrcType, DestElementType, Loc); in convertToComplexValue() 5371 QualType SrcElementType = SrcType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
|
| H A D | CGBuiltin.cpp | 17541 llvm::Type *SrcType = nullptr; member 17552 SrcType = Src->getType(); in BuiltinAlignArgs() 17553 if (SrcType->isPointerTy()) { in BuiltinAlignArgs() 17556 CGF.CGM.getDataLayout().getIndexTypeSizeInBits(SrcType)); in BuiltinAlignArgs() 17558 assert(SrcType->isIntegerTy()); in BuiltinAlignArgs() 17559 IntType = cast<llvm::IntegerType>(SrcType); in BuiltinAlignArgs() 17573 if (Args.SrcType->isPointerTy()) in EmitBuiltinIsAligned() 17619 Result = Builder.CreatePointerCast(Result, Args.SrcType); in EmitBuiltinAlignTo() 17624 assert(Result->getType() == Args.SrcType); in EmitBuiltinAlignTo()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPreLegalizerCombiner.cpp | 63 const LLT SrcType = MRI.getType(MI.getOperand(1).getReg()); in matchClampI64ToI16() local 64 if (SrcType != LLT::scalar(64)) in matchClampI64ToI16()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CSEMIRBuilder.cpp | 85 case SrcOp::SrcType::Ty_Imm: in profileSrcOp() 88 case SrcOp::SrcType::Ty_Predicate: in profileSrcOp()
|
| H A D | CombinerHelper.cpp | 259 LLT SrcType = MRI.getType(Src1); in matchCombineShuffleVector() local 264 unsigned SrcNumElts = SrcType.isVector() ? SrcType.getNumElements() : 1; in matchCombineShuffleVector() 318 UndefReg = Builder.buildUndef(SrcType).getReg(0); in matchCombineShuffleVector()
|
| H A D | MachineIRBuilder.cpp | 1089 assert(SrcOps[0].getSrcOpKind() == SrcOp::SrcType::Ty_Predicate && in buildInstr()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 2081 Type *SrcType = X->getType(); in foldTruncShuffle() local 2082 if (!SrcType->isVectorTy() || !SrcType->isIntOrIntVectorTy() || in foldTruncShuffle() 2083 cast<FixedVectorType>(SrcType)->getNumElements() != in foldTruncShuffle() 2085 SrcType->getScalarSizeInBits() % DestType->getScalarSizeInBits() != 0) in foldTruncShuffle() 2094 SrcType->getScalarSizeInBits() / DestType->getScalarSizeInBits(); in foldTruncShuffle()
|
| H A D | InstructionCombining.cpp | 2441 PointerType *SrcType = cast<PointerType>(BCI->getSrcTy()); in visitGetElementPtrInst() local 2442 Type *SrcEltType = SrcType->getElementType(); in visitGetElementPtrInst() 2511 if (SrcType->getPointerAddressSpace() != GEP.getAddressSpace()) in visitGetElementPtrInst() 2520 if (FindElementAtOffset(SrcType, Offset.getSExtValue(), NewIndices)) { in visitGetElementPtrInst()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCTargetTransformInfo.cpp | 451 Type *SrcType = CI->getArgOperand(0)->getType()->getScalarType(); in mightUseCTR() local 453 if (SrcType->isPPC_FP128Ty() || DstType->isPPC_FP128Ty() || in mightUseCTR() 454 isLargeIntegerTy(!TM.isPPC64(), SrcType) || in mightUseCTR()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/AST/ |
| H A D | ExprCXX.cpp | 769 QualType SrcType = getSubExpr()->getType(); in isAlwaysNull() local 772 if (const auto *SrcPTy = SrcType->getAs<PointerType>()) { in isAlwaysNull() 773 SrcType = SrcPTy->getPointeeType(); in isAlwaysNull() 781 cast<CXXRecordDecl>(SrcType->castAs<RecordType>()->getDecl()); in isAlwaysNull()
|
| H A D | ExprConstant.cpp | 2524 QualType SrcType, const APFloat &Value, in HandleFloatToIntCast() argument 2596 QualType SrcType, QualType DestType, in HandleFloatToFloatCast() argument 2609 QualType DestType, QualType SrcType, in HandleIntToIntCast() argument 2623 QualType SrcType, const APSInt &Value, in HandleIntToFloatCast() argument 13180 QualType SrcType = SubExpr->getType(); in VisitCastExpr() local 13258 APFixedPoint Src(Info.Ctx.getFixedPointSemantics(SrcType)); in VisitCastExpr() 13291 return Info.Ctx.getTypeSize(DestType) == Info.Ctx.getTypeSize(SrcType); in VisitCastExpr() 13294 return Success(HandleIntToIntCast(Info, E, DestType, SrcType, in VisitCastExpr() 13310 if (Info.Ctx.getTypeSize(DestType) != Info.Ctx.getTypeSize(SrcType)) in VisitCastExpr() 13321 if (!V.toIntegralConstant(AsInt, SrcType, Info.Ctx)) in VisitCastExpr() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyISelLowering.cpp | 2172 MVT SrcType = CastOp.getSimpleValueType(); in performVECTOR_SHUFFLECombine() local 2174 if (!SrcType.is128BitVector() || in performVECTOR_SHUFFLECombine() 2175 SrcType.getVectorNumElements() != DstType.getVectorNumElements()) in performVECTOR_SHUFFLECombine() 2178 SrcType, SDLoc(N), CastOp, DAG.getUNDEF(SrcType), Shuffle->getMask()); in performVECTOR_SHUFFLECombine()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BPFInstrInfo.td | 836 class BSWAP<bits<32> SizeOp, string OpcodeStr, BPFSrcType SrcType, list<dag> Pattern> 837 : TYPE_ALU_JMP<BPF_END.Value, SrcType.Value,
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Sema.h | 4925 void diagnoseNullableToNonnullConversion(QualType DstType, QualType SrcType, 6099 void CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType, 9887 QualType DestType, QualType SrcType, 9895 QualType DestType, QualType SrcType, 11569 QualType DstType, QualType SrcType, 11581 void DiagnoseAssignmentEnum(QualType DstType, QualType SrcType,
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ScalarEvolution.cpp | 2502 if (auto *SrcType = FindTruncSrcType()) { in getAddExpr() local 2509 if (T->getOperand()->getType() != SrcType) { in getAddExpr() 2515 LargeOps.push_back(getAnyExtendExpr(C, SrcType)); in getAddExpr() 2521 if (T->getOperand()->getType() != SrcType) { in getAddExpr() 2527 LargeMulOps.push_back(getAnyExtendExpr(C, SrcType)); in getAddExpr()
|