Home
last modified time | relevance | path

Searched refs:SrcType (Results 1 – 23 of 23) sorted by relevance

/external/clang/lib/Sema/
DSemaCast.cpp167 static TryCastResult TryStaticPointerDowncast(Sema &Self, QualType SrcType,
173 static TryCastResult TryStaticDowncast(Sema &Self, CanQualType SrcType,
181 QualType SrcType,
486 CastsAwayConstness(Sema &Self, QualType SrcType, QualType DestType, in CastsAwayConstness() argument
501 assert((SrcType->isAnyPointerType() || SrcType->isMemberPointerType() || in CastsAwayConstness()
502 SrcType->isBlockPointerType()) && in CastsAwayConstness()
508 QualType UnwrappedSrcType = Self.Context.getCanonicalType(SrcType), in CastsAwayConstness()
622 QualType SrcType = Self.Context.getCanonicalType(OrigSrcType); in CheckDynamicCast() local
625 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast()
638 SrcPointee = SrcType; in CheckDynamicCast()
[all …]
DSemaExprObjC.cpp3776 QualType SrcType = castExpr->getType(); in CheckObjCBridgeRelatedCast() local
3780 SrcType = PDecl->getType(); in CheckObjCBridgeRelatedCast()
3784 SrcType = Getter->getReturnType(); in CheckObjCBridgeRelatedCast()
3789 ARCConversionTypeClass srcExprACTC = classifyTypeForARCConversion(SrcType); in CheckObjCBridgeRelatedCast()
3794 castType, SrcType, castExpr); in CheckObjCBridgeRelatedCast()
3816 QualType DestType, QualType SrcType, in checkObjCBridgeRelatedComponents() argument
3822 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents()
3838 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
3847 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
3860 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents()
[all …]
DSema.cpp353 QualType SrcType, in diagnoseNullableToNonnullConversion() argument
355 Optional<NullabilityKind> ExprNullability = SrcType->getNullability(Context); in diagnoseNullableToNonnullConversion()
363 Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType; in diagnoseNullableToNonnullConversion()
DSemaExpr.cpp11852 QualType DstType, QualType SrcType, in DiagnoseAssignmentResult() argument
11871 DiagnoseAssignmentEnum(DstType, SrcType, SrcExpr); in DiagnoseAssignmentResult()
11876 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
11881 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
11890 SrcType->isObjCObjectPointerType(); in DiagnoseAssignmentResult()
11892 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
11895 SrcType = SrcType.getUnqualifiedType(); in DiagnoseAssignmentResult()
11908 if (SrcType->isArrayType()) SrcType = Context.getArrayDecayedType(SrcType); in DiagnoseAssignmentResult()
11910 Qualifiers lhq = SrcType->getPointeeType().getQualifiers(); in DiagnoseAssignmentResult()
11950 if (SrcType->isObjCQualifiedIdType()) { in DiagnoseAssignmentResult()
[all …]
DSemaStmt.cpp1171 Sema::DiagnoseAssignmentEnum(QualType DstType, QualType SrcType, in DiagnoseAssignmentEnum() argument
1177 if (!Context.hasSameUnqualifiedType(SrcType, DstType) && in DiagnoseAssignmentEnum()
1178 SrcType->isIntegerType()) { in DiagnoseAssignmentEnum()
/external/opencv3/modules/cudaarithm/src/cuda/
Dsub_scalar.cu59 …template <typename SrcType, typename ScalarType, typename DstType> struct SubScalarOp : unary_func…
63 __device__ __forceinline__ DstType operator ()(SrcType a) const in operator ()()
69 …template <typename SrcType, typename ScalarType, typename DstType> struct SubScalarOpInv : unary_f…
73 __device__ __forceinline__ DstType operator ()(SrcType a) const in operator ()()
89 template <typename SrcType, typename ScalarDepth, typename DstType>
92 typedef typename MakeVec<ScalarDepth, VecTraits<SrcType>::cn>::type ScalarType; in subScalarImpl()
98 SubScalarOpInv<SrcType, ScalarType, DstType> op; in subScalarImpl()
102 …gridTransformUnary_< TransformPolicy<ScalarDepth> >(globPtr<SrcType>(src), globPtr<DstType>(dst), … in subScalarImpl()
104 …gridTransformUnary_< TransformPolicy<ScalarDepth> >(globPtr<SrcType>(src), globPtr<DstType>(dst), … in subScalarImpl()
108 SubScalarOp<SrcType, ScalarType, DstType> op; in subScalarImpl()
[all …]
Ddiv_scalar.cu107 …template <typename SrcType, typename ScalarType, typename DstType> struct DivScalarOp : unary_func…
111 __device__ __forceinline__ DstType operator ()(SrcType a) const in operator ()()
117 …template <typename SrcType, typename ScalarType, typename DstType> struct DivScalarOpInv : unary_f…
121 __device__ __forceinline__ DstType operator ()(SrcType a) const in operator ()()
137 template <typename SrcType, typename ScalarDepth, typename DstType>
140 typedef typename MakeVec<ScalarDepth, VecTraits<SrcType>::cn>::type ScalarType; in divScalarImpl()
146 DivScalarOpInv<SrcType, ScalarType, DstType> op; in divScalarImpl()
149 …gridTransformUnary_< TransformPolicy<ScalarDepth> >(globPtr<SrcType>(src), globPtr<DstType>(dst), … in divScalarImpl()
153 DivScalarOp<SrcType, ScalarType, DstType> op; in divScalarImpl()
156 …gridTransformUnary_< TransformPolicy<ScalarDepth> >(globPtr<SrcType>(src), globPtr<DstType>(dst), … in divScalarImpl()
Dadd_scalar.cu59 …template <typename SrcType, typename ScalarType, typename DstType> struct AddScalarOp : unary_func…
63 __device__ __forceinline__ DstType operator ()(SrcType a) const in operator ()()
79 template <typename SrcType, typename ScalarDepth, typename DstType>
82 typedef typename MakeVec<ScalarDepth, VecTraits<SrcType>::cn>::type ScalarType; in addScalarImpl()
86 AddScalarOp<SrcType, ScalarType, DstType> op; in addScalarImpl()
90 …gridTransformUnary_< TransformPolicy<ScalarDepth> >(globPtr<SrcType>(src), globPtr<DstType>(dst), … in addScalarImpl()
92 …gridTransformUnary_< TransformPolicy<ScalarDepth> >(globPtr<SrcType>(src), globPtr<DstType>(dst), … in addScalarImpl()
Dabsdiff_scalar.cu80 template <typename SrcType, typename ScalarDepth>
83 AbsDiffScalarOp<SrcType, ScalarDepth> op; in absDiffScalarImpl()
85 …gridTransformUnary_< TransformPolicy<ScalarDepth> >(globPtr<SrcType>(src), globPtr<SrcType>(dst), … in absDiffScalarImpl()
Dmul_scalar.cu59 …template <typename SrcType, typename ScalarType, typename DstType> struct MulScalarOp : unary_func…
63 __device__ __forceinline__ DstType operator ()(SrcType a) const in operator ()()
79 template <typename SrcType, typename ScalarDepth, typename DstType>
82 typedef typename MakeVec<ScalarDepth, VecTraits<SrcType>::cn>::type ScalarType; in mulScalarImpl()
86 MulScalarOp<SrcType, ScalarType, DstType> op; in mulScalarImpl()
89 …gridTransformUnary_< TransformPolicy<ScalarDepth> >(globPtr<SrcType>(src), globPtr<DstType>(dst), … in mulScalarImpl()
/external/opencv3/modules/cudev/include/opencv2/cudev/grid/detail/
Dtransform.hpp184 template <int SHIFT, typename SrcType, typename DstType, class UnOp, class MaskPtr>
185 …__global__ void transformSmart(const GlobPtr<SrcType> src_, GlobPtr<DstType> dst_, const UnOp op, … in transformSmart()
187 typedef typename MakeVec<SrcType, SHIFT>::type read_type; in transformSmart()
196 const SrcType* src = src_.row(y); in transformSmart()
303 template <typename SrcType, typename DstType, class UnOp, class MaskPtr>
304 …__host__ static void call(const GlobPtr<SrcType>& src, const GlobPtr<DstType>& dst, const UnOp& op… in call()
307 …!isAligned(src.data, Policy::shift * sizeof(SrcType)) || !isAligned(src.step, Policy::shift * size… in call()
359 template <class Policy, typename SrcType, typename DstType, class UnOp, class MaskPtr>
360 …__host__ void transform_unary(const GlobPtr<SrcType>& src, const GlobPtr<DstType>& dst, const UnOp… in transform_unary()
362 …TransformDispatcher<VecTraits<SrcType>::cn == 1 && VecTraits<DstType>::cn == 1 && Policy::shift !=… in transform_unary()
/external/eigen/Eigen/src/OrderingMethods/
DOrdering.h72 template <typename SrcType, unsigned int SrcUpLo>
73 void operator()(const SparseSelfAdjointView<SrcType, SrcUpLo>& mat, PermutationType& perm) in operator()
75 SparseMatrix<typename SrcType::Scalar, ColMajor, Index> C; C = mat; in operator()
/external/deqp/framework/randomshaders/
DrsgExpression.cpp512 template <typename SrcType, typename DstType>
513 inline DstType convert (SrcType src) in convert()
515 if (Scalar::min<SrcType>() == src) in convert()
517 else if (Scalar::max<SrcType>() == src) in convert()
542 template <typename SrcType, typename DstType>
543 inline void convertValueRange (SrcType srcMin, SrcType srcMax, DstType& dstMin, DstType& dstMax) in convertValueRange()
545 dstMin = convert<SrcType, DstType>(srcMin); in convertValueRange()
546 dstMax = convert<SrcType, DstType>(srcMax); in convertValueRange()
573 template <typename SrcType, typename DstType>
576 SrcType sMin, sMax; in isConversionOk()
[all …]
/external/clang/lib/CodeGen/
DCGExprScalar.cpp146 Value *Src, QualType SrcType, QualType DstType,
578 Value *ScalarExprEmitter::EmitConversionToBool(Value *Src, QualType SrcType) { in EmitConversionToBool() argument
579 assert(SrcType.isCanonical() && "EmitScalarConversion strips typedefs"); in EmitConversionToBool()
581 if (SrcType->isRealFloatingType()) in EmitConversionToBool()
584 if (const MemberPointerType *MPT = dyn_cast<MemberPointerType>(SrcType)) in EmitConversionToBool()
587 assert((SrcType->isIntegerType() || isa<llvm::PointerType>(Src->getType())) && in EmitConversionToBool()
598 Value *OrigSrc, QualType OrigSrcType, Value *Src, QualType SrcType, in EmitFloatConversionCheck() argument
671 CGF.getContext().getFloatTypeSemantics(SrcType); in EmitFloatConversionCheck()
732 Value *ScalarExprEmitter::EmitScalarConversion(Value *Src, QualType SrcType, in EmitScalarConversion() argument
735 return EmitScalarConversion(Src, SrcType, DstType, Loc, false); in EmitScalarConversion()
[all …]
DCGExprComplex.cpp87 ComplexPairTy EmitComplexToComplexCast(ComplexPairTy Val, QualType SrcType,
90 ComplexPairTy EmitScalarToComplexCast(llvm::Value *Val, QualType SrcType,
396 QualType SrcType, in EmitComplexToComplexCast() argument
400 SrcType = SrcType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
406 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast()
407 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast()
412 QualType SrcType, in EmitScalarToComplexCast() argument
417 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); in EmitScalarToComplexCast()
DCGStmtOpenMP.cpp2093 QualType SrcType, QualType DestType, in convertToScalarValue() argument
2099 ? CGF.EmitScalarConversion(Val.getScalarVal(), SrcType, DestType, in convertToScalarValue()
2101 : CGF.EmitComplexToScalarConversion(Val.getComplexVal(), SrcType, in convertToScalarValue()
2106 convertToComplexValue(CodeGenFunction &CGF, RValue Val, QualType SrcType, in convertToComplexValue() argument
2114 auto ScalarVal = CGF.EmitScalarConversion(Val.getScalarVal(), SrcType, in convertToComplexValue()
2120 auto SrcElementType = SrcType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
/external/skia/gm/
Dxfermodes.cpp47 enum SrcType { enum
158 void draw_mode(SkCanvas* canvas, SkXfermode* mode, SrcType srcType, in draw_mode()
299 draw_mode(canvas, mode, static_cast<SrcType>(sourceType), in onDraw()
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_compiler_util.c364 unsigned int SrcType; member
385 select->SrcType = src_type; in can_use_presub_data_add_select()
484 unsigned int src_type = d.Selects[i].SrcType; in rc_inst_can_use_presub()
488 src_type &= ~d.Selects[j].SrcType; in rc_inst_can_use_presub()
/external/clang/lib/AST/
DExprCXX.cpp641 QualType SrcType = getSubExpr()->getType(); in isAlwaysNull() local
644 if (const PointerType *SrcPTy = SrcType->getAs<PointerType>()) { in isAlwaysNull()
645 SrcType = SrcPTy->getPointeeType(); in isAlwaysNull()
653 cast<CXXRecordDecl>(SrcType->castAs<RecordType>()->getDecl()); in isAlwaysNull()
DExprConstant.cpp1582 QualType SrcType, const APFloat &Value, in HandleFloatToIntCast() argument
1597 QualType SrcType, QualType DestType, in HandleFloatToFloatCast() argument
1609 QualType DestType, QualType SrcType, in HandleIntToIntCast() argument
1621 QualType SrcType, const APSInt &Value, in HandleIntToFloatCast() argument
7726 QualType SrcType = SubExpr->getType(); in VisitCastExpr() local
7803 return Info.Ctx.getTypeSize(DestType) <= Info.Ctx.getTypeSize(SrcType); in VisitCastExpr()
7805 return Info.Ctx.getTypeSize(DestType) == Info.Ctx.getTypeSize(SrcType); in VisitCastExpr()
7808 return Success(HandleIntToIntCast(Info, E, DestType, SrcType, in VisitCastExpr()
7824 if (Info.Ctx.getTypeSize(DestType) != Info.Ctx.getTypeSize(SrcType)) in VisitCastExpr()
7833 SrcType); in VisitCastExpr()
[all …]
/external/clang/include/clang/Sema/
DSema.h3518 void diagnoseNullableToNonnullConversion(QualType DstType, QualType SrcType,
4503 void CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType,
7511 QualType DestType, QualType SrcType,
7519 QualType DestType, QualType SrcType,
8382 QualType DstType, QualType SrcType,
8394 void DiagnoseAssignmentEnum(QualType DstType, QualType SrcType,
/external/llvm/lib/Analysis/
DScalarEvolution.cpp2058 Type *SrcType = Trunc->getOperand()->getType(); in getAddExpr() local
2065 if (T->getOperand()->getType() != SrcType) { in getAddExpr()
2071 LargeOps.push_back(getAnyExtendExpr(C, SrcType)); in getAddExpr()
2077 if (T->getOperand()->getType() != SrcType) { in getAddExpr()
2083 LargeMulOps.push_back(getAnyExtendExpr(C, SrcType)); in getAddExpr()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp25354 EVT SrcType = Shuffle->getValueType(0); in VectorZextCombine() local
25360 unsigned SrcSize = SrcType.getScalarSizeInBits(); in VectorZextCombine()
25384 for (unsigned i = 0; i < SrcType.getVectorNumElements(); ++i) { in VectorZextCombine()
25407 unsigned NumElems = SrcType.getVectorNumElements(); in VectorZextCombine()
25415 Shuffle->getOperand(0), DAG.getConstant(0, DL, SrcType), Mask); in VectorZextCombine()