| /netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
| H A D | SemaCast.cpp | 138 void checkAddressSpaceCast(QualType SrcType, QualType DestType); 216 static TryCastResult TryStaticPointerDowncast(Sema &Self, QualType SrcType, 222 static TryCastResult TryStaticDowncast(Sema &Self, CanQualType SrcType, 230 QualType SrcType, 629 CastsAwayConstness(Sema &Self, QualType SrcType, QualType DestType, in CastsAwayConstness() argument 640 assert((SrcType->isAnyPointerType() || SrcType->isMemberPointerType() || in CastsAwayConstness() 641 SrcType->isBlockPointerType()) && in CastsAwayConstness() 648 QualType UnwrappedSrcType = Self.Context.getCanonicalType(SrcType), in CastsAwayConstness() 798 QualType SrcType = Self.Context.getCanonicalType(OrigSrcType); in CheckDynamicCast() local 801 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast() [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() 4203 ARCConversionTypeClass srcExprACTC = classifyTypeForARCConversion(SrcType); in CheckObjCBridgeRelatedCast() 4207 CheckObjCBridgeRelatedConversions(castExpr->getBeginLoc(), castType, SrcType, in CheckObjCBridgeRelatedCast() 4229 QualType DestType, QualType SrcType, in checkObjCBridgeRelatedComponents() argument 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() [all …]
|
| H A D | Sema.cpp | 525 QualType SrcType, in diagnoseNullableToNonnullConversion() argument 527 Optional<NullabilityKind> ExprNullability = SrcType->getNullability(Context); in diagnoseNullableToNonnullConversion() 536 Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType; in diagnoseNullableToNonnullConversion()
|
| H A D | SemaExpr.cpp | 15846 QualType DstType, QualType SrcType, in DiagnoseAssignmentResult() argument 15864 DiagnoseAssignmentEnum(DstType, SrcType, SrcExpr); in DiagnoseAssignmentResult() 15874 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult() 15884 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult() 15894 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult() 15907 SrcType->isObjCObjectPointerType(); in DiagnoseAssignmentResult() 15909 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult() 15911 SrcType = SrcType.getUnqualifiedType(); in DiagnoseAssignmentResult() 15934 if (SrcType->isArrayType()) SrcType = Context.getArrayDecayedType(SrcType); in DiagnoseAssignmentResult() 15938 Qualifiers lhq = SrcType->getPointeeType().getQualifiers(); in DiagnoseAssignmentResult() [all …]
|
| H A D | SemaStmt.cpp | 1590 Sema::DiagnoseAssignmentEnum(QualType DstType, QualType SrcType, in DiagnoseAssignmentEnum() argument 1596 if (!Context.hasSameUnqualifiedType(SrcType, DstType) && in DiagnoseAssignmentEnum() 1597 SrcType->isIntegerType()) { in DiagnoseAssignmentEnum()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | MachineIRBuilder.h | 128 enum class SrcType { Ty_Reg, Ty_MIB, Ty_Predicate, Ty_Imm }; enum 129 SrcOp(Register R) : Reg(R), Ty(SrcType::Ty_Reg) {} in SrcOp() 130 SrcOp(const MachineOperand &Op) : Reg(Op.getReg()), Ty(SrcType::Ty_Reg) {} in SrcOp() 131 SrcOp(const MachineInstrBuilder &MIB) : SrcMIB(MIB), Ty(SrcType::Ty_MIB) {} in SrcOp() 132 SrcOp(const CmpInst::Predicate P) : Pred(P), Ty(SrcType::Ty_Predicate) {} in SrcOp() 138 SrcOp(uint64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in SrcOp() 139 SrcOp(int64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in SrcOp() 143 case SrcType::Ty_Predicate: in addSrcToMIB() 146 case SrcType::Ty_Reg: in addSrcToMIB() 149 case SrcType::Ty_MIB: in addSrcToMIB() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| H A D | CGExprScalar.cpp | 308 Value *Src, QualType SrcType, QualType DstType, 323 void EmitIntegerTruncationCheck(Value *Src, QualType SrcType, Value *Dst, 329 void EmitIntegerSignChangeCheck(Value *Src, QualType SrcType, Value *Dst, 351 Value *EmitScalarCast(Value *Src, QualType SrcType, QualType DstType, 875 Value *ScalarExprEmitter::EmitConversionToBool(Value *Src, QualType SrcType) { in EmitConversionToBool() argument 876 assert(SrcType.isCanonical() && "EmitScalarConversion strips typedefs"); in EmitConversionToBool() 878 if (SrcType->isRealFloatingType()) in EmitConversionToBool() 881 if (const MemberPointerType *MPT = dyn_cast<MemberPointerType>(SrcType)) in EmitConversionToBool() 884 assert((SrcType->isIntegerType() || isa<llvm::PointerType>(Src->getType())) && in EmitConversionToBool() 891 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, 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 | 5316 QualType SrcType, QualType DestType, in convertToScalarValue() argument 5321 return Val.isScalar() ? CGF.EmitScalarConversion(Val.getScalarVal(), SrcType, in convertToScalarValue() 5324 Val.getComplexVal(), SrcType, DestType, Loc); in convertToScalarValue() 5328 convertToComplexValue(CodeGenFunction &CGF, RValue Val, QualType SrcType, in convertToComplexValue() argument 5338 Val.getScalarVal(), SrcType, DestElementType, Loc); in convertToComplexValue() 5343 QualType SrcElementType = SrcType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
|
| H A D | CGBuiltin.cpp | 16922 llvm::Type *SrcType = nullptr; member 16933 SrcType = Src->getType(); in BuiltinAlignArgs() 16934 if (SrcType->isPointerTy()) { in BuiltinAlignArgs() 16937 CGF.CGM.getDataLayout().getIndexTypeSizeInBits(SrcType)); in BuiltinAlignArgs() 16939 assert(SrcType->isIntegerTy()); in BuiltinAlignArgs() 16940 IntType = cast<llvm::IntegerType>(SrcType); in BuiltinAlignArgs() 16954 if (Args.SrcType->isPointerTy()) in EmitBuiltinIsAligned() 17000 Result = Builder.CreatePointerCast(Result, Args.SrcType); in EmitBuiltinAlignTo() 17005 assert(Result->getType() == Args.SrcType); in EmitBuiltinAlignTo()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/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 | 257 LLT SrcType = MRI.getType(Src1); in matchCombineShuffleVector() local 262 unsigned SrcNumElts = SrcType.isVector() ? SrcType.getNumElements() : 1; in matchCombineShuffleVector() 316 UndefReg = Builder.buildUndef(SrcType).getReg(0); in matchCombineShuffleVector()
|
| H A D | MachineIRBuilder.cpp | 1090 assert(SrcOps[0].getSrcOpKind() == SrcOp::SrcType::Ty_Predicate && in buildInstr()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 2021 Type *SrcType = X->getType(); in foldTruncShuffle() local 2022 if (!SrcType->isVectorTy() || !SrcType->isIntOrIntVectorTy() || in foldTruncShuffle() 2023 cast<FixedVectorType>(SrcType)->getNumElements() != in foldTruncShuffle() 2025 SrcType->getScalarSizeInBits() % DestType->getScalarSizeInBits() != 0) in foldTruncShuffle() 2034 SrcType->getScalarSizeInBits() / DestType->getScalarSizeInBits(); in foldTruncShuffle()
|
| H A D | InstructionCombining.cpp | 2384 PointerType *SrcType = cast<PointerType>(BCI->getSrcTy()); in visitGetElementPtrInst() local 2385 Type *SrcEltType = SrcType->getElementType(); in visitGetElementPtrInst() 2454 if (SrcType->getPointerAddressSpace() != GEP.getAddressSpace()) in visitGetElementPtrInst() 2463 if (FindElementAtOffset(SrcType, Offset.getSExtValue(), NewIndices)) { in visitGetElementPtrInst()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
| H A D | ExprCXX.cpp | 767 QualType SrcType = getSubExpr()->getType(); in isAlwaysNull() local 770 if (const auto *SrcPTy = SrcType->getAs<PointerType>()) { in isAlwaysNull() 771 SrcType = SrcPTy->getPointeeType(); in isAlwaysNull() 779 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 13145 QualType SrcType = SubExpr->getType(); in VisitCastExpr() local 13223 APFixedPoint Src(Info.Ctx.getFixedPointSemantics(SrcType)); in VisitCastExpr() 13254 return Info.Ctx.getTypeSize(DestType) <= Info.Ctx.getTypeSize(SrcType); in VisitCastExpr() 13256 return Info.Ctx.getTypeSize(DestType) == Info.Ctx.getTypeSize(SrcType); in VisitCastExpr() 13259 return Success(HandleIntToIntCast(Info, E, DestType, SrcType, in VisitCastExpr() 13275 if (Info.Ctx.getTypeSize(DestType) != Info.Ctx.getTypeSize(SrcType)) in VisitCastExpr() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyISelLowering.cpp | 2069 MVT SrcType = CastOp.getSimpleValueType(); in performVECTOR_SHUFFLECombine() local 2071 if (!SrcType.is128BitVector() || in performVECTOR_SHUFFLECombine() 2072 SrcType.getVectorNumElements() != DstType.getVectorNumElements()) in performVECTOR_SHUFFLECombine() 2075 SrcType, SDLoc(N), CastOp, DAG.getUNDEF(SrcType), Shuffle->getMask()); in performVECTOR_SHUFFLECombine()
|
| /netbsd-src/external/apache2/llvm/dist/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,
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/ |
| H A D | Sema.h | 4885 void diagnoseNullableToNonnullConversion(QualType DstType, QualType SrcType, 6038 void CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType, 9818 QualType DestType, QualType SrcType, 9826 QualType DestType, QualType SrcType, 11468 QualType DstType, QualType SrcType, 11480 void DiagnoseAssignmentEnum(QualType DstType, QualType SrcType,
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| H A D | ScalarEvolution.cpp | 2411 if (auto *SrcType = FindTruncSrcType()) { in getAddExpr() local 2418 if (T->getOperand()->getType() != SrcType) { in getAddExpr() 2424 LargeOps.push_back(getAnyExtendExpr(C, SrcType)); in getAddExpr() 2430 if (T->getOperand()->getType() != SrcType) { in getAddExpr() 2436 LargeMulOps.push_back(getAnyExtendExpr(C, SrcType)); in getAddExpr()
|