Home
last modified time | relevance | path

Searched refs:FromType (Results 1 – 25 of 29) sorted by relevance

12

/external/swiftshader/third_party/subzero/crosstest/
Dtest_cast_main.cpp96 template <typename FromType>
97 void testValue(FromType Val, size_t &TotalTests, size_t &Passes, in testValue()
99 COMPARE(cast, FromType, bool, Val, FromTypeString); in testValue()
100 COMPARE(cast, FromType, uint8_t, Val, FromTypeString); in testValue()
101 COMPARE(cast, FromType, myint8_t, Val, FromTypeString); in testValue()
102 COMPARE(cast, FromType, uint16_t, Val, FromTypeString); in testValue()
103 COMPARE(cast, FromType, int16_t, Val, FromTypeString); in testValue()
104 COMPARE(cast, FromType, uint32_t, Val, FromTypeString); in testValue()
105 COMPARE(cast, FromType, int32_t, Val, FromTypeString); in testValue()
106 COMPARE(cast, FromType, uint64, Val, FromTypeString); in testValue()
[all …]
Dtest_cast.h22 template <typename FromType, typename ToType> ToType cast(FromType a);
23 template <typename FromType, typename ToType> ToType castBits(FromType a);
29 template <typename FromType, typename ToType>
30 ToType cast(int i, FromType a, int j);
31 template <typename FromType, typename ToType>
32 ToType castBits(int i, FromType a, int j);
Dtest_cast.cpp21 template <typename FromType, typename ToType>
22 ToType __attribute__((noinline)) cast(FromType a) { in cast()
26 template <typename FromType, typename ToType>
27 ToType __attribute__((noinline)) castBits(FromType a) { in castBits()
31 template <typename FromType, typename ToType>
32 ToType __attribute__((noinline)) cast(int i, FromType a, int j) { in cast()
38 template <typename FromType, typename ToType>
39 ToType __attribute__((noinline)) castBits(int i, FromType a, int j) { in castBits()
/external/clang/lib/AST/
DASTDiagnostic.cpp316 static bool FormatTemplateTypeDiff(ASTContext &Context, QualType FromType,
340 QualType FromType = in FormatASTNodeDiagnosticArgument() local
341 QualType::getFromOpaquePtr(reinterpret_cast<void*>(TDT.FromType)); in FormatASTNodeDiagnosticArgument()
345 if (FormatTemplateTypeDiff(Context, FromType, ToType, TDT.PrintTree, in FormatASTNodeDiagnosticArgument()
360 Val = TDT.PrintFromType ? TDT.FromType : TDT.ToType; in FormatASTNodeDiagnosticArgument()
592 void SetTypeDiff(QualType FromType, QualType ToType, bool FromDefault, in SetTypeDiff() argument
596 FlatTree[CurrentNode].FromArgInfo.ArgType = FromType; in SetTypeDiff()
757 void GetTypeDiff(QualType &FromType, QualType &ToType) { in GetTypeDiff() argument
759 FromType = FlatTree[ReadNode].FromArgInfo.ArgType; in GetTypeDiff()
1070 static bool OnlyPerformTypeDiff(ASTContext &Context, QualType FromType, in OnlyPerformTypeDiff() argument
[all …]
/external/clang/lib/Sema/
DSemaOverload.cpp236 QualType FromType = getFromType(); in isPointerConversionToVoidPointer() local
243 FromType = Context.getArrayDecayedType(FromType); in isPointerConversionToVoidPointer()
245 if (Second == ICK_Pointer_Conversion && FromType->isAnyPointerType()) in isPointerConversionToVoidPointer()
294 QualType FromType = getToType(0); in getNarrowingKind() local
306 if (FromType->isRealFloatingType()) in getNarrowingKind()
308 if (FromType->isIntegralOrUnscopedEnumerationType()) in getNarrowingKind()
322 if (FromType->isRealFloatingType() && ToType->isIntegralType(Ctx)) { in getNarrowingKind()
324 } else if (FromType->isIntegralType(Ctx) && ToType->isRealFloatingType()) { in getNarrowingKind()
356 if (FromType->isRealFloatingType() && ToType->isRealFloatingType() && in getNarrowingKind()
357 Ctx.getFloatingTypeOrder(FromType, ToType) == 1) { in getNarrowingKind()
[all …]
DSemaExprCXX.cpp3341 QualType FromType = From->getType(); in PerformImplicitConversion() local
3368 if (Context.hasSameType(FromType, Context.OverloadTy)) { in PerformImplicitConversion()
3379 FromType = From->getType(); in PerformImplicitConversion()
3390 QualType InitialFromType = FromType; in PerformImplicitConversion()
3394 if (const AtomicType *FromAtomic = FromType->getAs<AtomicType>()) { in PerformImplicitConversion()
3395 FromType = FromAtomic->getValueType().getUnqualifiedType(); in PerformImplicitConversion()
3396 From = ImplicitCastExpr::Create(Context, FromType, CK_AtomicToNonAtomic, in PerformImplicitConversion()
3406 FromType = From->getType(); in PerformImplicitConversion()
3411 FromType = Context.getArrayDecayedType(FromType); in PerformImplicitConversion()
3412 From = ImpCastExprToType(From, FromType, CK_ArrayToPointerDecay, in PerformImplicitConversion()
[all …]
DSemaExprObjC.cpp4237 QualType FromType = SubExpr->getType(); in BuildObjCBridgedCast() local
4245 } else if (T->isObjCARCBridgableType() && FromType->isCARCBridgableType()) { in BuildObjCBridgedCast()
4257 << FromType in BuildObjCBridgedCast()
4265 << FromType << br in BuildObjCBridgedCast()
4279 } else if (T->isCARCBridgableType() && FromType->isObjCARCBridgableType()) { in BuildObjCBridgedCast()
4291 SubExpr = ImplicitCastExpr::Create(Context, FromType, in BuildObjCBridgedCast()
4299 << (FromType->isBlockPointerType()? 1 : 0) in BuildObjCBridgedCast()
4300 << FromType in BuildObjCBridgedCast()
4319 << FromType << T << Kind in BuildObjCBridgedCast()
DSemaCast.cpp1154 QualType FromType = SrcExpr->getType(); in TryLValueToRValueCast() local
1157 FromType = FromType.getUnqualifiedType(); in TryLValueToRValueCast()
1162 ToType, FromType, in TryLValueToRValueCast()
/external/webrtc/talk/session/media/
Dtypewrapping.h.pump122 template <typename ToType, typename FromType> class Wrapper,
123 template <typename FromType> class Unwrapper,
158 template <typename ToType, typename FromType> class Wrapper,
159 template <typename FromType> class Unwrapper$for j [[,
200 template<typename ToType, typename FromType> \
215 template<typename FromType> \
218 typedef FromType ToType; \
219 static FORCE_INLINE ToType Unwrap(FromType from) { \
/external/compiler-rt/lib/ubsan/
Dubsan_handlers.cc370 const TypeDescriptor *FromType, *ToType; in handleFloatCastOverflow() local
377 FromType = &Data->FromType; in handleFloatCastOverflow()
385 FromType = &Data->FromType; in handleFloatCastOverflow()
393 << Value(*FromType, From) << *FromType << *ToType; in handleFloatCastOverflow()
Dubsan_handlers.h103 const TypeDescriptor &FromType; member
109 const TypeDescriptor &FromType; member
/external/v8/src/crankshaft/
Dhydrogen-types.cc16 HType HType::FromType(AstType* type) { in FromType() function in v8::internal::HType
33 return FromType(type->Convert(temp_zone)); in FromFieldType()
Dhydrogen-types.h67 static HType FromType(AstType* type) WARN_UNUSED_RESULT;
/external/v8/src/ast/
Dast-types.h385 static AstTypeBase* FromType(AstType* type) { in FromType() function
411 return static_cast<AstClassType*>(FromType(type)); in cast()
442 return static_cast<AstConstantType*>(FromType(type)); in cast()
504 return static_cast<AstRangeType*>(FromType(type)); in cast()
533 return static_cast<AstContextType*>(FromType(type)); in cast()
561 return static_cast<AstArrayType*>(FromType(type)); in cast()
633 return static_cast<AstFunctionType*>(FromType(type)); in cast()
660 return static_cast<AstTupleType*>(FromType(type)); in cast()
686 return static_cast<AstUnionType*>(FromType(type)); in cast()
/external/v8/src/compiler/
Dtypes.h302 static TypeBase* FromType(Type* type) { in FromType() function
331 return static_cast<OtherNumberConstantType*>(FromType(type)); in cast()
360 return static_cast<HeapConstantType*>(FromType(type)); in NON_EXPORTED_BASE()
413 return static_cast<RangeType*>(FromType(type)); in cast()
482 return static_cast<TupleType*>(FromType(type)); in cast()
506 return static_cast<UnionType*>(FromType(type)); in cast()
/external/llvm/lib/Target/NVPTX/
DNVPTX.h109 enum FromType { enum
DNVPTXISelDAGToDAG.cpp955 unsigned int FromType; in tryLoadVector() local
960 FromType = NVPTX::PTXLdStInstCode::Signed; in tryLoadVector()
962 FromType = NVPTX::PTXLdStInstCode::Float; in tryLoadVector()
964 FromType = NVPTX::PTXLdStInstCode::Unsigned; in tryLoadVector()
1030 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
1083 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
1185 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
1287 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
/external/google-breakpad/src/testing/test/
Dgmock-actions_test.cc519 class FromType { class
521 explicit FromType(bool* is_converted) : converted_(is_converted) {} in FromType() function in __anon3cdb7db80111::FromType
527 GTEST_DISALLOW_ASSIGN_(FromType);
533 ToType(const FromType& x) { *x.converted() = true; } // NOLINT in ToType()
538 FromType x(&converted); in TEST()
/external/googletest/googlemock/test/
Dgmock-actions_test.cc585 class FromType { class
587 explicit FromType(bool* is_converted) : converted_(is_converted) {} in FromType() function in __anonf1b1aec30111::FromType
593 GTEST_DISALLOW_ASSIGN_(FromType);
599 ToType(const FromType& x) { *x.converted() = true; } // NOLINT in ToType()
604 FromType x(&converted); in TEST()
/external/v8/testing/gmock/test/
Dgmock-actions_test.cc585 class FromType { class
587 explicit FromType(bool* is_converted) : converted_(is_converted) {} in FromType() function in __anon1d41ef2b0111::FromType
593 GTEST_DISALLOW_ASSIGN_(FromType);
599 ToType(const FromType& x) { *x.converted() = true; } // NOLINT in ToType()
604 FromType x(&converted); in TEST()
/external/clang/include/clang/Sema/
DOverload.h509 QualType FromType, QualType ToType) { in setBad() argument
511 Bad.init(Failure, FromType, ToType); in setBad()
DSema.h2270 bool IsIntegralPromotion(Expr *From, QualType FromType, QualType ToType);
2271 bool IsFloatingPointPromotion(QualType FromType, QualType ToType);
2272 bool IsComplexPromotion(QualType FromType, QualType ToType);
2273 bool IsPointerConversion(Expr *From, QualType FromType, QualType ToType,
2276 bool isObjCPointerConversion(QualType FromType, QualType ToType,
2278 bool isObjCWritebackConversion(QualType FromType, QualType ToType,
2280 bool IsBlockPointerConversion(QualType FromType, QualType ToType,
2286 QualType FromType, QualType ToType);
2295 bool IsMemberPointerConversion(Expr *From, QualType FromType, QualType ToType,
2302 bool IsQualificationConversion(QualType FromType, QualType ToType,
[all …]
/external/clang/lib/Basic/
DDiagnostic.cpp866 TDT.FromType = getRawArg(ArgNo); in FormatDiagnostic()
911 TDT.FromType)); in FormatDiagnostic()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DScalarReplAggregates.cpp680 Type *FromType = FromVal->getType(); in ConvertScalar_ExtractValue() local
681 if (FromType == ToType && Offset == 0) in ConvertScalar_ExtractValue()
686 if (VectorType *VTy = dyn_cast<VectorType>(FromType)) { in ConvertScalar_ExtractValue()
687 unsigned FromTypeSize = TD.getTypeAllocSize(FromType); in ConvertScalar_ExtractValue()
/external/clang/include/clang/Basic/
DDiagnostic.h1398 intptr_t FromType; member

12