Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCast.cpp70 DestType = DestType.getUnqualifiedType(); in CastOperation()
83 QualType DestType; member
652 assert((DestType->isAnyPointerType() || DestType->isMemberPointerType() || in CastsAwayConstness()
767 QualType DestType = Self.Context.getCanonicalType(this->DestType); in CheckDynamicCast() local
1156 << DestType << OpRange; in CheckReinterpretCast()
1887 DestType = Self.Context.getCanonicalType(DestType); in TryConstCast()
2044 QualType DT = DestType; in DiagnoseCastOfObjCSEL()
2205 DestType = Self.Context.getCanonicalType(DestType); in TryReinterpretCast()
2372 if (SrcType == DestType) { in TryReinterpretCast()
2825 && (DestType->isAnyPointerType() || DestType->isBlockPointerType())) in DiagnoseBadFunctionCast()
[all …]
H A DSemaInit.cpp4405 if (DestType->isRecordType() && in TryListInitialization()
4462 if ((DestType->isRecordType() && !DestType->isAggregateType()) || in TryListInitialization()
5639 if (DestType->isEventT() || DestType->isQueueT()) { in TryOCLZeroOpaqueTypeInitialization()
5939 AddCAssignmentStep(DestType); in InitializeFrom()
5957 DestType, DestType, *this); in InitializeFrom()
6044 DestType); in InitializeFrom()
7891 if (!DestType->isRecordType()) in CheckMoveOnConstruction()
8066 << DestType << (bool)DestType->getAs<RecordType>() in Perform()
9291 << DestType in Diagnose()
9338 << (DestType->isRecordType()) << DestType << Args[0]->getSourceRange(); in Diagnose()
[all …]
H A DSemaExprObjC.cpp4232 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents()
4249 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4260 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4275 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents()
4289 << SrcType << DestType << Sel << true; in checkObjCBridgeRelatedComponents()
4300 QualType DestType, QualType SrcType, in CheckObjCBridgeRelatedConversions() argument
4303 ARCConversionTypeClass lhsExprACTC = classifyTypeForARCConversion(DestType); in CheckObjCBridgeRelatedConversions()
4313 if (!checkObjCBridgeRelatedComponents(Loc, DestType, SrcType, RelatedClass, in CheckObjCBridgeRelatedConversions()
4330 << SrcType << DestType << ClassMethod->getSelector() << false in CheckObjCBridgeRelatedConversions()
4363 << SrcType << DestType << InstanceMethod->getSelector() << true in CheckObjCBridgeRelatedConversions()
[all …]
H A DSemaExpr.cpp3009 QualType DestType; in PerformObjectMemberConversion() local
20260 if (DestType->isArrayType() || DestType->isFunctionType()) { in VisitCallExpr()
20266 << DestType->isFunctionType() << DestType; in VisitCallExpr()
20306 DestType = S.Context.getFunctionType(DestType, ParamTypes, in VisitCallExpr()
20309 DestType = S.Context.getFunctionNoProtoType(DestType, in VisitCallExpr()
20320 DestType = S.Context.getPointerType(DestType); in VisitCallExpr()
20324 DestType = S.Context.getBlockPointerType(DestType); in VisitCallExpr()
20339 if (DestType->isArrayType() || DestType->isFunctionType()) { in VisitObjCMessageExpr()
20341 << DestType->isFunctionType() << DestType; in VisitObjCMessageExpr()
20367 DestType = DestType->castAs<PointerType>()->getPointeeType(); in VisitImplicitCastExpr()
[all …]
H A DSemaOverload.cpp5481 QualType FromRecordType, DestType; in PerformObjectArgumentInitialization() local
5488 DestType = Method->getThisType(); in PerformObjectArgumentInitialization()
5492 DestType = ImplicitParamRecordType; in PerformObjectArgumentInitialization()
5512 Qualifiers ToQs = DestType.getQualifiers(); in PerformObjectArgumentInitialization()
5559 if (!Context.hasSameType(From->getType(), DestType)) { in PerformObjectArgumentInitialization()
5561 QualType PteeTy = DestType->getPointeeType(); in PerformObjectArgumentInitialization()
5568 From = ImpCastExprToType(From, DestType, CK, From->getValueKind()).get(); in PerformObjectArgumentInitialization()
10427 QualType DestType, bool TakingAddress) { in NoteOverloadCandidate() argument
10443 HandleFunctionTypeMismatch(PD, Fn->getType(), DestType); in NoteOverloadCandidate()
10499 void Sema::NoteAllOverloadCandidates(Expr *OverloadedExpr, QualType DestType, in NoteAllOverloadCandidates() argument
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DAvoidCStyleCastsCheck.cpp41 static bool needsConstCast(QualType SourceType, QualType DestType) { in needsConstCast() argument
42 while ((SourceType->isPointerType() && DestType->isPointerType()) || in needsConstCast()
45 DestType = DestType->getPointeeType(); in needsConstCast()
117 const QualType DestType = DestTypeAsWritten.getCanonicalType(); in check() local
204 if (SourceType == DestType) { in check()
209 if (needsConstCast(SourceType, DestType) && in check()
210 pointedUnqualifiedTypesAreEqual(SourceType, DestType)) { in check()
218 if (DestType->isReferenceType()) { in check()
219 QualType Dest = DestType.getNonReferenceType(); in check()
234 (DestType->isBuiltinType() || DestType->isEnumeralType())) { in check()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DProTypeCstyleCastCheck.cpp20 static bool needsConstCast(QualType SourceType, QualType DestType) { in needsConstCast() argument
22 DestType = DestType.getNonReferenceType(); in needsConstCast()
23 while (SourceType->isPointerType() && DestType->isPointerType()) { in needsConstCast()
25 DestType = DestType->getPointeeType(); in needsConstCast()
26 if (SourceType.isConstQualified() && !DestType.isConstQualified()) in needsConstCast()
H A DNarrowingConversionsCheck.cpp276 const QualType &DestType) { in isFloatExactlyRepresentable() argument
277 unsigned DestWidth = Context.getIntWidth(DestType); in isFloatExactlyRepresentable()
278 bool DestSigned = DestType->isSignedIntegerOrEnumerationType(); in isFloatExactlyRepresentable()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUndefinedMemoryManipulationCheck.cpp51 QualType DestType = Call->getArg(0)->IgnoreImplicit()->getType(); in check() local
52 if (!DestType->getPointeeType().isNull()) in check()
53 DestType = DestType->getPointeeType(); in check()
56 << DestType; in check()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DConversionChecker.cpp47 bool isLossOfPrecision(const ImplicitCastExpr *Cast, QualType DestType,
140 QualType DestType, in isLossOfPrecision() argument
148 if (!DestType->isRealType() || !SubType->isIntegerType()) in isLossOfPrecision()
151 const bool isFloat = DestType->isFloatingType(); in isLossOfPrecision()
160 const llvm::fltSemantics &Sema = AC.getFloatTypeSemantics(DestType); in isLossOfPrecision()
163 RepresentsUntilExp = AC.getIntWidth(DestType); in isLossOfPrecision()
168 if (DestType->isSignedIntegerType()) in isLossOfPrecision()
H A DNullabilityChecker.cpp975 QualType DestType = CE->getType(); in checkPostStmt() local
978 if (!DestType->isAnyPointerType()) in checkPostStmt()
985 Nullability DestNullability = getNullabilityAnnotation(DestType); in checkPostStmt()
H A DDynamicTypePropagation.cpp616 QualType DestType = CE->getType(); in checkPostStmt() local
619 const auto *DestObjectPtrType = DestType->getAs<ObjCObjectPointerType>(); in checkPostStmt()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DImplicitBoolConversionCheck.cpp199 QualType DestType, ASTContext &Context) { in getEquivalentForBoolLiteral() argument
202 (DestType->isPointerType() || DestType->isMemberPointerType()) && in getEquivalentForBoolLiteral()
207 if (DestType->isFloatingType()) { in getEquivalentForBoolLiteral()
208 if (Context.hasSameType(DestType, Context.FloatTy)) { in getEquivalentForBoolLiteral()
214 if (DestType->isUnsignedIntegerType()) { in getEquivalentForBoolLiteral()
380 QualType DestType = in handleCastFromBool() local
383 << DestType; in handleCastFromBool()
388 *Cast, getEquivalentForBoolLiteral(BoolLiteral, DestType, Context)); in handleCastFromBool()
390 fixGenericExprCastFromBool(Diag, Cast, Context, DestType.getAsString()); in handleCastFromBool()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAddMissingPrototypes.cpp109 FunctionType *DestType = CB->getFunctionType(); in runOnModule() local
112 NewType = DestType; in runOnModule()
114 } else if (NewType != DestType) { in runOnModule()
118 LLVM_DEBUG(dbgs() << " " << *DestType << "\n"); in runOnModule()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprComplex.cpp86 QualType DestType, SourceLocation Loc);
89 QualType DestType, SourceLocation Loc);
428 QualType DestType, in EmitComplexToComplexCast() argument
432 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
438 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast()
440 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast()
446 QualType DestType, in EmitScalarToComplexCast() argument
449 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitScalarToComplexCast()
450 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); in EmitScalarToComplexCast()
H A DCGExprConstant.cpp1791 QualType DestType; member in __anon693486210a11::ConstantLValueEmitter
1859 auto destTy = CGM.getTypes().ConvertTypeForMem(DestType); in tryEmit()
1896 return CGM.getNullPointer(destPtrTy, DestType); in tryEmitAbsolute()
2072 QualType DestType) { in tryEmitPrivate() argument
2077 return llvm::UndefValue::get(CGM.getTypes().ConvertType(DestType)); in tryEmitPrivate()
2079 return ConstantLValueEmitter(*this, Value, DestType).tryEmit(); in tryEmitPrivate()
2144 llvm::Type *ResultType = CGM.getTypes().ConvertType(DestType); in tryEmitPrivate()
2156 return ConstStructBuilder::BuildStruct(*this, Value, DestType); in tryEmitPrivate()
2158 const ArrayType *ArrayTy = CGM.getContext().getAsArrayType(DestType); in tryEmitPrivate()
2192 cast<llvm::ArrayType>(CGM.getTypes().ConvertType(DestType)); in tryEmitPrivate()
[all …]
H A DCGStmtOpenMP.cpp5848 QualType SrcType, QualType DestType, in convertToScalarValue() argument
5850 assert(CGF.hasScalarEvaluationKind(DestType) && in convertToScalarValue()
5854 DestType, Loc) in convertToScalarValue()
5856 Val.getComplexVal(), SrcType, DestType, Loc); in convertToScalarValue()
5861 QualType DestType, SourceLocation Loc) { in convertToComplexValue() argument
5862 assert(CGF.getEvaluationKind(DestType) == TEK_Complex && in convertToComplexValue()
5868 DestType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
5877 DestType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
H A DCGAtomic.cpp1092 auto *DestType = llvm::PointerType::getWithSamePointeeType(T, DestAS); in EmitAtomicExpr() local
1095 *this, V, AS, LangAS::opencl_generic, DestType, false); in EmitAtomicExpr()
/llvm-project-15.0.7/clang/test/CodeGenObjC/
H A Dparameterized_classes.m85 @interface Base<DestType> : NSObject {
86 DestType _destination;
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp503 Type *DestType = Trunc.getType(); in foldVecTruncToExtElt() local
504 if (!TruncOp->hasOneUse() || !isa<IntegerType>(DestType)) in foldVecTruncToExtElt()
517 unsigned DestWidth = DestType->getPrimitiveSizeInBits(); in foldVecTruncToExtElt()
526 if (VecType->getElementType() != DestType) { in foldVecTruncToExtElt()
527 VecType = FixedVectorType::get(DestType, NumVecElts); in foldVecTruncToExtElt()
1979 Type *DestType = FI.getType(); in foldItoFPtoI() local
2002 return new SExtInst(X, DestType); in foldItoFPtoI()
2003 return new ZExtInst(X, DestType); in foldItoFPtoI()
2006 return new TruncInst(X, DestType); in foldItoFPtoI()
2374 Type *DestType = BitCast.getType(); in canonicalizeBitCastExtElt() local
[all …]
H A DInstCombineVectorOps.cpp2187 Type *DestType = Shuf.getType(); in foldTruncShuffle() local
2190 !match(Shuf.getOperand(1), m_Undef()) || !DestType->isIntOrIntVectorTy()) in foldTruncShuffle()
2198 cast<FixedVectorType>(DestType)->getNumElements() || in foldTruncShuffle()
2199 SrcType->getScalarSizeInBits() % DestType->getScalarSizeInBits() != 0) in foldTruncShuffle()
2208 SrcType->getScalarSizeInBits() / DestType->getScalarSizeInBits(); in foldTruncShuffle()
2219 return new TruncInst(X, DestType); in foldTruncShuffle()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DOverload.h705 QualType DestType, in getNullptrToBool() argument
715 ICS.Standard.setToType(1, DestType); in getNullptrToBool()
716 ICS.Standard.setToType(2, DestType); in getNullptrToBool()
/llvm-project-15.0.7/clang/lib/AST/
H A DExprCXX.cpp770 QualType DestType = getType(); in isAlwaysNull() local
774 DestType = DestType->castAs<PointerType>()->getPointeeType(); in isAlwaysNull()
777 if (DestType->isVoidType()) in isAlwaysNull()
787 cast<CXXRecordDecl>(DestType->castAs<RecordType>()->getDecl()); in isAlwaysNull()
H A DExprConstant.cpp2536 << SrcValue << DestType; in HandleOverflow()
2543 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleFloatToIntCast()
2551 return HandleOverflow(Info, E, Value, DestType); in HandleFloatToIntCast()
2624 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleIntToIntCast()
2629 if (DestType->isBooleanType()) in HandleIntToIntCast()
2638 Result = APFloat(Info.Ctx.getFloatTypeSemantics(DestType), 1); in HandleIntToFloatCast()
13407 QualType DestType = E->getType(); in VisitCastExpr() local
13491 Info.Ctx.getIntWidth(DestType), in VisitCastExpr()
13650 QualType DestType = E->getType(); in VisitCastExpr() local
13651 assert(DestType->isFixedPointType() && in VisitCastExpr()
[all …]
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DBlockGenerators.cpp1161 auto *DestType = FixedVectorType::get(Inst->getType(), VectorWidth); in copyUnaryInst() local
1162 VectorMap[Inst] = Builder.CreateCast(Cast->getOpcode(), NewOperand, DestType); in copyUnaryInst()

12