| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaOverload.cpp | 92 static bool IsStandardConversion(Sema &S, Expr* From, QualType ToType, 99 QualType &ToType, 104 IsUserDefinedConversion(Sema &S, Expr *From, QualType ToType, 298 QualType ToType = getToType(1); in isPointerConversionToVoidPointer() local 307 if (const PointerType* ToPtrType = ToType->getAs<PointerType>()) in isPointerConversionToVoidPointer() 367 QualType ToType = getToType(1); in getNarrowingKind() local 372 if (auto *ET = ToType->getAs<EnumType>()) in getNarrowingKind() 373 ToType = ET->getDecl()->getIntegerType(); in getNarrowingKind() 393 if (FromType->isRealFloatingType() && ToType->isIntegralType(Ctx)) { in getNarrowingKind() 396 ToType->isRealFloatingType()) { in getNarrowingKind() [all …]
|
| H A D | SemaExprCXX.cpp | 4447 Sema::IsStringLiteralToNonConstPointerConversion(Expr *From, QualType ToType) { in IsStringLiteralToNonConstPointerConversion() argument 4457 if (const PointerType *ToPtrType = ToType->getAs<PointerType>()) in IsStringLiteralToNonConstPointerConversion() 4549 Sema::PerformImplicitConversion(Expr *From, QualType ToType, in PerformImplicitConversion() argument 4560 ExprResult Res = PerformImplicitConversion(From, ToType, ICS.Standard, in PerformImplicitConversion() 4603 *this, From->getBeginLoc(), ToType.getNonReferenceType(), CastKind, in PerformImplicitConversion() 4618 return PerformImplicitConversion(From, ToType, ICS.UserDefined.After, in PerformImplicitConversion() 4634 CheckAssignmentConstraints(From->getExprLoc(), ToType, From->getType()); in PerformImplicitConversion() 4639 From->getExprLoc(), ToType, From->getType(), From, Action); in PerformImplicitConversion() 4651 QualType ToType, QualType *ElTy = nullptr) { in adjustVectorType() argument 4652 QualType ElType = ToType; in adjustVectorType() [all …]
|
| H A D | SemaCast.cpp | 225 void CheckNoDeref(Sema &S, const QualType FromType, const QualType ToType, in CheckNoDeref() argument 229 if (const auto *DestType = dyn_cast<PointerType>(ToType)) { in CheckNoDeref() 1620 QualType ToType = R->getPointeeType(); in TryLValueToRValueCast() local 1623 ToType = ToType.getUnqualifiedType(); in TryLValueToRValueCast() 1628 SrcExpr->getBeginLoc(), ToType, FromType, &RefConv); in TryLValueToRValueCast() 1642 if (Self.CheckDerivedToBaseConversion(FromType, ToType, in TryLValueToRValueCast()
|
| H A D | SemaExceptionSpec.cpp | 909 bool Sema::CheckExceptionSpecCompatibility(Expr *From, QualType ToType) { in CheckExceptionSpecCompatibility() argument 912 const FunctionProtoType *ToFunc = GetUnderlyingFunction(ToType); in CheckExceptionSpecCompatibility()
|
| H A D | SemaObjC.cpp | 1314 bool SemaObjC::isObjCWritebackConversion(QualType FromType, QualType ToType, in isObjCWritebackConversion() argument 1318 Context.hasSameUnqualifiedType(FromType, ToType)) in isObjCWritebackConversion() 1323 if (const PointerType *ToPointer = ToType->getAs<PointerType>()) in isObjCWritebackConversion()
|
| H A D | SemaInit.cpp | 7595 QualType ToType, Expr *Init); 9826 QualType ToType, Expr *Init) { in CheckC23ConstexprInitConversion() argument 9829 Init->IgnoreParenImpCasts(), ToType, /*SuppressUserConversions*/ false, in CheckC23ConstexprInitConversion() 9847 << Value.getAsString(S.Context, PreNarrowingType) << ToType; in CheckC23ConstexprInitConversion() 9853 << ToType << FromType; in CheckC23ConstexprInitConversion()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ASTDiagnostic.cpp | 352 QualType ToType, bool PrintTree, 406 QualType ToType = in FormatASTNodeDiagnosticArgument() local 407 QualType::getFromOpaquePtr(reinterpret_cast<void*>(TDT.ToType)); in FormatASTNodeDiagnosticArgument() 409 if (FormatTemplateTypeDiff(Context, FromType, ToType, TDT.PrintTree, in FormatASTNodeDiagnosticArgument() 424 Val = TDT.PrintFromType ? TDT.FromType : TDT.ToType; in FormatASTNodeDiagnosticArgument() 685 void SetTypeDiff(QualType FromType, QualType ToType, bool FromDefault, in SetTypeDiff() argument 690 FlatTree[CurrentNode].ToArgInfo.ArgType = ToType; in SetTypeDiff() 850 void GetTypeDiff(QualType &FromType, QualType &ToType) { in GetTypeDiff() argument 853 ToType = FlatTree[ReadNode].ToArgInfo.ArgType; in GetTypeDiff() 1176 QualType ToType, in OnlyPerformTypeDiff() argument [all …]
|
| H A D | ASTImporter.cpp | 1115 Expected<TypeSourceInfo *> ToType = import(From->getType()); in ImportTypeRequirement() local 1116 if (!ToType) in ImportTypeRequirement() 1117 return ToType.takeError(); in ImportTypeRequirement() 1118 return new (Importer.getToContext()) TypeRequirement(*ToType); in ImportTypeRequirement() 2407 QualType ToType = To->getType(); in ImportFieldDeclDefinition() local 2411 ToRecordDecl = ToType->getBaseElementTypeUnsafe()->getAsRecordDecl(); in ImportFieldDeclDefinition() 2416 const RecordType *RecordTo = ToType->getAs<RecordType>(); in ImportFieldDeclDefinition() 2773 QualType ToType = importChecked(Err, D->getType()); in VisitBindingDecl() local 2779 ToD->setBinding(ToType, ToBinding); in VisitBindingDecl() 4439 auto ToType = importChecked(Err, D->getType()); in VisitFieldDecl() local [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/ |
| H A D | ubsan_handlers.h | 117 const TypeDescriptor &ToType; member 123 const TypeDescriptor &ToType; member 151 const TypeDescriptor &ToType; member
|
| H A D | ubsan_handlers.cpp | 507 const TypeDescriptor *FromType, *ToType; in handleFloatCastOverflow() local 515 ToType = &Data->ToType; in handleFloatCastOverflow() 523 ToType = &Data->ToType; in handleFloatCastOverflow() 530 << Value(*FromType, From) << *FromType << *ToType; in handleFloatCastOverflow() 581 const TypeDescriptor &DstTy = Data->ToType; in handleImplicitConversion()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Overload.h | 764 Expr *FromExpr, QualType ToType) { in setBad() argument 766 Bad.init(Failure, FromExpr, ToType); in setBad() 771 QualType FromType, QualType ToType) { in setBad() argument 773 Bad.init(Failure, FromType, ToType); in setBad() 1145 QualType ToType; member 1445 CXXRecordDecl *ActingContext, Expr *From, QualType ToType,
|
| H A D | Sema.h | 6633 bool CheckExceptionSpecCompatibility(Expr *From, QualType ToType); 7654 bool IsInvalidSMECallConversion(QualType FromType, QualType ToType); 7877 ExprResult forceUnknownAnyToType(Expr *E, QualType ToType); 8625 bool IsStringLiteralToNonConstPointerConversion(Expr *From, QualType ToType); 8633 Expr *From, QualType ToType, const ImplicitConversionSequence &ICS, 8642 ExprResult PerformImplicitConversion(Expr *From, QualType ToType, 10038 Expr *From, QualType ToType, bool SuppressUserConversions, 10047 ExprResult PerformImplicitConversion(Expr *From, QualType ToType, 10055 bool IsIntegralPromotion(Expr *From, QualType FromType, QualType ToType); 10060 bool IsFloatingPointPromotion(QualType FromType, QualType ToType); [all …]
|
| H A D | SemaObjC.h | 146 bool isObjCWritebackConversion(QualType FromType, QualType ToType,
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | InterpBuiltinBitCast.cpp | 375 QualType ToType = ToPtr.getFieldDesc()->getDataType(S.getASTContext()); in DoBitCastPtr() local 377 if (!CheckBitcastType(S, OpPC, ToType, /*IsToType=*/true)) in DoBitCastPtr()
|
| H A D | Compiler.cpp | 7038 QualType ToType = E->getType(); in emitBuiltinBitCast() local 7039 std::optional<PrimType> ToT = classify(ToType); in emitBuiltinBitCast() 7041 assert(!ToType->isReferenceType()); in emitBuiltinBitCast() 7082 TargetSemantics = &Ctx.getFloatSemantics(ToType); in emitBuiltinBitCast() 7086 bool ToTypeIsUChar = (ToType->isSpecificBuiltinType(BuiltinType::UChar) || in emitBuiltinBitCast() 7087 ToType->isSpecificBuiltinType(BuiltinType::Char_U)); in emitBuiltinBitCast() 7088 uint32_t ResultBitWidth = std::max(Ctx.getBitWidth(ToType), 8u); in emitBuiltinBitCast() 7090 if (!this->emitBitCastPrim(*ToT, ToTypeIsUChar || ToType->isStdByteType(), in emitBuiltinBitCast()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm-c/ |
| H A D | Core.h | 2572 LLVMTypeRef ToType); 2574 LLVMTypeRef ToType); 2576 LLVMTypeRef ToType); 2578 LLVMTypeRef ToType); 2580 LLVMTypeRef ToType); 2582 LLVMTypeRef ToType); 2584 LLVMTypeRef ToType);
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Core.cpp | 1852 LLVMValueRef LLVMConstTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstTrunc() argument 1854 unwrap(ToType))); in LLVMConstTrunc() 1857 LLVMValueRef LLVMConstPtrToInt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstPtrToInt() argument 1859 unwrap(ToType))); in LLVMConstPtrToInt() 1862 LLVMValueRef LLVMConstIntToPtr(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstIntToPtr() argument 1864 unwrap(ToType))); in LLVMConstIntToPtr() 1867 LLVMValueRef LLVMConstBitCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstBitCast() argument 1869 unwrap(ToType))); in LLVMConstBitCast() 1873 LLVMTypeRef ToType) { in LLVMConstAddrSpaceCast() argument 1875 unwrap(ToType))); in LLVMConstAddrSpaceCast() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXInstrInfo.td | 487 multiclass CVT_FROM_ALL<string ToType, RegisterClass RC, list<Predicate> Preds = []> { 491 "cvt${mode:base}${mode:ftz}${mode:sat}." # ToType # ".s8">, 496 "cvt${mode:base}${mode:ftz}${mode:sat}." # ToType # ".u8">, 501 "cvt${mode:base}${mode:ftz}${mode:sat}." # ToType # ".s16">, 506 "cvt${mode:base}${mode:ftz}${mode:sat}." # ToType # ".u16">, 511 "cvt${mode:base}${mode:ftz}${mode:sat}." # ToType # ".s32">, 516 "cvt${mode:base}${mode:ftz}${mode:sat}." # ToType # ".u32">, 521 "cvt${mode:base}${mode:ftz}${mode:sat}." # ToType # ".s64">, 526 "cvt${mode:base}${mode:ftz}${mode:sat}." # ToType # ".u64">, 531 "cvt${mode:base}${mode:ftz}${mode:sat}." # ToType # ".f16">, [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | SValBuilder.cpp | 608 APSIntType ToType(getContext().getTypeSize(castTy), in evalIntegralCast() local 610 llvm::APSInt ToTypeMax = ToType.getMaxValue(); in evalIntegralCast()
|
| /freebsd/contrib/googletest/googlemock/test/ |
| H A D | gmock-actions_test.cc | 844 class ToType { class 847 ToType(const FromType& x) { *x.converted() = true; } // NOLINT in ToType() function in testing::__anon10e2b6f40111::ToType 853 Action<ToType()> action(Return(x)); in TEST()
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | Diagnostic.cpp | 1361 TDT.ToType = getRawArg(ArgNo2); in FormatDiagnostic() 1416 std::make_pair(DiagnosticsEngine::ak_qualtype, TDT.ToType)); in FormatDiagnostic()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonVectorCombine.cpp | 151 VectorType *ToType) const; 2684 VectorType *ToType) const in joinVectorElements() 2686 assert(ToType->getElementType()->isIntegerTy()); in joinVectorElements() 2697 unsigned ToWidth = ToType->getScalarSizeInBits(); in joinVectorElements() 2723 assert(Inputs.front()->getType() == ToType); in joinVectorElements()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | Diagnostic.h | 1799 intptr_t ToType; member
|
| /freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/ |
| H A D | OMPIRBuilder.cpp | 2375 Type *ToType) { in castValueToType() argument 2378 uint64_t ToSize = M.getDataLayout().getTypeStoreSize(ToType); in castValueToType() 2381 if (FromType == ToType) in castValueToType() 2384 return Builder.CreateBitCast(From, ToType); in castValueToType() 2385 if (ToType->isIntegerTy() && FromType->isIntegerTy()) in castValueToType() 2386 return Builder.CreateIntCast(From, ToType, /*isSigned*/ true); in castValueToType() 2389 Value *CastItem = Builder.CreateAlloca(ToType); in castValueToType() 2395 return Builder.CreateLoad(ToType, CastItem); in castValueToType()
|
| /freebsd/contrib/googletest/googlemock/include/gmock/ |
| H A D | gmock-matchers.h | 430 using ToType = typename std::remove_cv<typename std::remove_pointer< in MatchAndExplain() local 438 std::is_same<FromType, ToType>::value || in MatchAndExplain() 439 !std::is_base_of<FromType, ToType>::value, in MatchAndExplain()
|