Home
last modified time | relevance | path

Searched refs:ToType (Results 1 – 15 of 15) sorted by relevance

/external/clang/lib/Sema/
DSemaOverload.cpp54 static bool IsStandardConversion(Sema &S, Expr* From, QualType ToType,
61 QualType &ToType,
66 IsUserDefinedConversion(Sema &S, Expr *From, QualType ToType,
246 QualType ToType = getToType(1); in isPointerConversionToVoidPointer() local
255 if (const PointerType* ToPtrType = ToType->getAs<PointerType>()) in isPointerConversionToVoidPointer()
303 QualType ToType = getToType(1); in getNarrowingKind() local
312 if (FromType->isRealFloatingType() && ToType->isIntegralType(Ctx)) { in getNarrowingKind()
314 } else if (FromType->isIntegralType(Ctx) && ToType->isRealFloatingType()) { in getNarrowingKind()
320 llvm::APFloat Result(Ctx.getFloatTypeSemantics(ToType)); in getNarrowingKind()
346 if (FromType->isRealFloatingType() && ToType->isRealFloatingType() && in getNarrowingKind()
[all …]
DSemaExprCXX.cpp2259 Sema::IsStringLiteralToNonConstPointerConversion(Expr *From, QualType ToType) { in IsStringLiteralToNonConstPointerConversion() argument
2269 if (const PointerType *ToPtrType = ToType->getAs<PointerType>()) in IsStringLiteralToNonConstPointerConversion()
2356 Sema::PerformImplicitConversion(Expr *From, QualType ToType, in PerformImplicitConversion() argument
2362 ExprResult Res = PerformImplicitConversion(From, ToType, ICS.Standard, in PerformImplicitConversion()
2408 ToType.getNonReferenceType(), in PerformImplicitConversion()
2419 return PerformImplicitConversion(From, ToType, ICS.UserDefined.After, in PerformImplicitConversion()
2446 Sema::PerformImplicitConversion(Expr *From, QualType ToType, in PerformImplicitConversion() argument
2460 assert(!ToType->isReferenceType()); in PerformImplicitConversion()
2469 ToType, SCS.CopyConstructor, in PerformImplicitConversion()
2477 ToType, SCS.CopyConstructor, in PerformImplicitConversion()
[all …]
DSemaCast.cpp973 QualType ToType = R->getPointeeType(); in TryLValueToRValueCast() local
976 ToType = ToType.getUnqualifiedType(); in TryLValueToRValueCast()
980 ToType, FromType, in TryLValueToRValueCast()
DSemaExceptionSpec.cpp717 bool Sema::CheckExceptionSpecCompatibility(Expr *From, QualType ToType) in CheckExceptionSpecCompatibility() argument
721 const FunctionProtoType *ToFunc = GetUnderlyingFunction(ToType); in CheckExceptionSpecCompatibility()
DSemaTemplateDeduction.cpp3307 QualType ToType, in DeduceTemplateArguments() argument
3316 QualType A = Context.getCanonicalType(ToType); in DeduceTemplateArguments()
3379 if (ToType->isReferenceType()) in DeduceTemplateArguments()
DSemaExpr.cpp11160 ExprResult Sema::forceUnknownAnyToType(Expr *E, QualType ToType) { in forceUnknownAnyToType() argument
11161 return RebuildUnknownAnyExpr(*this, ToType).Visit(E); in forceUnknownAnyToType()
/external/llvm/lib/VMCore/
DCore.cpp897 LLVMValueRef LLVMConstTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstTrunc() argument
899 unwrap(ToType))); in LLVMConstTrunc()
902 LLVMValueRef LLVMConstSExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstSExt() argument
904 unwrap(ToType))); in LLVMConstSExt()
907 LLVMValueRef LLVMConstZExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstZExt() argument
909 unwrap(ToType))); in LLVMConstZExt()
912 LLVMValueRef LLVMConstFPTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstFPTrunc() argument
914 unwrap(ToType))); in LLVMConstFPTrunc()
917 LLVMValueRef LLVMConstFPExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstFPExt() argument
919 unwrap(ToType))); in LLVMConstFPExt()
[all …]
/external/llvm/include/llvm-c/
DCore.h1499 LLVMValueRef LLVMConstTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
1500 LLVMValueRef LLVMConstSExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
1501 LLVMValueRef LLVMConstZExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
1502 LLVMValueRef LLVMConstFPTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
1503 LLVMValueRef LLVMConstFPExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
1504 LLVMValueRef LLVMConstUIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
1505 LLVMValueRef LLVMConstSIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
1506 LLVMValueRef LLVMConstFPToUI(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
1507 LLVMValueRef LLVMConstFPToSI(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
1508 LLVMValueRef LLVMConstPtrToInt(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
[all …]
/external/clang/include/clang/Sema/
DOverload.h516 Expr *FromExpr, QualType ToType) { in setBad() argument
518 Bad.init(Failure, FromExpr, ToType); in setBad()
523 QualType FromType, QualType ToType) { in setBad() argument
525 Bad.init(Failure, FromType, ToType); in setBad()
DSema.h1501 TryImplicitConversion(Expr *From, QualType ToType,
1508 bool IsIntegralPromotion(Expr *From, QualType FromType, QualType ToType);
1509 bool IsFloatingPointPromotion(QualType FromType, QualType ToType);
1510 bool IsComplexPromotion(QualType FromType, QualType ToType);
1511 bool IsPointerConversion(Expr *From, QualType FromType, QualType ToType,
1514 bool isObjCPointerConversion(QualType FromType, QualType ToType,
1516 bool isObjCWritebackConversion(QualType FromType, QualType ToType,
1518 bool IsBlockPointerConversion(QualType FromType, QualType ToType,
1524 QualType FromType, QualType ToType);
1527 bool CheckPointerConversion(Expr *From, QualType ToType,
[all …]
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp279 Value *ConvertScalar_ExtractValue(Value *NV, Type *ToType,
680 ConvertScalar_ExtractValue(Value *FromVal, Type *ToType, in ConvertScalar_ExtractValue() argument
684 if (FromType == ToType && Offset == 0) in ConvertScalar_ExtractValue()
691 unsigned ToTypeSize = TD.getTypeAllocSize(ToType); in ConvertScalar_ExtractValue()
693 return Builder.CreateBitCast(FromVal, ToType); in ConvertScalar_ExtractValue()
704 if (V->getType() != ToType) in ConvertScalar_ExtractValue()
705 V = Builder.CreateBitCast(V, ToType); in ConvertScalar_ExtractValue()
711 if (StructType *ST = dyn_cast<StructType>(ToType)) { in ConvertScalar_ExtractValue()
723 if (ArrayType *AT = dyn_cast<ArrayType>(ToType)) { in ConvertScalar_ExtractValue()
745 TD.getTypeStoreSizeInBits(ToType) - Offset; in ConvertScalar_ExtractValue()
[all …]
/external/chromium/testing/gmock/scripts/generator/cpp/
Dast.py476 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/chromium/testing/gmock/test/
Dgmock-actions_test.cc530 class ToType { class
532 ToType(const FromType& x) { *x.converted() = true; } in ToType() function in __anon8ca216c60111::ToType
538 Action<ToType()> action(Return(x)); in TEST()
/external/clang/lib/AST/
DASTImporter.cpp1984 QualType ToType = Importer.Import(From.getAsType()); in ImportTemplateArgument() local
1985 if (ToType.isNull()) in ImportTemplateArgument()
1987 return TemplateArgument(ToType); in ImportTemplateArgument()
1991 QualType ToType = Importer.Import(From.getIntegralType()); in ImportTemplateArgument() local
1992 if (ToType.isNull()) in ImportTemplateArgument()
1994 return TemplateArgument(*From.getAsIntegral(), ToType); in ImportTemplateArgument()
/external/clang/lib/CodeGen/
DCGExpr.cpp2347 QualType ToType = getContext().getLValueReferenceType(E->getType()); in EmitCastLValue() local
2349 ConvertType(ToType)); in EmitCastLValue()