Home
last modified time | relevance | path

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

12

/src/contrib/llvm-project/clang/lib/Sema/
H A DSemaCast.cpp62 : Self(S), SrcExpr(src), DestType(destType), in CastOperation()
75 if (!S.Context.getLangOpts().ObjC && !DestType->isRecordType() && in CastOperation()
76 !DestType->isArrayType()) { in CastOperation()
77 DestType = DestType.getAtomicUnqualifiedType(); in CastOperation()
90 QualType DestType; member
154 void checkAddressSpaceCast(QualType SrcType, QualType DestType);
157 Self.CheckCastAlign(SrcExpr.get(), DestType, OpRange); in checkCastAlign()
164 if (Self.ObjC().CheckObjCConversion(OpRange, DestType, src, CCK) == in checkObjCConversion()
186 if (const auto *DestType = dyn_cast<PointerType>(ToType)) { in CheckNoDeref() local
187 if (!DestType->getPointeeType()->hasAttr(attr::NoDeref)) { in CheckNoDeref()
[all …]
H A DSemaInit.cpp4181 QualType DestType, in TryInitializerListConstruction() argument
4185 if (!S.isStdInitializerList(DestType, &E)) in TryInitializerListConstruction()
4206 Sequence.AddStdInitializerListConstructionStep(DestType); in TryInitializerListConstruction()
4229 OverloadCandidateSet &CandidateSet, QualType DestType, in ResolveConstructorOverload() argument
4235 CandidateSet.setDestAS(DestType.getQualifiers().getAddressSpace()); in ResolveConstructorOverload()
4315 ConvTemplate, I.getPair(), ActingDC, Initializer, DestType, in ResolveConstructorOverload()
4320 DestType, CandidateSet, AllowExplicit, in ResolveConstructorOverload()
4344 MultiExprArg Args, QualType DestType, in TryConstructorInitialization() argument
4359 if (!S.isCompleteType(Kind.getLocation(), DestType)) { in TryConstructorInitialization()
4360 Sequence.setIncompleteTypeFailure(DestType); in TryConstructorInitialization()
[all …]
H A DSemaExprObjC.cpp4232 SourceLocation Loc, QualType DestType, QualType SrcType, in checkObjCBridgeRelatedComponents() argument
4237 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents()
4254 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4265 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4280 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents()
4294 << SrcType << DestType << Sel << true; in checkObjCBridgeRelatedComponents()
4304 QualType DestType, in CheckObjCBridgeRelatedConversions() argument
4310 ARCConversionTypeClass lhsExprACTC = classifyTypeForARCConversion(DestType); in CheckObjCBridgeRelatedConversions()
4320 if (!checkObjCBridgeRelatedComponents(Loc, DestType, SrcType, RelatedClass, in CheckObjCBridgeRelatedConversions()
4337 << SrcType << DestType << ClassMethod->getSelector() << false in CheckObjCBridgeRelatedConversions()
[all …]
H A DSemaExpr.cpp2952 QualType DestType; in PerformObjectMemberConversion() local
2965 DestType = Context.getPointerType(DestRecordType); in PerformObjectMemberConversion()
2969 DestType = DestRecordType; in PerformObjectMemberConversion()
2976 DestType = Method->getThisType().getNonReferenceType(); in PerformObjectMemberConversion()
2984 DestType = DestRecordType; in PerformObjectMemberConversion()
3005 if (DestType->isDependentType() || FromType->isDependentType()) in PerformObjectMemberConversion()
3071 return ImpCastExprToType(From, DestType, CK_UncheckedDerivedToBase, in PerformObjectMemberConversion()
20287 QualType DestType; member
20290 : S(S), DestType(CastType) {} in RebuildUnknownAnyExpr()
20327 const PointerType *Ptr = DestType->getAs<PointerType>(); in VisitUnaryAddrOf()
[all …]
H A DSemaOverload.cpp5815 QualType FromRecordType, DestType; in PerformImplicitObjectArgumentInitialization() local
5821 DestType = Method->getThisType(); in PerformImplicitObjectArgumentInitialization()
5825 DestType = ImplicitParamRecordType; in PerformImplicitObjectArgumentInitialization()
5845 Qualifiers ToQs = DestType.getQualifiers(); in PerformImplicitObjectArgumentInitialization()
5892 if (!Context.hasSameType(From->getType(), DestType)) { in PerformImplicitObjectArgumentInitialization()
5894 QualType PteeTy = DestType->getPointeeType(); in PerformImplicitObjectArgumentInitialization()
5896 PteeTy.isNull() ? DestType.getAddressSpace() : PteeTy.getAddressSpace(); in PerformImplicitObjectArgumentInitialization()
5901 From = ImpCastExprToType(From, DestType, CK, From->getValueKind()).get(); in PerformImplicitObjectArgumentInitialization()
11002 QualType DestType, bool TakingAddress) { in NoteOverloadCandidate() argument
11021 HandleFunctionTypeMismatch(PD, Fn->getType(), DestType); in NoteOverloadCandidate()
[all …]
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DConversionChecker.cpp47 bool isLossOfPrecision(const ImplicitCastExpr *Cast, QualType DestType,
136 QualType DestType, in isLossOfPrecision() argument
144 if (!DestType->isRealType() || !SubType->isIntegerType()) in isLossOfPrecision()
147 const bool isFloat = DestType->isFloatingType(); in isLossOfPrecision()
156 const llvm::fltSemantics &Sema = AC.getFloatTypeSemantics(DestType); in isLossOfPrecision()
159 RepresentsUntilExp = AC.getIntWidth(DestType); in isLossOfPrecision()
164 if (DestType->isSignedIntegerType()) in isLossOfPrecision()
H A DNullabilityChecker.cpp1133 QualType DestType = CE->getType(); in checkPostStmt() local
1136 if (!isValidPointerType(DestType)) in checkPostStmt()
1143 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()
/src/contrib/llvm-project/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()
/src/contrib/llvm-project/clang/lib/CodeGen/
H A DCGPointerAuth.cpp514 QualType DestType) { in authPointerToPointerCast() argument
519 if (DestType->isSignableType()) in authPointerToPointerCast()
520 NewAuthInfo = getPointerAuthInfoForType(CGM, DestType); in authPointerToPointerCast()
527 if (!CurAuthInfo && DestType->isFunctionPointerType()) in authPointerToPointerCast()
531 NewAuthInfo = CGM.getFunctionPointerAuthInfo(DestType); in authPointerToPointerCast()
533 return emitPointerAuthResign(ResultPtr, DestType, CurAuthInfo, NewAuthInfo, in authPointerToPointerCast()
539 QualType DestType) { in authPointerToPointerCast() argument
544 if (DestType->isSignableType()) in authPointerToPointerCast()
545 NewAuthInfo = getPointerAuthInfoForType(CGM, DestType); in authPointerToPointerCast()
550 if (!CurAuthInfo && DestType->isFunctionPointerType()) { in authPointerToPointerCast()
[all …]
H A DCGExprConstant.cpp1082 llvm::Constant *ProduceIntToIntCast(const Expr *E, QualType DestType) { in ProduceIntToIntCast() argument
1089 unsigned DstWidth = CGM.getContext().getIntWidth(DestType); in ProduceIntToIntCast()
1274 QualType DestType, const llvm::APSInt &Value) { in withDestType() argument
1275 if (!Ctx.hasSameType(SrcType, DestType)) { in withDestType()
1276 if (DestType->isFloatingType()) { in withDestType()
1278 llvm::APFloat(Ctx.getFloatTypeSemantics(DestType), 1); in withDestType()
1974 QualType DestType; member in __anon4cd729e60b11::ConstantLValueEmitter
1984 : CGM(emitter.CGM), Emitter(emitter), Value(value), DestType(destType), in ConstantLValueEmitter()
2046 auto destTy = CGM.getTypes().ConvertTypeForMem(DestType); in tryEmit()
2083 return CGM.getNullPointer(destPtrTy, DestType); in tryEmitAbsolute()
[all …]
H A DCGExprComplex.cpp91 QualType DestType, SourceLocation Loc);
94 QualType DestType, SourceLocation Loc);
518 QualType DestType, in EmitComplexToComplexCast() argument
522 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
528 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast()
530 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast()
536 QualType DestType, in EmitScalarToComplexCast() argument
539 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitScalarToComplexCast()
540 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); in EmitScalarToComplexCast()
H A DCGStmtOpenMP.cpp6016 QualType SrcType, QualType DestType, in convertToScalarValue() argument
6018 assert(CGF.hasScalarEvaluationKind(DestType) && in convertToScalarValue()
6022 DestType, Loc) in convertToScalarValue()
6024 Val.getComplexVal(), SrcType, DestType, Loc); in convertToScalarValue()
6029 QualType DestType, SourceLocation Loc) { in convertToComplexValue() argument
6030 assert(CGF.getEvaluationKind(DestType) == TEK_Complex && in convertToComplexValue()
6036 DestType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
6045 DestType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
H A DItaniumCXXABI.cpp1021 pointerAuthResignMemberFunctionPointer(llvm::Constant *Src, QualType DestType, in pointerAuthResignMemberFunctionPointer() argument
1023 assert(DestType->isMemberFunctionPointerType() && in pointerAuthResignMemberFunctionPointer()
1026 if (DestType == SrcType) in pointerAuthResignMemberFunctionPointer()
1029 const auto &NewAuthInfo = CGM.getMemberFunctionPointerAuthInfo(DestType); in pointerAuthResignMemberFunctionPointer()
H A DCGAtomic.cpp1053 auto *DestType = llvm::PointerType::get(getLLVMContext(), DestAS); in EmitAtomicExpr() local
1056 *this, V, AS, LangAS::opencl_generic, DestType, false); in EmitAtomicExpr()
H A DCodeGenFunction.h4461 QualType SourceType, QualType DestType);
4463 QualType DestType);
/src/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp404 Type *DestType = Trunc.getType(); in foldVecTruncToExtElt() local
405 if (!TruncOp->hasOneUse() || !isa<IntegerType>(DestType)) in foldVecTruncToExtElt()
418 unsigned DestWidth = DestType->getPrimitiveSizeInBits(); in foldVecTruncToExtElt()
427 if (VecType->getElementType() != DestType) { in foldVecTruncToExtElt()
428 VecType = FixedVectorType::get(DestType, NumVecElts); in foldVecTruncToExtElt()
1921 Type *DestType = FI.getType(); in foldItoFPtoI() local
1936 int OutputSize = (int)DestType->getScalarSizeInBits(); in foldItoFPtoI()
1941 if (DestType->getScalarSizeInBits() > XType->getScalarSizeInBits()) { in foldItoFPtoI()
1944 return new SExtInst(X, DestType); in foldItoFPtoI()
1945 return new ZExtInst(X, DestType); in foldItoFPtoI()
[all …]
H A DInstCombineVectorOps.cpp2389 Type *DestType = Shuf.getType(); in foldTruncShuffle() local
2392 !match(Shuf.getOperand(1), m_Poison()) || !DestType->isIntOrIntVectorTy()) in foldTruncShuffle()
2400 cast<FixedVectorType>(DestType)->getNumElements() || in foldTruncShuffle()
2401 SrcType->getScalarSizeInBits() % DestType->getScalarSizeInBits() != 0) in foldTruncShuffle()
2410 SrcType->getScalarSizeInBits() / DestType->getScalarSizeInBits(); in foldTruncShuffle()
2421 return new TruncInst(X, DestType); in foldTruncShuffle()
/src/contrib/llvm-project/clang/include/clang/Sema/
H A DOverload.h767 QualType DestType, in getNullptrToBool() argument
777 ICS.Standard.setToType(1, DestType); in getNullptrToBool()
778 ICS.Standard.setToType(2, DestType); in getNullptrToBool()
H A DSemaObjC.h790 bool checkObjCBridgeRelatedComponents(SourceLocation Loc, QualType DestType,
798 bool CheckObjCBridgeRelatedConversions(SourceLocation Loc, QualType DestType,
/src/contrib/llvm-project/clang/lib/AST/
H A DExprCXX.cpp826 QualType DestType = getType(); in isAlwaysNull() local
828 if (DestType->isVoidPointerType()) in isAlwaysNull()
831 if (DestType->isPointerType()) { in isAlwaysNull()
833 DestType = DestType->getPointeeType(); in isAlwaysNull()
837 const auto *DestRD = DestType->getAsCXXRecordDecl(); in isAlwaysNull()
H A DExprConstant.cpp2634 const T &SrcValue, QualType DestType) { in HandleOverflow() argument
2636 << SrcValue << DestType; in HandleOverflow()
2642 QualType DestType, APSInt &Result) { in HandleFloatToIntCast() argument
2643 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleFloatToIntCast()
2645 bool DestSigned = DestType->isSignedIntegerOrEnumerationType(); in HandleFloatToIntCast()
2651 return HandleOverflow(Info, E, Value, DestType); in HandleFloatToIntCast()
2710 QualType SrcType, QualType DestType, in HandleFloatToFloatCast() argument
2721 St = Result.convert(Info.Ctx.getFloatTypeSemantics(DestType), RM, &ignored); in HandleFloatToFloatCast()
2726 QualType DestType, QualType SrcType, in HandleIntToIntCast() argument
2728 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleIntToIntCast()
[all …]
/src/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp500 BoolValue &valueOrConversionHasValue(QualType DestType, const Expr &E, in valueOrConversionHasValue() argument
504 countOptionalWrappers(*MatchRes.Context, DestType); in valueOrConversionHasValue()
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DRangeConstraintManager.cpp1276 RangeSet inferAs(SymbolRef Sym, QualType DestType) { in inferAs() argument
1285 return infer(DestType); in inferAs()
/src/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp1943 LLT DestType = MRI.getType(MI.getOperand(0).getReg()); in applyShiftOfShiftedLogic() local
1949 Builder.buildInstr(Opcode, {DestType}, {Shift1Base, Const}).getReg(0); in applyShiftOfShiftedLogic()
1960 .buildInstr(Opcode, {DestType}, in applyShiftOfShiftedLogic()

12