Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/clang/lib/AST/
H A DASTDiagnostic.cpp350 static bool FormatTemplateTypeDiff(ASTContext &Context, QualType FromType,
403 QualType FromType = in FormatASTNodeDiagnosticArgument() local
404 QualType::getFromOpaquePtr(reinterpret_cast<void*>(TDT.FromType)); in FormatASTNodeDiagnosticArgument()
408 if (FormatTemplateTypeDiff(Context, FromType, ToType, TDT.PrintTree, in FormatASTNodeDiagnosticArgument()
423 Val = TDT.PrintFromType ? TDT.FromType : TDT.ToType; in FormatASTNodeDiagnosticArgument()
655 void SetTypeDiff(QualType FromType, QualType ToType, bool FromDefault, in SetTypeDiff() argument
659 FlatTree[CurrentNode].FromArgInfo.ArgType = FromType; in SetTypeDiff()
820 void GetTypeDiff(QualType &FromType, QualType &ToType) { in GetTypeDiff() argument
822 FromType = FlatTree[ReadNode].FromArgInfo.ArgType; in GetTypeDiff()
1145 static bool OnlyPerformTypeDiff(ASTContext &Context, QualType FromType, in OnlyPerformTypeDiff() argument
[all …]
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaOverload.cpp253 QualType FromType = getFromType(); in isPointerConversionToVoidPointer() local
260 FromType = Context.getArrayDecayedType(FromType); in isPointerConversionToVoidPointer()
262 if (Second == ICK_Pointer_Conversion && FromType->isAnyPointerType()) in isPointerConversionToVoidPointer()
321 QualType FromType = getToType(0); in getNarrowingKind() local
333 if (FromType->isRealFloatingType()) in getNarrowingKind()
335 if (FromType->isIntegralOrUnscopedEnumerationType()) in getNarrowingKind()
348 if (FromType->isRealFloatingType() && ToType->isIntegralType(Ctx)) { in getNarrowingKind()
350 } else if (FromType->isIntegralOrUnscopedEnumerationType() && in getNarrowingKind()
390 if (FromType->isRealFloatingType() && ToType->isRealFloatingType() && in getNarrowingKind()
391 Ctx.getFloatingTypeOrder(FromType, ToType) == 1) { in getNarrowingKind()
[all …]
H A DSemaExprCXX.cpp4276 QualType FromType = From->getType(); in PerformImplicitConversion() local
4303 if (Context.hasSameType(FromType, Context.OverloadTy)) { in PerformImplicitConversion()
4322 FromType = From->getType(); in PerformImplicitConversion()
4333 QualType InitialFromType = FromType; in PerformImplicitConversion()
4337 if (const AtomicType *FromAtomic = FromType->getAs<AtomicType>()) { in PerformImplicitConversion()
4338 FromType = FromAtomic->getValueType().getUnqualifiedType(); in PerformImplicitConversion()
4339 From = ImplicitCastExpr::Create(Context, FromType, CK_AtomicToNonAtomic, in PerformImplicitConversion()
4352 FromType = From->getType(); in PerformImplicitConversion()
4357 FromType = Context.getArrayDecayedType(FromType); in PerformImplicitConversion()
4358 From = ImpCastExprToType(From, FromType, CK_ArrayToPointerDecay, VK_PRValue, in PerformImplicitConversion()
[all …]
H A DSemaExprObjC.cpp4642 QualType FromType = SubExpr->getType(); in BuildObjCBridgedCast() local
4650 } else if (T->isObjCARCBridgableType() && FromType->isCARCBridgableType()) { in BuildObjCBridgedCast()
4662 << FromType in BuildObjCBridgedCast()
4670 << FromType << br in BuildObjCBridgedCast()
4684 } else if (T->isCARCBridgableType() && FromType->isObjCARCBridgableType()) { in BuildObjCBridgedCast()
4696 SubExpr = ImplicitCastExpr::Create(Context, FromType, CK_ARCProduceObject, in BuildObjCBridgedCast()
4704 << (FromType->isBlockPointerType()? 1 : 0) in BuildObjCBridgedCast()
4705 << FromType in BuildObjCBridgedCast()
4724 << FromType << T << Kind in BuildObjCBridgedCast()
H A DSemaCast.cpp175 void CheckNoDeref(Sema &S, const QualType FromType, const QualType ToType, in CheckNoDeref() argument
177 if (const auto *PtrType = dyn_cast<PointerType>(FromType)) { in CheckNoDeref()
1505 QualType FromType = SrcExpr->getType(); in TryLValueToRValueCast() local
1508 FromType = FromType.getUnqualifiedType(); in TryLValueToRValueCast()
1514 SrcExpr->getBeginLoc(), ToType, FromType, &RefConv); in TryLValueToRValueCast()
H A DSemaExpr.cpp3014 QualType FromType = From->getType(); in PerformObjectMemberConversion() local
3018 auto FromPtrType = FromType->getAs<PointerType>(); in PerformObjectMemberConversion()
3021 ? FromType->getPointeeType().getAddressSpace() in PerformObjectMemberConversion()
3022 : FromType.getAddressSpace()); in PerformObjectMemberConversion()
3030 FromRecordType = FromType; in PerformObjectMemberConversion()
3039 if (FromType->getAs<PointerType>()) { in PerformObjectMemberConversion()
3040 FromRecordType = FromType->getPointeeType(); in PerformObjectMemberConversion()
3043 FromRecordType = FromType; in PerformObjectMemberConversion()
3065 if (DestType->isDependentType() || FromType->isDependentType()) in PerformObjectMemberConversion()
3115 FromType = QType; in PerformObjectMemberConversion()
[all …]
H A DSemaTemplateDeduction.cpp4415 QualType FromType = ConversionGeneric->getConversionType(); in DeduceTemplateArguments() local
4418 QualType P = Context.getCanonicalType(FromType); in DeduceTemplateArguments()
4435 if (!FromType->getAs<ReferenceType>()) { in DeduceTemplateArguments()
H A DSemaInit.cpp9638 QualType FromType = OnlyArg->getType(); in Diagnose() local
9643 << FromType in Diagnose()
9645 S.HandleFunctionTypeMismatch(PDiag, FromType, DestType); in Diagnose()
/openbsd-src/gnu/llvm/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()
560 const TypeDescriptor &SrcTy = Data->FromType; in handleImplicitConversion()
/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTX.h116 enum FromType { enum
H A DNVPTXISelDAGToDAG.cpp1051 unsigned int FromType; in tryLoadVector() local
1056 FromType = NVPTX::PTXLdStInstCode::Signed; in tryLoadVector()
1058 FromType = getLdStRegType(ScalarVT); in tryLoadVector()
1081 FromType = NVPTX::PTXLdStInstCode::Untyped; in tryLoadVector()
1107 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
1134 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
1183 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
1232 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DOverload.h671 QualType FromType, QualType ToType) { in setBad() argument
673 Bad.init(Failure, FromType, ToType); in setBad()
H A DSema.h3782 bool IsIntegralPromotion(Expr *From, QualType FromType, QualType ToType);
3783 bool IsFloatingPointPromotion(QualType FromType, QualType ToType);
3784 bool IsComplexPromotion(QualType FromType, QualType ToType);
3785 bool IsPointerConversion(Expr *From, QualType FromType, QualType ToType,
3788 bool isObjCPointerConversion(QualType FromType, QualType ToType,
3790 bool isObjCWritebackConversion(QualType FromType, QualType ToType,
3792 bool IsBlockPointerConversion(QualType FromType, QualType ToType,
3799 QualType FromType, QualType ToType);
3808 bool IsMemberPointerConversion(Expr *From, QualType FromType, QualType ToType,
3815 bool IsQualificationConversion(QualType FromType, QualType ToType,
[all …]
/openbsd-src/gnu/llvm/clang/lib/Basic/
H A DDiagnostic.cpp1073 TDT.FromType = getRawArg(ArgNo); in FormatDiagnostic()
1118 TDT.FromType)); in FormatDiagnostic()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DLocal.cpp2040 llvm::Type *FromType = FromValue->getType(); in salvageDebugInfoImpl() local
2041 if (FromType->isPointerTy()) in salvageDebugInfoImpl()
2042 FromType = DL.getIntPtrType(FromType); in salvageDebugInfoImpl()
2044 unsigned FromTypeBitSize = FromType->getScalarSizeInBits(); in salvageDebugInfoImpl()
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DDiagnostic.h1823 intptr_t FromType; member
/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/
H A DPPCISelDAGToDAG.cpp1617 EVT FromType = V.getOperand(0).getValueType(); in getValueBits() local
1620 if (FromType != MVT::i64 || ToType != MVT::i32) in getValueBits()
1622 const unsigned NumAllBits = FromType.getSizeInBits(); in getValueBits()
1651 EVT FromType = cast<VTSDNode>(V.getOperand(1))->getVT(); in getValueBits() local
1652 const unsigned NumValidBits = FromType.getSizeInBits(); in getValueBits()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp764 Type *FromType) { in getConvRTLibDesc() argument
766 auto FromMVT = MVT::getVT(FromType); in getConvRTLibDesc()
787 Type *FromType) { in conversionLibcall() argument
788 RTLIB::Libcall Libcall = getConvRTLibDesc(MI.getOpcode(), ToType, FromType); in conversionLibcall()
791 {{MI.getOperand(1).getReg(), FromType, 0}}); in conversionLibcall()
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp1024 bool SystemZTargetLowering::isTruncateFree(Type *FromType, Type *ToType) const { in isTruncateFree() argument
1025 if (!FromType->isIntegerTy() || !ToType->isIntegerTy()) in isTruncateFree()
1027 unsigned FromBits = FromType->getPrimitiveSizeInBits().getFixedValue(); in isTruncateFree()
1340 bool SystemZTargetLowering::allowTruncateForTailCall(Type *FromType, in allowTruncateForTailCall() argument
1342 return isTruncateFree(FromType, ToType); in allowTruncateForTailCall()