/external/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 1218 QualType DestType, 1224 if (DestType->isReferenceType()) 1231 C = EmitConstantValue(Result.Val, DestType, CGF); 1243 QualType DestType, 1246 if (auto *AT = DestType->getAs<AtomicType>()) { 1251 uint64_t OuterSize = Context.getTypeSize(DestType); 1268 llvm::Type *DestTy = getTypes().ConvertTypeForMem(DestType); 1374 llvm::Type *ResultType = getTypes().ConvertType(DestType); 1386 return ConstStructBuilder::BuildStruct(*this, CGF, Value, DestType); 1388 const ArrayType *CAT = Context.getAsArrayType(DestType); 1217 EmitConstantExpr(const Expr *E, QualType DestType, CodeGenFunction *CGF) argument 1242 EmitConstantValue(const APValue &Value, QualType DestType, CodeGenFunction *CGF) argument [all...] |
H A D | CGExprComplex.cpp | 86 /// Emit a cast from complex value Val to DestType. 88 QualType DestType, SourceLocation Loc); 89 /// Emit a cast from scalar value Val to DestType. 91 QualType DestType, SourceLocation Loc); 394 /// Emit a cast from complex value Val to DestType. 397 QualType DestType, 401 DestType = DestType->castAs<ComplexType>()->getElementType(); 406 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); 407 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Lo 395 EmitComplexToComplexCast(ComplexPairTy Val, QualType SrcType, QualType DestType, SourceLocation Loc) argument 411 EmitScalarToComplexCast(llvm::Value *Val, QualType SrcType, QualType DestType, SourceLocation Loc) argument [all...] |
H A D | CGStmtOpenMP.cpp | 2093 QualType SrcType, QualType DestType, 2095 assert(CGF.hasScalarEvaluationKind(DestType) && 2096 "DestType must have scalar evaluation kind."); 2099 ? CGF.EmitScalarConversion(Val.getScalarVal(), SrcType, DestType, 2102 DestType, Loc); 2107 QualType DestType, SourceLocation Loc) { 2108 assert(CGF.getEvaluationKind(DestType) == TEK_Complex && 2109 "DestType must have complex evaluation kind."); 2113 auto DestElementType = DestType->castAs<ComplexType>()->getElementType(); 2121 auto DestElementType = DestType 2092 convertToScalarValue(CodeGenFunction &CGF, RValue Val, QualType SrcType, QualType DestType, SourceLocation Loc) argument 2106 convertToComplexValue(CodeGenFunction &CGF, RValue Val, QualType SrcType, QualType DestType, SourceLocation Loc) argument [all...] |
H A D | CGBuiltin.cpp | 336 llvm::Type *DestType = Int8PtrTy; local 337 if (ArgValue->getType() != DestType) 339 Builder.CreateBitCast(ArgValue, DestType, ArgValue->getName().data());
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | DynamicTypePropagation.cpp | 503 QualType DestType = CE->getType(); local 506 const auto *DestObjectPtrType = DestType->getAs<ObjCObjectPointerType>(); 545 // Mismatched types. If the DestType specialized, store it. Forget the
|
H A D | NullabilityChecker.cpp | 813 QualType DestType = CE->getType(); local 816 if (!DestType->isAnyPointerType()) 823 Nullability DestNullability = getNullabilityAnnotation(DestType);
|
/external/clang/lib/AST/ |
H A D | ExprCXX.cpp | 642 QualType DestType = getType(); local 646 DestType = DestType->castAs<PointerType>()->getPointeeType(); 649 if (DestType->isVoidType()) 659 cast<CXXRecordDecl>(DestType->castAs<RecordType>()->getDecl());
|
H A D | ExprConstant.cpp | 1575 const T &SrcValue, QualType DestType) { 1577 << SrcValue << DestType; local 1583 QualType DestType, APSInt &Result) { 1584 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); 1586 bool DestSigned = DestType->isSignedIntegerOrEnumerationType(); 1592 return HandleOverflow(Info, E, Value, DestType); 1597 QualType SrcType, QualType DestType, 1601 if (Result.convert(Info.Ctx.getFloatTypeSemantics(DestType), 1604 return HandleOverflow(Info, E, Value, DestType); 1609 QualType DestType, QualTyp 1574 HandleOverflow(EvalInfo &Info, const Expr *E, const T &SrcValue, QualType DestType) argument 1581 HandleFloatToIntCast(EvalInfo &Info, const Expr *E, QualType SrcType, const APFloat &Value, QualType DestType, APSInt &Result) argument 1596 HandleFloatToFloatCast(EvalInfo &Info, const Expr *E, QualType SrcType, QualType DestType, APFloat &Result) argument 1608 HandleIntToIntCast(EvalInfo &Info, const Expr *E, QualType DestType, QualType SrcType, const APSInt &Value) argument 1620 HandleIntToFloatCast(EvalInfo &Info, const Expr *E, QualType SrcType, const APSInt &Value, QualType DestType, APFloat &Result) argument 7725 QualType DestType = E->getType(); local [all...] |
/external/clang/lib/Sema/ |
H A D | SemaCast.cpp | 51 : Self(S), SrcExpr(src), DestType(destType), 66 QualType DestType; member in struct:__anon1474::CastOperation 119 Self.CheckCastAlign(SrcExpr.get(), DestType, OpRange); 126 if (Self.CheckObjCARCConversion(OpRange, DestType, src, CCK) == 157 QualType DestType, bool CStyle, 162 QualType DestType, bool CStyle, 168 QualType DestType, bool CStyle, 174 CanQualType DestType, bool CStyle, 182 QualType DestType,bool CStyle, 189 QualType DestType, 240 QualType DestType = DestTInfo->getType(); local 486 CastsAwayConstness(Sema &Self, QualType SrcType, QualType DestType, bool CheckCVR, bool CheckObjCLifetime, QualType *TheOffendingSrcType = nullptr, QualType *TheOffendingDestType = nullptr, Qualifiers *CastAwayQualifiers = nullptr) argument 582 QualType DestType = Self.Context.getCanonicalType(this->DestType); local 745 DiagnoseReinterpretUpDownCast(Sema &Self, const Expr *SrcExpr, QualType DestType, SourceRange OpRange) argument 944 TryStaticCast(Sema &Self, ExprResult &SrcExpr, QualType DestType, Sema::CheckedConversionKind CCK, SourceRange OpRange, unsigned &msg, CastKind &Kind, CXXCastPath &BasePath, bool ListInitialization) argument 1134 TryLValueToRValueCast(Sema &Self, Expr *SrcExpr, QualType DestType, bool CStyle, CastKind &Kind, CXXCastPath &BasePath, unsigned &msg) argument 1188 TryStaticReferenceDowncast(Sema &Self, Expr *SrcExpr, QualType DestType, bool CStyle, SourceRange OpRange, unsigned &msg, CastKind &Kind, CXXCastPath &BasePath) argument 1226 TryStaticPointerDowncast(Sema &Self, QualType SrcType, QualType DestType, bool CStyle, SourceRange OpRange, unsigned &msg, CastKind &Kind, CXXCastPath &BasePath) argument 1260 TryStaticDowncast(Sema &Self, CanQualType SrcType, CanQualType DestType, bool CStyle, SourceRange OpRange, QualType OrigSrcType, QualType OrigDestType, unsigned &msg, CastKind &Kind, CXXCastPath &BasePath) argument 1375 TryStaticMemberPointerUpcast(Sema &Self, ExprResult &SrcExpr, QualType SrcType, QualType DestType, bool CStyle, SourceRange OpRange, unsigned &msg, CastKind &Kind, CXXCastPath &BasePath) argument 1491 TryStaticImplicitCast(Sema &Self, ExprResult &SrcExpr, QualType DestType, Sema::CheckedConversionKind CCK, SourceRange OpRange, unsigned &msg, CastKind &Kind, bool ListInitialization) argument 1543 TryConstCast(Sema &Self, ExprResult &SrcExpr, QualType DestType, bool CStyle, unsigned &msg) argument 1660 CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType, bool IsDereference, SourceRange Range) argument 1710 DiagnoseCastOfObjCSEL(Sema &Self, const ExprResult &SrcExpr, QualType DestType) argument 1727 checkIntToPointerCast(bool CStyle, SourceLocation Loc, const Expr *SrcExpr, QualType DestType, Sema &Self) argument 1749 Self.Diag(Loc, Diag) << SrcType << DestType; local 1753 TryReinterpretCast(Sema &Self, ExprResult &SrcExpr, QualType DestType, bool CStyle, SourceRange OpRange, unsigned &msg, CastKind &Kind) argument 2185 DiagnoseBadFunctionCast(Sema &Self, const ExprResult &SrcExpr, QualType DestType) argument 2454 SrcType << DestType; local [all...] |
H A D | SemaExprObjC.cpp | 3816 QualType DestType, QualType SrcType, 3822 QualType T = CfToNs ? SrcType : DestType; 3838 << SrcType << DestType; local 3847 << SrcType << DestType; local 3860 << SrcType << DestType << Sel << false; 3872 << SrcType << DestType << Sel << true; 3882 QualType DestType, QualType SrcType, 3885 ARCConversionTypeClass lhsExprACTC = classifyTypeForARCConversion(DestType); 3895 if (!checkObjCBridgeRelatedComponents(Loc, DestType, SrcType, RelatedClass, 3909 << SrcType << DestType << ClassMetho 3815 checkObjCBridgeRelatedComponents(SourceLocation Loc, QualType DestType, QualType SrcType, ObjCInterfaceDecl *&RelatedClass, ObjCMethodDecl *&ClassMethod, ObjCMethodDecl *&InstanceMethod, TypedefNameDecl *&TDNDecl, bool CfToNs) argument 3881 CheckObjCBridgeRelatedConversions(SourceLocation Loc, QualType DestType, QualType SrcType, Expr *&SrcExpr) argument [all...] |
H A D | SemaInit.cpp | 3325 QualType DestType, 3328 if (!S.isStdInitializerList(DestType, &E)) 3347 Sequence.AddStdInitializerListConstructionStep(DestType); 3433 MultiExprArg Args, QualType DestType, 3441 if (!S.isCompleteType(Kind.getLocation(), DestType)) { 3442 Sequence.setIncompleteTypeFailure(DestType); 3446 const RecordType *DestRecordType = DestType->getAs<RecordType>(); 3541 CtorDecl, Best->FoundDecl.getAccess(), DestType, HadMultipleCandidates, 3606 QualType DestType = Entity.getType(); local 3607 QualType cv1T1 = DestType 3323 TryInitializerListConstruction(Sema &S, InitListExpr *List, QualType DestType, InitializationSequence &Sequence) argument 3430 TryConstructorInitialization(Sema &S, const InitializedEntity &Entity, const InitializationKind &Kind, MultiExprArg Args, QualType DestType, InitializationSequence &Sequence, bool IsListInit = false, bool IsInitListCopy = false) argument 3667 QualType DestType = Entity.getType(); local 3814 QualType DestType = Entity.getType(); local 4001 QualType DestType = Entity.getType(); local 4082 QualType DestType = Entity.getType(); local 4407 QualType DestType = S.Context.getBaseElementType(Entity.getType()); local 4438 TryUserDefinedConversion(Sema &S, QualType DestType, const InitializationKind &Kind, Expr *Initializer, InitializationSequence &Sequence, bool TopLevelOfInitList) argument 4766 TryOCLSamplerInitialization(Sema &S, InitializationSequence &Sequence, QualType DestType, Expr *Initializer) argument 4786 TryOCLZeroEventInitialization(Sema &S, InitializationSequence &Sequence, QualType DestType, Expr *Initializer) argument 4847 QualType DestType = Entity.getType(); local 6064 QualType DestType = Entity.getType(); local 6150 QualType DestType = Entity.getType().getNonReferenceType(); local 6845 QualType DestType = Entity.getType(); local [all...] |
H A D | SemaOverload.cpp | 4917 QualType FromRecordType, DestType; local 4924 DestType = Method->getThisType(Context); 4928 DestType = ImplicitParamRecordType; 4940 Qualifiers ToQs = DestType.getQualifiers(); 4966 if (!Context.hasSameType(From->getType(), DestType)) 4967 From = ImpCastExprToType(From, DestType, CK_NoOp, 8879 void Sema::NoteOverloadCandidate(FunctionDecl *Fn, QualType DestType, 8889 HandleFunctionTypeMismatch(PD, Fn->getType(), DestType); 8896 void Sema::NoteAllOverloadCandidates(Expr *OverloadedExpr, QualType DestType, 8908 NoteOverloadCandidate(FunTmpl->getTemplatedDecl(), DestType, [all...] |
H A D | SemaExpr.cpp | 2521 QualType DestType; local 2529 DestType = Context.getPointerType(DestRecordType); 2533 DestType = DestRecordType; 2540 DestType = Method->getThisType(Context); 2541 DestRecordType = DestType->getPointeeType(); 2548 DestType = DestRecordType; 2555 if (DestType->isDependentType() || FromType->isDependentType()) 2656 return ImpCastExprToType(From, DestType, CK_UncheckedDerivedToBase, 14058 QualType DestType; member in struct:__anon1530::RebuildUnknownAnyExpr 14061 : S(S), DestType(CastTyp [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 442 Type *DestType = Trunc.getType(); local 443 if (!TruncOp->hasOneUse() || !isa<IntegerType>(DestType)) 456 unsigned DestWidth = DestType->getPrimitiveSizeInBits(); 465 if (VecType->getElementType() != DestType) { 466 VecType = VectorType::get(DestType, NumVecElts); 1778 Type *DestType = BitCast.getType(); 1779 if (!VectorType::isValidElementType(DestType)) 1783 auto *NewVecType = VectorType::get(DestType, NumElts);
|