Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaCast.cpp73 QualType DestType; member
574 assert((DestType->isAnyPointerType() || DestType->isMemberPointerType() || in CastsAwayConstness()
687 QualType DestType = Self.Context.getCanonicalType(this->DestType); in CheckDynamicCast() local
966 << DestType << OpRange; in CheckReinterpretCast()
998 if (DestType->isVoidType()) { in CheckStaticCast()
1673 DestType = Self.Context.getCanonicalType(DestType); in TryConstCast()
1830 QualType DT = DestType; in DiagnoseCastOfObjCSEL()
1990 DestType = Self.Context.getCanonicalType(DestType); in TryReinterpretCast()
2138 if (SrcType == DestType) { in TryReinterpretCast()
2456 && (DestType->isAnyPointerType() || DestType->isBlockPointerType())) in DiagnoseBadFunctionCast()
[all …]
H A DSemaInit.cpp4118 if (DestType->isRecordType() && in TryListInitialization()
4175 if ((DestType->isRecordType() && !DestType->isAggregateType()) || in TryListInitialization()
5290 if (DestType->isEventT() || DestType->isQueueT()) { in TryOCLZeroOpaqueTypeInitialization()
5593 AddCAssignmentStep(DestType); in InitializeFrom()
5601 if (DestType->isRecordType()) { in InitializeFrom()
5611 DestType, DestType, *this); in InitializeFrom()
7139 if (!DestType->isRecordType()) in CheckMoveOnConstruction()
7304 << DestType << (bool)DestType->getAs<RecordType>() in Perform()
8464 << DestType in Diagnose()
8511 << (DestType->isRecordType()) << DestType << Args[0]->getSourceRange(); in Diagnose()
[all …]
H A DSemaExpr.cpp2556 QualType DestType; in PerformObjectMemberConversion() local
16382 if (DestType->isArrayType() || DestType->isFunctionType()) { in VisitCallExpr()
16388 << DestType->isFunctionType() << DestType; in VisitCallExpr()
16435 DestType = S.Context.getFunctionType(DestType, ParamTypes, in VisitCallExpr()
16438 DestType = S.Context.getFunctionNoProtoType(DestType, in VisitCallExpr()
16449 DestType = S.Context.getPointerType(DestType); in VisitCallExpr()
16453 DestType = S.Context.getBlockPointerType(DestType); in VisitCallExpr()
16468 if (DestType->isArrayType() || DestType->isFunctionType()) { in VisitObjCMessageExpr()
16470 << DestType->isFunctionType() << DestType; in VisitObjCMessageExpr()
16496 DestType = DestType->castAs<PointerType>()->getPointeeType(); in VisitImplicitCastExpr()
[all …]
H A DSemaExprObjC.cpp4010 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents()
4027 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4038 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4053 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents()
4067 << SrcType << DestType << Sel << true; in checkObjCBridgeRelatedComponents()
4078 QualType DestType, QualType SrcType, in CheckObjCBridgeRelatedConversions() argument
4081 ARCConversionTypeClass lhsExprACTC = classifyTypeForARCConversion(DestType); in CheckObjCBridgeRelatedConversions()
4091 if (!checkObjCBridgeRelatedComponents(Loc, DestType, SrcType, RelatedClass, in CheckObjCBridgeRelatedConversions()
4108 << SrcType << DestType << ClassMethod->getSelector() << false in CheckObjCBridgeRelatedConversions()
4141 << SrcType << DestType << InstanceMethod->getSelector() << true in CheckObjCBridgeRelatedConversions()
[all …]
H A DSemaOverload.cpp5214 QualType FromRecordType, DestType; in PerformObjectArgumentInitialization() local
5221 DestType = Method->getThisType(); in PerformObjectArgumentInitialization()
5225 DestType = ImplicitParamRecordType; in PerformObjectArgumentInitialization()
5245 Qualifiers ToQs = DestType.getQualifiers(); in PerformObjectArgumentInitialization()
5288 if (!Context.hasSameType(From->getType(), DestType)) { in PerformObjectArgumentInitialization()
5289 if (From->getType().getAddressSpace() != DestType.getAddressSpace()) in PerformObjectArgumentInitialization()
5290 From = ImpCastExprToType(From, DestType, CK_AddressSpaceConversion, in PerformObjectArgumentInitialization()
5293 From = ImpCastExprToType(From, DestType, CK_NoOp, in PerformObjectArgumentInitialization()
9626 HandleFunctionTypeMismatch(PD, Fn->getType(), DestType); in NoteOverloadCandidate()
9645 NoteOverloadCandidate(*I, FunTmpl->getTemplatedDecl(), DestType, in NoteAllOverloadCandidates()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DConversionChecker.cpp48 bool isLossOfPrecision(const ImplicitCastExpr *Cast, QualType DestType,
130 QualType DestType, in isLossOfPrecision() argument
138 if (!DestType->isRealType() || !SubType->isIntegerType()) in isLossOfPrecision()
141 const bool isFloat = DestType->isFloatingType(); in isLossOfPrecision()
150 const llvm::fltSemantics &Sema = AC.getFloatTypeSemantics(DestType); in isLossOfPrecision()
153 RepresentsUntilExp = AC.getIntWidth(DestType); in isLossOfPrecision()
158 if (DestType->isSignedIntegerType()) in isLossOfPrecision()
H A DNullabilityChecker.cpp937 QualType DestType = CE->getType(); in checkPostStmt() local
940 if (!DestType->isAnyPointerType()) in checkPostStmt()
947 Nullability DestNullability = getNullabilityAnnotation(DestType); in checkPostStmt()
H A DDynamicTypePropagation.cpp534 QualType DestType = CE->getType(); in checkPostStmt() local
537 const auto *DestObjectPtrType = DestType->getAs<ObjCObjectPointerType>(); in checkPostStmt()
/freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAddMissingPrototypes.cpp94 if (auto *DestType = dyn_cast<FunctionType>( in runOnModule() local
98 NewType = DestType; in runOnModule()
103 if (NewType != DestType) { in runOnModule()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprComplex.cpp85 QualType DestType, SourceLocation Loc);
88 QualType DestType, SourceLocation Loc);
423 QualType DestType, in EmitComplexToComplexCast() argument
427 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
432 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast()
433 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast()
439 QualType DestType, in EmitScalarToComplexCast() argument
442 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitScalarToComplexCast()
443 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); in EmitScalarToComplexCast()
H A DCGExprConstant.cpp654 CGM.getTypes().ConvertType(QualType(DestType, 0))); in EmitArrayConstant()
1592 QualType DestType; member in __anon91458c600411::ConstantLValueEmitter
1657 if (DestType->isArrayType()) { in tryEmit()
1660 return ConstExprEmitter(Emitter).Visit(expr, DestType); in tryEmit()
1670 auto destTy = CGM.getTypes().ConvertTypeForMem(DestType); in tryEmit()
1709 return CGM.getNullPointer(destPtrTy, DestType); in tryEmitAbsolute()
1873 return ConstantLValueEmitter(*this, Value, DestType).tryEmit(); in tryEmitPrivate()
1935 llvm::Type *ResultType = CGM.getTypes().ConvertType(DestType); in tryEmitPrivate()
1947 return ConstStructBuilder::BuildStruct(*this, Value, DestType); in tryEmitPrivate()
1950 CGM.getContext().getAsConstantArrayType(DestType); in tryEmitPrivate()
[all …]
H A DCGStmtOpenMP.cpp3545 QualType SrcType, QualType DestType, in convertToScalarValue() argument
3547 assert(CGF.hasScalarEvaluationKind(DestType) && in convertToScalarValue()
3551 DestType, Loc) in convertToScalarValue()
3553 Val.getComplexVal(), SrcType, DestType, Loc); in convertToScalarValue()
3558 QualType DestType, SourceLocation Loc) { in convertToComplexValue() argument
3559 assert(CGF.getEvaluationKind(DestType) == TEK_Complex && in convertToComplexValue()
3565 DestType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
3574 DestType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
H A DCGAtomic.cpp977 auto *DestType = T->getPointerElementType()->getPointerTo(DestAS); in EmitAtomicExpr() local
980 *this, V, AS, LangAS::opencl_generic, DestType, false); in EmitAtomicExpr()
H A DCGBuiltin.cpp473 llvm::Type *DestType = Int8PtrTy; in EmitVAStartEnd() local
474 if (ArgValue->getType() != DestType) in EmitVAStartEnd()
476 Builder.CreateBitCast(ArgValue, DestType, ArgValue->getName().data()); in EmitVAStartEnd()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp459 Type *DestType = Trunc.getType(); in foldVecTruncToExtElt() local
460 if (!TruncOp->hasOneUse() || !isa<IntegerType>(DestType)) in foldVecTruncToExtElt()
473 unsigned DestWidth = DestType->getPrimitiveSizeInBits(); in foldVecTruncToExtElt()
482 if (VecType->getElementType() != DestType) { in foldVecTruncToExtElt()
483 VecType = VectorType::get(DestType, NumVecElts); in foldVecTruncToExtElt()
2039 Type *DestType = BitCast.getType(); in canonicalizeBitCastExtElt() local
2040 if (!VectorType::isValidElementType(DestType)) in canonicalizeBitCastExtElt()
2044 auto *NewVecType = VectorType::get(DestType, NumElts); in canonicalizeBitCastExtElt()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DExprCXX.cpp749 QualType DestType = getType(); in isAlwaysNull() local
753 DestType = DestType->castAs<PointerType>()->getPointeeType(); in isAlwaysNull()
756 if (DestType->isVoidType()) in isAlwaysNull()
766 cast<CXXRecordDecl>(DestType->castAs<RecordType>()->getDecl()); in isAlwaysNull()
H A DExprConstant.cpp2070 << SrcValue << DestType; in HandleOverflow()
2077 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleFloatToIntCast()
2079 bool DestSigned = DestType->isSignedIntegerOrEnumerationType(); in HandleFloatToIntCast()
2085 return HandleOverflow(Info, E, Value, DestType); in HandleFloatToIntCast()
2094 if (Result.convert(Info.Ctx.getFloatTypeSemantics(DestType), in HandleFloatToFloatCast()
2097 return HandleOverflow(Info, E, Value, DestType); in HandleFloatToFloatCast()
2104 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleIntToIntCast()
2109 if (DestType->isBooleanType()) in HandleIntToIntCast()
2117 Result = APFloat(Info.Ctx.getFloatTypeSemantics(DestType), 1); in HandleIntToFloatCast()
2121 return HandleOverflow(Info, E, Value, DestType); in HandleIntToFloatCast()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DSema.h2856 QualType DestType = QualType(),
2861 void NoteAllOverloadCandidates(Expr *E, QualType DestType = QualType(),
5037 void CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType,
8317 QualType DestType, QualType SrcType,
8325 QualType DestType, QualType SrcType,
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp1739 Type *DestType = DestVT.getTypeForEVT(*DAG.getContext()); in EmitStackConvert() local
1740 unsigned DestAlign = DAG.getDataLayout().getPrefTypeAlignment(DestType); in EmitStackConvert()