/external/swiftshader/third_party/subzero/crosstest/ |
D | test_cast.cpp | 21 template <typename FromType, typename ToType> 22 ToType __attribute__((noinline)) cast(FromType a) { in cast() 23 return (ToType)a; in cast() 26 template <typename FromType, typename ToType> 27 ToType __attribute__((noinline)) castBits(FromType a) { in castBits() 28 return *(ToType *)&a; in castBits() 31 template <typename FromType, typename ToType> 32 ToType __attribute__((noinline)) cast(int i, FromType a, int j) { in cast() 35 return (ToType)a; in cast() 38 template <typename FromType, typename ToType> [all …]
|
D | test_cast.h | 22 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);
|
D | test_cast_main.cpp | 123 template <typename FromType, typename ToType> 141 COMPARE_VEC(cast, FromType, ToType, Value, FromTypeString, ToTypeString); in testVector()
|
/external/clang/lib/Sema/ |
D | SemaOverload.cpp | 72 static bool IsStandardConversion(Sema &S, Expr* From, QualType ToType, 79 QualType &ToType, 84 IsUserDefinedConversion(Sema &S, Expr *From, QualType ToType, 237 QualType ToType = getToType(1); in isPointerConversionToVoidPointer() local 246 if (const PointerType* ToPtrType = ToType->getAs<PointerType>()) in isPointerConversionToVoidPointer() 295 QualType ToType = getToType(1); in getNarrowingKind() local 300 if (auto *ET = ToType->getAs<EnumType>()) in getNarrowingKind() 301 ToType = ET->getDecl()->getIntegerType(); in getNarrowingKind() 322 if (FromType->isRealFloatingType() && ToType->isIntegralType(Ctx)) { in getNarrowingKind() 324 } else if (FromType->isIntegralType(Ctx) && ToType->isRealFloatingType()) { in getNarrowingKind() [all …]
|
D | SemaExprCXX.cpp | 3140 Sema::IsStringLiteralToNonConstPointerConversion(Expr *From, QualType ToType) { in IsStringLiteralToNonConstPointerConversion() argument 3150 if (const PointerType *ToPtrType = ToType->getAs<PointerType>()) in IsStringLiteralToNonConstPointerConversion() 3241 Sema::PerformImplicitConversion(Expr *From, QualType ToType, in PerformImplicitConversion() argument 3247 ExprResult Res = PerformImplicitConversion(From, ToType, ICS.Standard, in PerformImplicitConversion() 3293 ToType.getNonReferenceType(), in PerformImplicitConversion() 3304 return PerformImplicitConversion(From, ToType, ICS.UserDefined.After, in PerformImplicitConversion() 3331 Sema::PerformImplicitConversion(Expr *From, QualType ToType, in PerformImplicitConversion() argument 3345 assert(!ToType->isReferenceType()); in PerformImplicitConversion() 3353 /*FIXME:ConstructLoc*/ SourceLocation(), ToType, in PerformImplicitConversion() 3360 /*FIXME:ConstructLoc*/ SourceLocation(), ToType, in PerformImplicitConversion() [all …]
|
/external/clang/lib/AST/ |
D | ASTDiagnostic.cpp | 317 QualType ToType, bool PrintTree, 342 QualType ToType = in FormatASTNodeDiagnosticArgument() local 343 QualType::getFromOpaquePtr(reinterpret_cast<void*>(TDT.ToType)); 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 597 FlatTree[CurrentNode].ToArgInfo.ArgType = ToType; in SetTypeDiff() 757 void GetTypeDiff(QualType &FromType, QualType &ToType) { in GetTypeDiff() argument 760 ToType = FlatTree[ReadNode].ToArgInfo.ArgType; in GetTypeDiff() 1071 QualType ToType, in OnlyPerformTypeDiff() argument [all …]
|
D | ASTImporter.cpp | 2279 QualType ToType = Importer.Import(From.getAsType()); in ImportTemplateArgument() local 2280 if (ToType.isNull()) in ImportTemplateArgument() 2282 return TemplateArgument(ToType); in ImportTemplateArgument() 2286 QualType ToType = Importer.Import(From.getIntegralType()); in ImportTemplateArgument() local 2287 if (ToType.isNull()) in ImportTemplateArgument() 2289 return TemplateArgument(From, ToType); in ImportTemplateArgument() 2294 QualType ToType = Importer.Import(From.getParamTypeForDecl()); in ImportTemplateArgument() local 2295 if (!To || ToType.isNull()) in ImportTemplateArgument() 2297 return TemplateArgument(To, ToType); in ImportTemplateArgument() 2301 QualType ToType = Importer.Import(From.getNullPtrType()); in ImportTemplateArgument() local [all …]
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | Core.cpp | 880 LLVMValueRef LLVMConstTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstTrunc() argument 882 unwrap(ToType))); in LLVMConstTrunc() 885 LLVMValueRef LLVMConstSExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstSExt() argument 887 unwrap(ToType))); in LLVMConstSExt() 890 LLVMValueRef LLVMConstZExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstZExt() argument 892 unwrap(ToType))); in LLVMConstZExt() 895 LLVMValueRef LLVMConstFPTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstFPTrunc() argument 897 unwrap(ToType))); in LLVMConstFPTrunc() 900 LLVMValueRef LLVMConstFPExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstFPExt() argument 902 unwrap(ToType))); in LLVMConstFPExt() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm-c/ |
D | Core.h | 649 LLVMValueRef LLVMConstTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 650 LLVMValueRef LLVMConstSExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 651 LLVMValueRef LLVMConstZExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 652 LLVMValueRef LLVMConstFPTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 653 LLVMValueRef LLVMConstFPExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 654 LLVMValueRef LLVMConstUIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 655 LLVMValueRef LLVMConstSIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 656 LLVMValueRef LLVMConstFPToUI(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 657 LLVMValueRef LLVMConstFPToSI(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 658 LLVMValueRef LLVMConstPtrToInt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); [all …]
|
/external/llvm/include/llvm-c/ |
D | Core.h | 1776 LLVMValueRef LLVMConstTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1777 LLVMValueRef LLVMConstSExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1778 LLVMValueRef LLVMConstZExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1779 LLVMValueRef LLVMConstFPTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1780 LLVMValueRef LLVMConstFPExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1781 LLVMValueRef LLVMConstUIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1782 LLVMValueRef LLVMConstSIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1783 LLVMValueRef LLVMConstFPToUI(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1784 LLVMValueRef LLVMConstFPToSI(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1785 LLVMValueRef LLVMConstPtrToInt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm-c/ |
D | Core.h | 1965 LLVMValueRef LLVMConstTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1966 LLVMValueRef LLVMConstSExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1967 LLVMValueRef LLVMConstZExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1968 LLVMValueRef LLVMConstFPTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1969 LLVMValueRef LLVMConstFPExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1970 LLVMValueRef LLVMConstUIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1971 LLVMValueRef LLVMConstSIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1972 LLVMValueRef LLVMConstFPToUI(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1973 LLVMValueRef LLVMConstFPToSI(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 1974 LLVMValueRef LLVMConstPtrToInt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); [all …]
|
/external/llvm/lib/IR/ |
D | Core.cpp | 1272 LLVMValueRef LLVMConstTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstTrunc() argument 1274 unwrap(ToType))); in LLVMConstTrunc() 1277 LLVMValueRef LLVMConstSExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstSExt() argument 1279 unwrap(ToType))); in LLVMConstSExt() 1282 LLVMValueRef LLVMConstZExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstZExt() argument 1284 unwrap(ToType))); in LLVMConstZExt() 1287 LLVMValueRef LLVMConstFPTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstFPTrunc() argument 1289 unwrap(ToType))); in LLVMConstFPTrunc() 1292 LLVMValueRef LLVMConstFPExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstFPExt() argument 1294 unwrap(ToType))); in LLVMConstFPExt() [all …]
|
/external/webrtc/talk/session/media/ |
D | typewrapping.h.pump | 109 typename unwrapper<fromType>::ToType 122 template <typename ToType, typename FromType> class Wrapper, 158 template <typename ToType, typename FromType> class Wrapper, 200 template<typename ToType, typename FromType> \ 218 typedef FromType ToType; \ 219 static FORCE_INLINE ToType Unwrap(FromType from) { \ 241 typedef unwrappedType ToType; \
|
/external/compiler-rt/lib/ubsan/ |
D | ubsan_handlers.cc | 370 const TypeDescriptor *FromType, *ToType; in handleFloatCastOverflow() local 378 ToType = &Data->ToType; in handleFloatCastOverflow() 386 ToType = &Data->ToType; in handleFloatCastOverflow() 393 << Value(*FromType, From) << *FromType << *ToType; in handleFloatCastOverflow()
|
D | ubsan_handlers.h | 104 const TypeDescriptor &ToType; member 110 const TypeDescriptor &ToType; member
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Core.cpp | 1469 LLVMValueRef LLVMConstTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstTrunc() argument 1471 unwrap(ToType))); in LLVMConstTrunc() 1474 LLVMValueRef LLVMConstSExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstSExt() argument 1476 unwrap(ToType))); in LLVMConstSExt() 1479 LLVMValueRef LLVMConstZExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstZExt() argument 1481 unwrap(ToType))); in LLVMConstZExt() 1484 LLVMValueRef LLVMConstFPTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstFPTrunc() argument 1486 unwrap(ToType))); in LLVMConstFPTrunc() 1489 LLVMValueRef LLVMConstFPExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstFPExt() argument 1491 unwrap(ToType))); in LLVMConstFPExt() [all …]
|
/external/clang/include/clang/Sema/ |
D | Overload.h | 502 Expr *FromExpr, QualType ToType) { in setBad() argument 504 Bad.init(Failure, FromExpr, ToType); in setBad() 509 QualType FromType, QualType ToType) { in setBad() argument 511 Bad.init(Failure, FromType, ToType); in setBad()
|
D | Sema.h | 2263 TryImplicitConversion(Expr *From, QualType ToType, 2270 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); 2290 bool CheckPointerConversion(Expr *From, QualType ToType, [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | ScalarReplAggregates.cpp | 279 Value *ConvertScalar_ExtractValue(Value *NV, Type *ToType, 677 ConvertScalar_ExtractValue(Value *FromVal, Type *ToType, in ConvertScalar_ExtractValue() argument 681 if (FromType == ToType && Offset == 0) in ConvertScalar_ExtractValue() 688 unsigned ToTypeSize = TD.getTypeAllocSize(ToType); in ConvertScalar_ExtractValue() 690 return Builder.CreateBitCast(FromVal, ToType); in ConvertScalar_ExtractValue() 701 if (V->getType() != ToType) in ConvertScalar_ExtractValue() 702 V = Builder.CreateBitCast(V, ToType); in ConvertScalar_ExtractValue() 708 if (StructType *ST = dyn_cast<StructType>(ToType)) { in ConvertScalar_ExtractValue() 720 if (ArrayType *AT = dyn_cast<ArrayType>(ToType)) { in ConvertScalar_ExtractValue() 742 TD.getTypeStoreSizeInBits(ToType) - Offset; in ConvertScalar_ExtractValue() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/GlobalISel/ |
D | LegalizerHelper.cpp | 143 static RTLIB::Libcall getConvRTLibDesc(unsigned Opcode, Type *ToType, in getConvRTLibDesc() argument 145 auto ToMVT = MVT::getVT(ToType); in getConvRTLibDesc() 166 conversionLibcall(MachineInstr &MI, MachineIRBuilder &MIRBuilder, Type *ToType, in conversionLibcall() argument 168 RTLIB::Libcall Libcall = getConvRTLibDesc(MI.getOpcode(), ToType, FromType); in conversionLibcall() 169 return createLibcall(MIRBuilder, Libcall, {MI.getOperand(0).getReg(), ToType}, in conversionLibcall()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | SValBuilder.cpp | 446 APSIntType ToType(getContext().getTypeSize(castTy), in evalIntegralCast() local 448 llvm::APSInt ToTypeMax = ToType.getMaxValue(); in evalIntegralCast()
|
/external/googletest/googlemock/scripts/generator/cpp/ |
D | ast.py | 477 def ToType(self, tokens): member in TypeConverter 511 AddType(self.ToType(new_tokens)) 570 templated_types = self.ToType(templated_tokens) 1388 new_type = self.converter.ToType(tokens)[0] 1481 bases_ast = self.converter.ToType(base)
|
/external/google-breakpad/src/testing/scripts/generator/cpp/ |
D | ast.py | 476 def ToType(self, tokens): member in TypeConverter 509 AddType(self.ToType(new_tokens)) 568 templated_types = self.ToType(templated_tokens) 1375 new_type = self.converter.ToType(tokens)[0] 1468 bases_ast = self.converter.ToType(base)
|
/external/google-breakpad/src/testing/test/ |
D | gmock-actions_test.cc | 530 class ToType { class 533 ToType(const FromType& x) { *x.converted() = true; } // NOLINT in ToType() function in __anon3e4373c20111::ToType 539 Action<ToType()> action(Return(x)); in TEST()
|
/external/clang/lib/Basic/ |
D | Diagnostic.cpp | 867 TDT.ToType = getRawArg(ArgNo2); in FormatDiagnostic() 925 TDT.ToType)); in FormatDiagnostic()
|