Home
last modified time | relevance | path

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

123

/external/clang/lib/Sema/
DSemaCast.cpp168 static TryCastResult TryStaticPointerDowncast(Sema &Self, QualType SrcType,
174 static TryCastResult TryStaticDowncast(Sema &Self, CanQualType SrcType,
182 QualType SrcType,
487 CastsAwayConstness(Sema &Self, QualType SrcType, QualType DestType, in CastsAwayConstness() argument
502 assert((SrcType->isAnyPointerType() || SrcType->isMemberPointerType() || in CastsAwayConstness()
503 SrcType->isBlockPointerType()) && in CastsAwayConstness()
509 QualType UnwrappedSrcType = Self.Context.getCanonicalType(SrcType), in CastsAwayConstness()
623 QualType SrcType = Self.Context.getCanonicalType(OrigSrcType); in CheckDynamicCast() local
626 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast()
639 SrcPointee = SrcType; in CheckDynamicCast()
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaCast.cpp137 void checkAddressSpaceCast(QualType SrcType, QualType DestType);
215 static TryCastResult TryStaticPointerDowncast(Sema &Self, QualType SrcType,
221 static TryCastResult TryStaticDowncast(Sema &Self, CanQualType SrcType,
229 QualType SrcType,
628 CastsAwayConstness(Sema &Self, QualType SrcType, QualType DestType, in CastsAwayConstness() argument
639 assert((SrcType->isAnyPointerType() || SrcType->isMemberPointerType() || in CastsAwayConstness()
640 SrcType->isBlockPointerType()) && in CastsAwayConstness()
647 QualType UnwrappedSrcType = Self.Context.getCanonicalType(SrcType), in CastsAwayConstness()
797 QualType SrcType = Self.Context.getCanonicalType(OrigSrcType); in CheckDynamicCast() local
800 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast()
[all …]
/external/pdfium/third_party/base/numerics/
Dsafe_conversions.h90 using SrcType = typename internal::UnderlyingType<Src>::type;
91 return internal::IsValueInRangeFastOp<Dst, SrcType>::is_supported
92 ? internal::IsValueInRangeFastOp<Dst, SrcType>::Do(
93 static_cast<SrcType>(value))
95 static_cast<SrcType>(value))
108 using SrcType = typename internal::UnderlyingType<Src>::type;
110 ? static_cast<Dst>(static_cast<SrcType>(value))
203 using SrcType = typename UnderlyingType<Src>::type;
205 SaturateFastOp<Dst, SrcType>::is_supported &&
208 ? SaturateFastOp<Dst, SrcType>::Do(static_cast<SrcType>(value))
[all …]
/external/libchrome/base/numerics/
Dsafe_conversions.h89 using SrcType = typename internal::UnderlyingType<Src>::type;
90 return internal::IsValueInRangeFastOp<Dst, SrcType>::is_supported
91 ? internal::IsValueInRangeFastOp<Dst, SrcType>::Do(
92 static_cast<SrcType>(value))
94 static_cast<SrcType>(value))
107 using SrcType = typename internal::UnderlyingType<Src>::type;
109 ? static_cast<Dst>(static_cast<SrcType>(value))
193 using SrcType = typename UnderlyingType<Src>::type;
195 SaturateFastOp<Dst, SrcType>::is_supported &&
198 ? SaturateFastOp<Dst, SrcType>::Do(static_cast<SrcType>(value))
[all …]
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorConversion.h127 typedef typename internal::unpacket_traits<SrcPacket>::type SrcType;
129 internal::scalar_cast_op<SrcType, TgtType> converter;
189 typedef typename internal::remove_all<typename internal::traits<ArgType>::Scalar>::type SrcType;
191 typedef typename PacketType<SrcType, Device>::type PacketSourceType;
210 …return ConversionSubExprEval<internal::is_same<TargetType, SrcType>::value, TensorEvaluator<ArgTyp…
220 internal::scalar_cast_op<SrcType, TargetType> converter;
228 internal::type_casting_traits<SrcType, TargetType>::VectorizedCast;
234 const double cast_cost = TensorOpCost::CastCost<SrcType, TargetType>();
237 internal::type_casting_traits<SrcType, TargetType>::SrcCoeffRatio;
239 internal::type_casting_traits<SrcType, TargetType>::TgtCoeffRatio;
[all …]
DTensorCostModel.h48 template <typename SrcType, typename TargetType>
51 internal::scalar_cast_op<SrcType, TargetType> >::Cost; in CastCost()
/external/gemmlowp/internal/
Ddispatch_gemm_shape.h55 typedef VectorMap<Scalar, Shape> SrcType;
59 static DstType Run(const SrcType& src) {
66 typedef MatrixMap<Scalar, Order> SrcType;
69 static DstType Run(const SrcType& src) {
76 typedef OutputStageQuantizeDownInt32ToUint8ScalePC<Shape> SrcType;
80 static DstType Run(const SrcType& src) {
91 typedef OutputStageScaleInt32ByFixedPointAndExponentPC<Shape> SrcType;
96 static DstType Run(const SrcType& src) {
108 typedef OutputStageBiasAddition<VectorMapType> SrcType;
111 static DstType Run(const SrcType& src) {
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DMachineIRBuilder.h129 enum class SrcType { Ty_Reg, Ty_MIB, Ty_Predicate, Ty_Imm }; enum
130 SrcOp(Register R) : Reg(R), Ty(SrcType::Ty_Reg) {} in SrcOp()
131 SrcOp(const MachineOperand &Op) : Reg(Op.getReg()), Ty(SrcType::Ty_Reg) {} in SrcOp()
132 SrcOp(const MachineInstrBuilder &MIB) : SrcMIB(MIB), Ty(SrcType::Ty_MIB) {} in SrcOp()
133 SrcOp(const CmpInst::Predicate P) : Pred(P), Ty(SrcType::Ty_Predicate) {} in SrcOp()
139 SrcOp(uint64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in SrcOp()
140 SrcOp(int64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in SrcOp()
144 case SrcType::Ty_Predicate: in addSrcToMIB()
147 case SrcType::Ty_Reg: in addSrcToMIB()
150 case SrcType::Ty_MIB: in addSrcToMIB()
[all …]
/external/angle/src/libANGLE/renderer/vulkan/shaders/src/
DConvertVertex.comp70 #define SrcType int
72 #define SrcType uint
74 #define SrcType float
197 SrcType loadSourceComponent(uint cd)
251 // Convert to SrcType
262 SrcType value = SrcType(valueAsUint);
264 SrcType value = valueAsUint;
273 SrcType value = float(valueAsInt) / (valueMask >> 1);
278 SrcType value = valueAsUint / positiveMax;
281 SrcType value = int(valueAsUint) * divisor;
[all …]
DImageCopy.frag16 #define SrcType vec4
19 #define SrcType ivec4
22 #define SrcType uvec4
135 SrcType srcValue = texelFetch(src, params.srcOffset + srcSubImageCoords, params.srcMip);
137SrcType srcValue = texelFetch(src, ivec3(params.srcOffset + srcSubImageCoords, params.srcLayer), p…
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
DMachineIRBuilder.h128 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 …]
/external/skia/tests/
DVkHardwareBufferTest.cpp1070 enum class SrcType { enum
1082 SrcType srcType, DstType dstType, bool shareSyncs) { in run_test()
1083 if (SrcType::kCPU == srcType && shareSyncs) { in run_test()
1090 if (SrcType::kVulkan == srcType) { in run_test()
1092 } else if (SrcType::kEGL == srcType) { in run_test()
1141 if (SrcType::kCPU == srcType) { in run_test()
1163 if (SrcType::kCPU == srcType) { in run_test()
1295 run_test(reporter, options, SrcType::kCPU, DstType::kVulkan, false); in DEF_GPUTEST()
1299 run_test(reporter, options, SrcType::kVulkan, DstType::kVulkan, false); in DEF_GPUTEST()
1303 run_test(reporter, options, SrcType::kVulkan, DstType::kVulkan, true); in DEF_GPUTEST()
[all …]
/external/skqp/tests/
DVkHardwareBufferTest.cpp1067 enum class SrcType { enum
1079 SrcType srcType, DstType dstType, bool shareSyncs) { in run_test()
1080 if (SrcType::kCPU == srcType && shareSyncs) { in run_test()
1087 if (SrcType::kVulkan == srcType) { in run_test()
1089 } else if (SrcType::kEGL == srcType) { in run_test()
1130 if (SrcType::kCPU == srcType) { in run_test()
1152 if (SrcType::kCPU == srcType) { in run_test()
1284 run_test(reporter, options, SrcType::kCPU, DstType::kVulkan, false); in DEF_GPUTEST()
1288 run_test(reporter, options, SrcType::kEGL, DstType::kVulkan, false); in DEF_GPUTEST()
1292 run_test(reporter, options, SrcType::kVulkan, DstType::kVulkan, false); in DEF_GPUTEST()
[all …]
/external/eigen/Eigen/src/OrderingMethods/
DOrdering.h73 template <typename SrcType, unsigned int SrcUpLo>
74 void operator()(const SparseSelfAdjointView<SrcType, SrcUpLo>& mat, PermutationType& perm) in operator()
76 SparseMatrix<typename SrcType::Scalar, ColMajor, StorageIndex> C; C = mat; in operator()
/external/llvm-project/llvm/test/LTO/X86/Inputs/
Dtype-mapping-src.ll4 %SrcType = type { i8 }
7 @x = external global %SrcType
/external/deqp/framework/randomshaders/
DrsgExpression.cpp537 template <typename SrcType, typename DstType>
538 inline DstType convert (SrcType src) in convert()
540 if (Scalar::min<SrcType>() == src) in convert()
542 else if (Scalar::max<SrcType>() == src) in convert()
567 template <typename SrcType, typename DstType>
568 inline void convertValueRange (SrcType srcMin, SrcType srcMax, DstType& dstMin, DstType& dstMax) in convertValueRange()
570 dstMin = convert<SrcType, DstType>(srcMin); in convertValueRange()
571 dstMax = convert<SrcType, DstType>(srcMax); in convertValueRange()
598 template <typename SrcType, typename DstType>
601 SrcType sMin, sMax; in isConversionOk()
[all …]
/external/llvm-project/clang/lib/CodeGen/
DCGExprScalar.cpp308 Value *Src, QualType SrcType, QualType DstType,
323 void EmitIntegerTruncationCheck(Value *Src, QualType SrcType, Value *Dst,
329 void EmitIntegerSignChangeCheck(Value *Src, QualType SrcType, Value *Dst,
871 Value *ScalarExprEmitter::EmitConversionToBool(Value *Src, QualType SrcType) { in EmitConversionToBool() argument
872 assert(SrcType.isCanonical() && "EmitScalarConversion strips typedefs"); in EmitConversionToBool()
874 if (SrcType->isRealFloatingType()) in EmitConversionToBool()
877 if (const MemberPointerType *MPT = dyn_cast<MemberPointerType>(SrcType)) in EmitConversionToBool()
880 assert((SrcType->isIntegerType() || isa<llvm::PointerType>(Src->getType())) && in EmitConversionToBool()
887 return EmitPointerToBoolConversion(Src, SrcType); in EmitConversionToBool()
891 Value *OrigSrc, QualType OrigSrcType, Value *Src, QualType SrcType, in EmitFloatConversionCheck() argument
[all …]
DCGExprComplex.cpp85 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()
/external/tensorflow/tensorflow/core/kernels/
Dops_testutil.h112 template <typename T, typename SrcType>
114 std::initializer_list<SrcType> data) { in AddInputFromList()
/external/tensorflow/tensorflow/core/framework/
Dtensor_testutil.h66 template <typename T, typename SrcType>
67 void FillValues(Tensor* tensor, std::initializer_list<SrcType> vals) { in FillValues()
/external/skqp/gm/
Dxfermodes.cpp14 enum SrcType { enum
120 void draw_mode(SkCanvas* canvas, SkBlendMode mode, SrcType srcType, SkScalar x, SkScalar y) { in draw_mode()
251 draw_mode(canvas, gModes[i].fMode, static_cast<SrcType>(sourceType), in onDraw()
/external/skia/gm/
Dxfermodes.cpp28 enum SrcType { enum
134 void draw_mode(SkCanvas* canvas, SkBlendMode mode, SrcType srcType, SkScalar x, SkScalar y) { in draw_mode()
266 draw_mode(canvas, gModes[i].fMode, static_cast<SrcType>(sourceType), in onDraw()
/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()
/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()

123