Searched refs:DestType (Results 1 - 19 of 19) sorted by relevance

/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaCast.cpp57 : Self(S), SrcExpr(src), DestType(destType),
72 QualType DestType; member in struct:__anon3141::CastOperation
135 void checkAddressSpaceCast(QualType SrcType, QualType DestType);
138 Self.CheckCastAlign(SrcExpr.get(), DestType, OpRange);
145 if (Self.CheckObjCConversion(OpRange, DestType, src, CCK) ==
165 QualType DestType);
179 QualType DestType, bool CStyle,
184 QualType DestType, bool CStyle,
190 QualType DestType, bool CStyle,
196 CanQualType DestType, boo
262 QualType DestType = DestTInfo->getType(); local
592 CastsAwayConstness(Sema &Self, QualType SrcType, QualType DestType, bool CheckCVR, bool CheckObjCLifetime, QualType *TheOffendingSrcType = nullptr, QualType *TheOffendingDestType = nullptr, Qualifiers *CastAwayQualifiers = nullptr) argument
719 QualType DestType = Self.Context.getCanonicalType(this->DestType); local
883 DiagnoseReinterpretUpDownCast(Sema &Self, const Expr *SrcExpr, QualType DestType, SourceRange OpRange) argument
1082 IsAddressSpaceConversion(QualType SrcType, QualType DestType) argument
1096 TryStaticCast(Sema &Self, ExprResult &SrcExpr, QualType DestType, Sema::CheckedConversionKind CCK, SourceRange OpRange, unsigned &msg, CastKind &Kind, CXXCastPath &BasePath, bool ListInitialization) argument
1292 TryLValueToRValueCast(Sema &Self, Expr *SrcExpr, QualType DestType, bool CStyle, CastKind &Kind, CXXCastPath &BasePath, unsigned &msg) argument
1347 TryStaticReferenceDowncast(Sema &Self, Expr *SrcExpr, QualType DestType, bool CStyle, SourceRange OpRange, unsigned &msg, CastKind &Kind, CXXCastPath &BasePath) argument
1385 TryStaticPointerDowncast(Sema &Self, QualType SrcType, QualType DestType, bool CStyle, SourceRange OpRange, unsigned &msg, CastKind &Kind, CXXCastPath &BasePath) argument
1419 TryStaticDowncast(Sema &Self, CanQualType SrcType, CanQualType DestType, bool CStyle, SourceRange OpRange, QualType OrigSrcType, QualType OrigDestType, unsigned &msg, CastKind &Kind, CXXCastPath &BasePath) argument
1531 TryStaticMemberPointerUpcast(Sema &Self, ExprResult &SrcExpr, QualType SrcType, QualType DestType, bool CStyle, SourceRange OpRange, unsigned &msg, CastKind &Kind, CXXCastPath &BasePath) argument
1649 TryStaticImplicitCast(Sema &Self, ExprResult &SrcExpr, QualType DestType, Sema::CheckedConversionKind CCK, SourceRange OpRange, unsigned &msg, CastKind &Kind, bool ListInitialization) argument
1704 TryConstCast(Sema &Self, ExprResult &SrcExpr, QualType DestType, bool CStyle, unsigned &msg) argument
1807 CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType, bool IsDereference, SourceRange Range) argument
1857 DiagnoseCastOfObjCSEL(Sema &Self, const ExprResult &SrcExpr, QualType DestType) argument
1964 checkIntToPointerCast(bool CStyle, SourceLocation Loc, const Expr *SrcExpr, QualType DestType, Sema &Self) argument
1986 Self.Diag(Loc, Diag) << SrcType << DestType; local
1990 fixOverloadedReinterpretCastExpr(Sema &Self, QualType DestType, ExprResult &Result) argument
2017 TryReinterpretCast(Sema &Self, ExprResult &SrcExpr, QualType DestType, bool CStyle, SourceRange OpRange, unsigned &msg, CastKind &Kind) argument
2340 TryAddressSpaceCast(Sema &Self, ExprResult &SrcExpr, QualType DestType, bool CStyle, unsigned &msg) argument
2375 checkAddressSpaceCast(QualType SrcType, QualType DestType) argument
2565 DiagnoseBadFunctionCast(Sema &Self, const ExprResult &SrcExpr, QualType DestType) argument
2863 DiagnoseCastQual(Sema &Self, const ExprResult &SrcExpr, QualType DestType) argument
2893 << SrcType << DestType; local
[all...]
H A DSemaInit.cpp3816 QualType DestType,
3820 if (!S.isStdInitializerList(DestType, &E))
3841 Sequence.AddStdInitializerListConstructionStep(DestType);
3866 QualType DestType,
3873 CandidateSet.setDestAS(DestType.getQualifiers().getAddressSpace());
3953 ConvTemplate, I.getPair(), ActingDC, Initializer, DestType,
3958 DestType, CandidateSet, AllowExplicit,
3972 /// \param DestType The destination class type.
3973 /// \param DestArrayType The destination type, which is either DestType or
3974 /// a (possibly multidimensional) array of DestType
[all...]
H A DSemaExprObjC.cpp4078 QualType DestType, QualType SrcType,
4084 QualType T = CfToNs ? SrcType : DestType;
4101 << SrcType << DestType; local
4112 << SrcType << DestType; local
4127 << SrcType << DestType << Sel << false;
4141 << SrcType << DestType << Sel << true;
4152 QualType DestType, QualType SrcType,
4155 ARCConversionTypeClass lhsExprACTC = classifyTypeForARCConversion(DestType);
4165 if (!checkObjCBridgeRelatedComponents(Loc, DestType, SrcType, RelatedClass,
4182 << SrcType << DestType << ClassMetho
4077 checkObjCBridgeRelatedComponents(SourceLocation Loc, QualType DestType, QualType SrcType, ObjCInterfaceDecl *&RelatedClass, ObjCMethodDecl *&ClassMethod, ObjCMethodDecl *&InstanceMethod, TypedefNameDecl *&TDNDecl, bool CfToNs, bool Diagnose) argument
4151 CheckObjCBridgeRelatedConversions(SourceLocation Loc, QualType DestType, QualType SrcType, Expr *&SrcExpr, bool Diagnose) argument
[all...]
H A DSemaExpr.cpp2787 QualType DestType; local
2800 DestType = Context.getPointerType(DestRecordType);
2804 DestType = DestRecordType;
2811 DestType = Method->getThisType();
2812 DestRecordType = DestType->getPointeeType();
2819 DestType = DestRecordType;
2840 if (DestType->isDependentType() || FromType->isDependentType())
2941 return ImpCastExprToType(From, DestType, CK_UncheckedDerivedToBase,
17563 QualType DestType; member in struct:__anon3195::RebuildUnknownAnyExpr
17566 : S(S), DestType(CastTyp
[all...]
H A DSemaOverload.cpp5340 QualType FromRecordType, DestType;
5347 DestType = Method->getThisType();
5351 DestType = ImplicitParamRecordType;
5371 Qualifiers ToQs = DestType.getQualifiers();
5414 if (!Context.hasSameType(From->getType(), DestType)) {
5416 QualType PteeTy = DestType->getPointeeType();
5418 PteeTy.isNull() ? DestType.getAddressSpace() : PteeTy.getAddressSpace();
5423 From = ImpCastExprToType(From, DestType, CK, From->getValueKind()).get();
10021 QualType DestType, bool TakingAddress) {
10035 HandleFunctionTypeMismatch(PD, Fn->getType(), DestType);
[all...]
/freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DConversionChecker.cpp47 bool isLossOfPrecision(const ImplicitCastExpr *Cast, QualType DestType,
129 QualType DestType,
137 if (!DestType->isRealType() || !SubType->isIntegerType())
140 const bool isFloat = DestType->isFloatingType();
144 // We will find the largest RepresentsUntilExp value such that the DestType
149 const llvm::fltSemantics &Sema = AC.getFloatTypeSemantics(DestType);
152 RepresentsUntilExp = AC.getIntWidth(DestType);
157 if (DestType->isSignedIntegerType())
128 isLossOfPrecision(const ImplicitCastExpr *Cast, QualType DestType, CheckerContext &C) const argument
H A DNullabilityChecker.cpp929 QualType DestType = CE->getType(); local
932 if (!DestType->isAnyPointerType())
939 Nullability DestNullability = getNullabilityAnnotation(DestType);
H A DDynamicTypePropagation.cpp526 QualType DestType = CE->getType(); local
529 const auto *DestObjectPtrType = DestType->getAs<ObjCObjectPointerType>();
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAddMissingPrototypes.cpp96 if (auto *DestType = dyn_cast<FunctionType>(
100 NewType = DestType;
102 } else if (NewType != DestType) {
106 LLVM_DEBUG(dbgs() << " " << *DestType << "\n");
/freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprComplex.cpp83 /// Emit a cast from complex value Val to DestType.
85 QualType DestType, SourceLocation Loc);
86 /// Emit a cast from scalar value Val to DestType.
88 QualType DestType, SourceLocation Loc);
422 /// Emit a cast from complex value Val to DestType.
425 QualType DestType,
429 DestType = DestType->castAs<ComplexType>()->getElementType();
434 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc);
435 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Lo
423 EmitComplexToComplexCast(ComplexPairTy Val, QualType SrcType, QualType DestType, SourceLocation Loc) argument
439 EmitScalarToComplexCast(llvm::Value *Val, QualType SrcType, QualType DestType, SourceLocation Loc) argument
[all...]
H A DCGExprConstant.cpp1744 QualType DestType; member in class:__anon2867::ConstantLValueEmitter
1752 : CGM(emitter.CGM), Emitter(emitter), Value(value), DestType(destType) {}
1813 auto destTy = CGM.getTypes().ConvertTypeForMem(DestType);
1850 return CGM.getNullPointer(destPtrTy, DestType);
2013 QualType DestType) {
2018 return llvm::UndefValue::get(CGM.getTypes().ConvertType(DestType));
2020 return ConstantLValueEmitter(*this, Value, DestType).tryEmit();
2085 llvm::Type *ResultType = CGM.getTypes().ConvertType(DestType);
2097 return ConstStructBuilder::BuildStruct(*this, Value, DestType);
2100 CGM.getContext().getAsConstantArrayType(DestType);
2012 tryEmitPrivate(const APValue &Value, QualType DestType) argument
[all...]
H A DCGStmtOpenMP.cpp3883 QualType SrcType, QualType DestType,
3885 assert(CGF.hasScalarEvaluationKind(DestType) &&
3886 "DestType must have scalar evaluation kind.");
3889 DestType, Loc)
3891 Val.getComplexVal(), SrcType, DestType, Loc);
3896 QualType DestType, SourceLocation Loc) {
3897 assert(CGF.getEvaluationKind(DestType) == TEK_Complex &&
3898 "DestType must have complex evaluation kind.");
3903 DestType->castAs<ComplexType>()->getElementType();
3912 DestType
3882 convertToScalarValue(CodeGenFunction &CGF, RValue Val, QualType SrcType, QualType DestType, SourceLocation Loc) argument
3895 convertToComplexValue(CodeGenFunction &CGF, RValue Val, QualType SrcType, QualType DestType, SourceLocation Loc) argument
[all...]
H A DCGAtomic.cpp1022 auto *DestType = T->getPointerElementType()->getPointerTo(DestAS);
1025 *this, V, AS, LangAS::opencl_generic, DestType, false);
H A DCGBuiltin.cpp603 llvm::Type *DestType = Int8PtrTy; local
604 if (ArgValue->getType() != DestType)
606 Builder.CreateBitCast(ArgValue, DestType, ArgValue->getName().data());
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp459 Type *DestType = Trunc.getType(); local
460 if (!TruncOp->hasOneUse() || !isa<IntegerType>(DestType))
473 unsigned DestWidth = DestType->getPrimitiveSizeInBits();
482 if (VecType->getElementType() != DestType) {
483 VecType = VectorType::get(DestType, NumVecElts);
2104 Type *DestType = BitCast.getType();
2105 if (!VectorType::isValidElementType(DestType))
2109 auto *NewVecType = VectorType::get(DestType, NumElts);
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
H A DExprCXX.cpp835 QualType DestType = getType(); local
839 DestType = DestType->castAs<PointerType>()->getPointeeType();
842 if (DestType->isVoidType())
852 cast<CXXRecordDecl>(DestType->castAs<RecordType>()->getDecl());
H A DExprConstant.cpp2335 const T &SrcValue, QualType DestType) {
2337 << SrcValue << DestType;
2343 QualType DestType, APSInt &Result) {
2344 unsigned DestWidth = Info.Ctx.getIntWidth(DestType);
2346 bool DestSigned = DestType->isSignedIntegerOrEnumerationType();
2352 return HandleOverflow(Info, E, Value, DestType);
2357 QualType SrcType, QualType DestType,
2361 Result.convert(Info.Ctx.getFloatTypeSemantics(DestType),
2367 QualType DestType, QualType SrcType,
2369 unsigned DestWidth = Info.Ctx.getIntWidth(DestType);
[all...]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h3257 QualType DestType = QualType(), bool TakingAddress = false);
3261 void NoteAllOverloadCandidates(Expr *E, QualType DestType = QualType(),
5557 void CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType,
9267 QualType DestType, QualType SrcType,
9275 QualType DestType, QualType SrcType,
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp1766 Type *DestType = DestVT.getTypeForEVT(*DAG.getContext());
1767 unsigned DestAlign = DAG.getDataLayout().getPrefTypeAlignment(DestType);

Completed in 361 milliseconds