Home
last modified time | relevance | path

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

123

/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/llvm-project/clang/lib/AST/
DASTDiagnostic.cpp318 static bool FormatTemplateTypeDiff(ASTContext &Context, QualType FromType,
371 QualType FromType = in FormatASTNodeDiagnosticArgument() local
372 QualType::getFromOpaquePtr(reinterpret_cast<void*>(TDT.FromType)); in FormatASTNodeDiagnosticArgument()
376 if (FormatTemplateTypeDiff(Context, FromType, ToType, TDT.PrintTree, in FormatASTNodeDiagnosticArgument()
391 Val = TDT.PrintFromType ? TDT.FromType : TDT.ToType; in FormatASTNodeDiagnosticArgument()
623 void SetTypeDiff(QualType FromType, QualType ToType, bool FromDefault, in SetTypeDiff() argument
627 FlatTree[CurrentNode].FromArgInfo.ArgType = FromType; in SetTypeDiff()
788 void GetTypeDiff(QualType &FromType, QualType &ToType) { in GetTypeDiff() argument
790 FromType = FlatTree[ReadNode].FromArgInfo.ArgType; in GetTypeDiff()
1110 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 …]
/external/llvm-project/clang/lib/Sema/
DSemaOverload.cpp250 QualType FromType = getFromType(); in isPointerConversionToVoidPointer() local
257 FromType = Context.getArrayDecayedType(FromType); in isPointerConversionToVoidPointer()
259 if (Second == ICK_Pointer_Conversion && FromType->isAnyPointerType()) in isPointerConversionToVoidPointer()
318 QualType FromType = getToType(0); in getNarrowingKind() local
330 if (FromType->isRealFloatingType()) in getNarrowingKind()
332 if (FromType->isIntegralOrUnscopedEnumerationType()) in getNarrowingKind()
345 if (FromType->isRealFloatingType() && ToType->isIntegralType(Ctx)) { in getNarrowingKind()
347 } else if (FromType->isIntegralOrUnscopedEnumerationType() && in getNarrowingKind()
387 if (FromType->isRealFloatingType() && ToType->isRealFloatingType() && in getNarrowingKind()
388 Ctx.getFloatingTypeOrder(FromType, ToType) == 1) { in getNarrowingKind()
[all …]
DSemaExprCXX.cpp4062 QualType FromType = From->getType(); in PerformImplicitConversion() local
4089 if (Context.hasSameType(FromType, Context.OverloadTy)) { in PerformImplicitConversion()
4100 FromType = From->getType(); in PerformImplicitConversion()
4111 QualType InitialFromType = FromType; in PerformImplicitConversion()
4115 if (const AtomicType *FromAtomic = FromType->getAs<AtomicType>()) { in PerformImplicitConversion()
4116 FromType = FromAtomic->getValueType().getUnqualifiedType(); in PerformImplicitConversion()
4117 From = ImplicitCastExpr::Create(Context, FromType, CK_AtomicToNonAtomic, in PerformImplicitConversion()
4128 FromType = From->getType(); in PerformImplicitConversion()
4133 FromType = Context.getArrayDecayedType(FromType); in PerformImplicitConversion()
4134 From = ImpCastExprToType(From, FromType, CK_ArrayToPointerDecay, in PerformImplicitConversion()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DNarrowingConversionsCheck.cpp160 const BuiltinType &FromType, in isWideEnoughToHold() argument
162 IntegerRange FromIntegerRange = createFromType(Context, FromType); in isWideEnoughToHold()
259 const BuiltinType *FromType = getBuiltinType(Rhs); in handleIntegralCast() local
264 Context.getTypeSize(FromType)); in handleIntegralCast()
267 if (!isWideEnoughToHold(Context, *FromType, *ToType)) in handleIntegralCast()
291 const BuiltinType *FromType = getBuiltinType(Rhs); in handleIntegralToFloating() local
292 if (!isWideEnoughToHold(Context, *FromType, *ToType)) in handleIntegralToFloating()
357 const BuiltinType *FromType = getBuiltinType(Rhs); in handleFloatingCast() local
358 if (ToType->getKind() < FromType->getKind()) in handleFloatingCast()
/external/oboe/include/oboe/
DUtilities.h59 template <typename FromType>
60 const char * convertToText(FromType input);
/external/angle/src/libANGLE/renderer/d3d/d3d9/
Dvertexconversion.h82 template <class FromType, std::size_t ScaleBits>
89 static float convert(FromType x)
91 const float divisor = 1.0f / static_cast<float>(static_cast<FromType>(1) << ScaleBits);
/external/llvm-project/compiler-rt/lib/ubsan/
Dubsan_handlers.h113 const TypeDescriptor &FromType; member
119 const TypeDescriptor &FromType; member
147 const TypeDescriptor &FromType; member
Dubsan_handlers.cpp485 const TypeDescriptor *FromType, *ToType; in handleFloatCastOverflow() local
492 FromType = &Data->FromType; in handleFloatCastOverflow()
500 FromType = &Data->FromType; in handleFloatCastOverflow()
508 << Value(*FromType, From) << *FromType << *ToType; in handleFloatCastOverflow()
560 const TypeDescriptor &SrcTy = Data->FromType; in handleImplicitConversion()
/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/llvm-project/clang/unittests/AST/
DASTImporterFixtures.cpp100 QualType FromType) { in import() argument
102 if (auto ImportedOrErr = Importer->Import(FromType)) in import()
213 QualType ASTImporterTestBase::ImportType(QualType FromType, Decl *TUDecl, in ImportType() argument
218 return FromTU->import(SharedStatePtr, ToAST.get(), FromType); in ImportType()
DASTImporterFixtures.h134 ASTUnit *ToAST, QualType FromType);
192 QualType ImportType(QualType FromType, Decl *TUDecl, TestLanguage ToLang);
/external/llvm-project/llvm/lib/Target/NVPTX/
DNVPTX.h96 enum FromType { enum
DNVPTXISelDAGToDAG.cpp1034 unsigned int FromType; in tryLoadVector() local
1039 FromType = NVPTX::PTXLdStInstCode::Signed; in tryLoadVector()
1041 FromType = ScalarVT.SimpleTy == MVT::f16 ? NVPTX::PTXLdStInstCode::Untyped in tryLoadVector()
1044 FromType = NVPTX::PTXLdStInstCode::Unsigned; in tryLoadVector()
1067 FromType = NVPTX::PTXLdStInstCode::Untyped; in tryLoadVector()
1093 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
1120 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
1169 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
1218 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTX.h97 enum FromType { enum
/external/llvm/lib/Target/NVPTX/
DNVPTX.h109 enum FromType { enum
/external/clang/include/clang/Sema/
DOverload.h509 QualType FromType, QualType ToType) { in setBad() argument
511 Bad.init(Failure, FromType, ToType); in setBad()
/external/llvm-project/clang/include/clang/Sema/
DOverload.h650 QualType FromType, QualType ToType) { in setBad() argument
652 Bad.init(Failure, FromType, ToType); in setBad()
/external/googletest/googlemock/test/
Dgmock-actions_test.cc572 class FromType { class
574 explicit FromType(bool* is_converted) : converted_(is_converted) {} in FromType() function in __anon87d4a8ab0111::FromType
584 ToType(const FromType& x) { *x.converted() = true; } // NOLINT in ToType()
589 FromType x(&converted); in TEST()

123