Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTDiagnostic.cpp351 static bool FormatTemplateTypeDiff(ASTContext &Context, QualType FromType,
404 QualType FromType = in FormatASTNodeDiagnosticArgument() local
405 QualType::getFromOpaquePtr(reinterpret_cast<void*>(TDT.FromType)); in FormatASTNodeDiagnosticArgument()
409 if (FormatTemplateTypeDiff(Context, FromType, ToType, TDT.PrintTree, in FormatASTNodeDiagnosticArgument()
424 Val = TDT.PrintFromType ? TDT.FromType : TDT.ToType; in FormatASTNodeDiagnosticArgument()
656 void SetTypeDiff(QualType FromType, QualType ToType, bool FromDefault, in SetTypeDiff() argument
660 FlatTree[CurrentNode].FromArgInfo.ArgType = FromType; in SetTypeDiff()
821 void GetTypeDiff(QualType &FromType, QualType &ToType) { in GetTypeDiff() argument
823 FromType = FlatTree[ReadNode].FromArgInfo.ArgType; in GetTypeDiff()
1146 static bool OnlyPerformTypeDiff(ASTContext &Context, QualType FromType, in OnlyPerformTypeDiff() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaOverload.cpp300 QualType FromType = getFromType(); in isPointerConversionToVoidPointer() local
307 FromType = Context.getArrayDecayedType(FromType); in isPointerConversionToVoidPointer()
309 if (Second == ICK_Pointer_Conversion && FromType->isAnyPointerType()) in isPointerConversionToVoidPointer()
369 QualType FromType = getToType(0); in getNarrowingKind() local
381 if (FromType->isRealFloatingType()) in getNarrowingKind()
383 if (FromType->isIntegralOrUnscopedEnumerationType()) in getNarrowingKind()
396 if (FromType->isRealFloatingType() && ToType->isIntegralType(Ctx)) { in getNarrowingKind()
398 } else if (FromType->isIntegralOrUnscopedEnumerationType() && in getNarrowingKind()
438 if (FromType->isRealFloatingType() && ToType->isRealFloatingType() && in getNarrowingKind()
439 Ctx.getFloatingTypeOrder(FromType, ToType) == 1) { in getNarrowingKind()
[all …]
H A DSemaExprCXX.cpp4323 QualType FromType = From->getType(); in PerformImplicitConversion() local
4350 if (Context.hasSameType(FromType, Context.OverloadTy)) { in PerformImplicitConversion()
4371 FromType = From->getType(); in PerformImplicitConversion()
4382 QualType InitialFromType = FromType; in PerformImplicitConversion()
4386 if (const AtomicType *FromAtomic = FromType->getAs<AtomicType>()) { in PerformImplicitConversion()
4387 FromType = FromAtomic->getValueType().getUnqualifiedType(); in PerformImplicitConversion()
4388 From = ImplicitCastExpr::Create(Context, FromType, CK_AtomicToNonAtomic, in PerformImplicitConversion()
4401 FromType = From->getType(); in PerformImplicitConversion()
4406 FromType = Context.getArrayDecayedType(FromType); in PerformImplicitConversion()
4407 From = ImpCastExprToType(From, FromType, CK_ArrayToPointerDecay, VK_PRValue, in PerformImplicitConversion()
[all …]
H A DSemaCast.cpp182 void CheckNoDeref(Sema &S, const QualType FromType, const QualType ToType, in CheckNoDeref() argument
184 if (const auto *PtrType = dyn_cast<PointerType>(FromType)) { in CheckNoDeref()
1544 QualType FromType = SrcExpr->getType(); in TryLValueToRValueCast() local
1547 FromType = FromType.getUnqualifiedType(); in TryLValueToRValueCast()
1553 SrcExpr->getBeginLoc(), ToType, FromType, &RefConv); in TryLValueToRValueCast()
H A DSemaExprObjC.cpp4662 QualType FromType = SubExpr->getType(); in BuildObjCBridgedCast() local
4670 } else if (T->isObjCARCBridgableType() && FromType->isCARCBridgableType()) { in BuildObjCBridgedCast()
4682 << FromType in BuildObjCBridgedCast()
4690 << FromType << br in BuildObjCBridgedCast()
4704 } else if (T->isCARCBridgableType() && FromType->isObjCARCBridgableType()) { in BuildObjCBridgedCast()
4716 SubExpr = ImplicitCastExpr::Create(Context, FromType, CK_ARCProduceObject, in BuildObjCBridgedCast()
4724 << (FromType->isBlockPointerType()? 1 : 0) in BuildObjCBridgedCast()
4725 << FromType in BuildObjCBridgedCast()
4744 << FromType << T << Kind in BuildObjCBridgedCast()
H A DSemaObjC.cpp1317 bool SemaObjC::isObjCWritebackConversion(QualType FromType, QualType ToType, in isObjCWritebackConversion() argument
1321 Context.hasSameUnqualifiedType(FromType, ToType)) in isObjCWritebackConversion()
1339 if (const PointerType *FromPointer = FromType->getAs<PointerType>()) in isObjCWritebackConversion()
H A DSemaExpr.cpp2954 QualType FromType = From->getType(); in PerformObjectMemberConversion() local
2958 auto FromPtrType = FromType->getAs<PointerType>(); in PerformObjectMemberConversion()
2961 ? FromType->getPointeeType().getAddressSpace() in PerformObjectMemberConversion()
2962 : FromType.getAddressSpace()); in PerformObjectMemberConversion()
2970 FromRecordType = FromType; in PerformObjectMemberConversion()
2979 if (FromType->getAs<PointerType>()) { in PerformObjectMemberConversion()
2980 FromRecordType = FromType->getPointeeType(); in PerformObjectMemberConversion()
2983 FromRecordType = FromType; in PerformObjectMemberConversion()
3005 if (DestType->isDependentType() || FromType->isDependentType()) in PerformObjectMemberConversion()
3055 FromType = QType; in PerformObjectMemberConversion()
[all …]
H A DSemaTemplateDeduction.cpp3360 Sema::DeduceTemplateArgumentsFromType(TemplateDecl *TD, QualType FromType, in DeduceTemplateArgumentsFromType() argument
3389 SmallVector<TemplateArgument> AArgs = {TemplateArgument(FromType)}; in DeduceTemplateArgumentsFromType()
4760 QualType FromType = ConversionGeneric->getConversionType(); in DeduceTemplateArguments() local
4763 QualType P = Context.getCanonicalType(FromType); in DeduceTemplateArguments()
4780 if (!FromType->getAs<ReferenceType>()) { in DeduceTemplateArguments()
H A DSemaInit.cpp7310 static void CheckC23ConstexprInitConversion(Sema &S, QualType FromType,
8835 QualType FromType = OnlyArg->getType(); in Diagnose() local
8840 << FromType in Diagnose()
8842 S.HandleFunctionTypeMismatch(PDiag, FromType, DestType); in Diagnose()
9534 static void CheckC23ConstexprInitConversion(Sema &S, QualType FromType, in CheckC23ConstexprInitConversion() argument
9562 << ToType << FromType; in CheckC23ConstexprInitConversion()
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_handlers.h113 const TypeDescriptor &FromType; member
119 const TypeDescriptor &FromType; member
147 const TypeDescriptor &FromType; member
H A 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()
558 const TypeDescriptor &SrcTy = Data->FromType; in handleImplicitConversion()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTX.h118 enum FromType { enum
H A DNVPTXISelDAGToDAG.cpp1088 unsigned int FromType; in tryLoadVector() local
1093 FromType = NVPTX::PTXLdStInstCode::Signed; in tryLoadVector()
1095 FromType = getLdStRegType(ScalarVT); in tryLoadVector()
1118 FromType = NVPTX::PTXLdStInstCode::Untyped; in tryLoadVector()
1142 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
1167 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
1212 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
1257 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DOverload.h723 QualType FromType, QualType ToType) { in setBad() argument
725 Bad.init(Failure, FromType, ToType); in setBad()
H A DSema.h7229 bool IsInvalidSMECallConversion(QualType FromType, QualType ToType);
9870 bool IsIntegralPromotion(Expr *From, QualType FromType, QualType ToType);
9875 bool IsFloatingPointPromotion(QualType FromType, QualType ToType);
9882 bool IsComplexPromotion(QualType FromType, QualType ToType);
9900 bool IsPointerConversion(Expr *From, QualType FromType, QualType ToType,
9907 bool isObjCPointerConversion(QualType FromType, QualType ToType,
9909 bool IsBlockPointerConversion(QualType FromType, QualType ToType,
9937 void HandleFunctionTypeMismatch(PartialDiagnostic &PDiag, QualType FromType,
9955 bool IsMemberPointerConversion(Expr *From, QualType FromType, QualType ToType,
9976 bool IsQualificationConversion(QualType FromType, QualType ToType,
[all …]
H A DSemaObjC.h144 bool isObjCWritebackConversion(QualType FromType, QualType ToType,
/freebsd/contrib/googletest/googlemock/test/
H A Dgmock-actions_test.cc835 class FromType { class
837 explicit FromType(bool* is_converted) : converted_(is_converted) {} in FromType() function in testing::__anon10e2b6f40111::FromType
847 ToType(const FromType& x) { *x.converted() = true; } // NOLINT in ToType()
852 FromType x(&converted); in TEST()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp1083 QualType FromType = E->getType(); in ProduceIntToIntCast() local
1085 if (FromType->isIntegerType()) in ProduceIntToIntCast()
1086 if (llvm::Constant *C = Visit(E, FromType)) in ProduceIntToIntCast()
1088 unsigned SrcWidth = CGM.getContext().getIntWidth(FromType); in ProduceIntToIntCast()
1092 llvm::APInt A = FromType->isSignedIntegerType() in ProduceIntToIntCast()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DDiagnostic.cpp1070 TDT.FromType = getRawArg(ArgNo); in FormatDiagnostic()
1115 TDT.FromType)); in FormatDiagnostic()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp2573 llvm::Type *FromType = FromValue->getType(); in salvageDebugInfoImpl() local
2574 if (FromType->isPointerTy()) in salvageDebugInfoImpl()
2575 FromType = DL.getIntPtrType(FromType); in salvageDebugInfoImpl()
2577 unsigned FromTypeBitSize = FromType->getScalarSizeInBits(); in salvageDebugInfoImpl()
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-matchers.h418 using FromType = typename std::remove_cv<typename std::remove_pointer< in MatchAndExplain() local
428 std::is_same<FromType, ToType>::value || in MatchAndExplain()
429 !std::is_base_of<FromType, ToType>::value, in MatchAndExplain()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelDAGToDAG.cpp1772 EVT FromType = V.getOperand(0).getValueType(); in getValueBits() local
1775 if (FromType != MVT::i64 || ToType != MVT::i32) in getValueBits()
1777 const unsigned NumAllBits = FromType.getSizeInBits(); in getValueBits()
1806 EVT FromType = cast<VTSDNode>(V.getOperand(1))->getVT(); in getValueBits() local
1807 const unsigned NumValidBits = FromType.getSizeInBits(); in getValueBits()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp2242 Type *FromType = From->getType(); in castValueToType() local
2243 uint64_t FromSize = M.getDataLayout().getTypeStoreSize(FromType); in castValueToType()
2247 if (FromType == ToType) in castValueToType()
2251 if (ToType->isIntegerTy() && FromType->isIntegerTy()) in castValueToType()
2259 CastItem, FromType->getPointerTo()); in castValueToType()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp855 Type *FromType) { in getConvRTLibDesc() argument
857 auto FromMVT = MVT::getVT(FromType); in getConvRTLibDesc()
878 Type *FromType, LostDebugLocObserver &LocObserver) { in conversionLibcall() argument
879 RTLIB::Libcall Libcall = getConvRTLibDesc(MI.getOpcode(), ToType, FromType); in conversionLibcall()
882 {{MI.getOperand(1).getReg(), FromType, 0}}, LocObserver, &MI); in conversionLibcall()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp1134 bool SystemZTargetLowering::isTruncateFree(Type *FromType, Type *ToType) const { in isTruncateFree() argument
1135 if (!FromType->isIntegerTy() || !ToType->isIntegerTy()) in isTruncateFree()
1137 unsigned FromBits = FromType->getPrimitiveSizeInBits().getFixedValue(); in isTruncateFree()
1464 bool SystemZTargetLowering::allowTruncateForTailCall(Type *FromType, in allowTruncateForTailCall() argument
1466 return isTruncateFree(FromType, ToType); in allowTruncateForTailCall()

12