Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCast.cpp62 : Self(S), SrcExpr(src), DestType(destType), in CastOperation()
78 if (!S.Context.getLangOpts().ObjC && !DestType->isRecordType() && in CastOperation()
79 !DestType->isArrayType() && !DestType.getPointerAuth()) { in CastOperation()
80 DestType = DestType.getAtomicUnqualifiedType(); in CastOperation()
93 QualType DestType; member
187 void checkAddressSpaceCast(QualType SrcType, QualType DestType);
190 Self.CheckCastAlign(SrcExpr.get(), DestType, OpRange); in checkCastAlign()
199 OpRange, DestType, src, CCK, true, false, BO_PtrMemD, in checkObjCConversion()
207 if (DestType.getPointerAuth()) { in checkQualifiedDestType()
209 << DestType << DestRange; in checkQualifiedDestType()
[all …]
H A DSemaInit.cpp4262 QualType DestType, InitializationSequence &Sequence, in TryArrayCopy() argument
4266 Sequence.AddArrayInitStep(DestType, /*IsGNUExtension*/ false); in TryArrayCopy()
4300 QualType DestType, in TryInitializerListConstruction() argument
4304 if (!S.isStdInitializerList(DestType, &E)) in TryInitializerListConstruction()
4325 Sequence.AddStdInitializerListConstructionStep(DestType); in TryInitializerListConstruction()
4348 OverloadCandidateSet &CandidateSet, QualType DestType, in ResolveConstructorOverload() argument
4354 CandidateSet.setDestAS(DestType.getQualifiers().getAddressSpace()); in ResolveConstructorOverload()
4434 ConvTemplate, I.getPair(), ActingDC, Initializer, DestType, in ResolveConstructorOverload()
4439 DestType, CandidateSet, AllowExplicit, in ResolveConstructorOverload()
4463 MultiExprArg Args, QualType DestType, in TryConstructorInitialization() argument
[all …]
H A DSemaExprObjC.cpp4222 SourceLocation Loc, QualType DestType, QualType SrcType, in checkObjCBridgeRelatedComponents() argument
4227 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents()
4244 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4255 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4270 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents()
4284 << SrcType << DestType << Sel << true; in checkObjCBridgeRelatedComponents()
4294 QualType DestType, in CheckObjCBridgeRelatedConversions() argument
4300 ARCConversionTypeClass lhsExprACTC = classifyTypeForARCConversion(DestType); in CheckObjCBridgeRelatedConversions()
4310 if (!checkObjCBridgeRelatedComponents(Loc, DestType, SrcType, RelatedClass, in CheckObjCBridgeRelatedConversions()
4327 << SrcType << DestType << ClassMethod->getSelector() << false in CheckObjCBridgeRelatedConversions()
[all …]
H A DSemaExpr.cpp2999 QualType DestType; in PerformObjectMemberConversion() local
3012 DestType = Context.getPointerType(DestRecordType); in PerformObjectMemberConversion()
3016 DestType = DestRecordType; in PerformObjectMemberConversion()
3023 DestType = Method->getThisType().getNonReferenceType(); in PerformObjectMemberConversion()
3031 DestType = DestRecordType; in PerformObjectMemberConversion()
3052 if (DestType->isDependentType() || FromType->isDependentType()) in PerformObjectMemberConversion()
3122 FromTypeQuals.setAddressSpace(DestType.getAddressSpace()); in PerformObjectMemberConversion()
3123 DestType = Context.getQualifiedType(DestType, FromTypeQuals); in PerformObjectMemberConversion()
3125 return ImpCastExprToType(From, DestType, CK_UncheckedDerivedToBase, VK, in PerformObjectMemberConversion()
20780 QualType DestType; member
[all …]
H A DSemaOverload.cpp6060 QualType FromRecordType, DestType; in PerformImplicitObjectArgumentInitialization() local
6066 DestType = Method->getThisType(); in PerformImplicitObjectArgumentInitialization()
6070 DestType = ImplicitParamRecordType; in PerformImplicitObjectArgumentInitialization()
6092 Qualifiers ToQs = DestType.getQualifiers(); in PerformImplicitObjectArgumentInitialization()
6139 if (!Context.hasSameType(From->getType(), DestType)) { in PerformImplicitObjectArgumentInitialization()
6141 QualType PteeTy = DestType->getPointeeType(); in PerformImplicitObjectArgumentInitialization()
6143 PteeTy.isNull() ? DestType.getAddressSpace() : PteeTy.getAddressSpace(); in PerformImplicitObjectArgumentInitialization()
6148 From = ImpCastExprToType(From, DestType, CK, From->getValueKind()).get(); in PerformImplicitObjectArgumentInitialization()
11695 QualType DestType, bool TakingAddress) { in NoteOverloadCandidate() argument
11714 HandleFunctionTypeMismatch(PD, Fn->getType(), DestType); in NoteOverloadCandidate()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAddMissingPrototypes.cpp108 FunctionType *DestType = CB->getFunctionType(); in runOnModule() local
111 NewType = DestType; in runOnModule()
113 } else if (NewType != DestType) { in runOnModule()
117 LLVM_DEBUG(dbgs() << " " << *DestType << "\n"); in runOnModule()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGPointerAuth.cpp651 QualType DestType) { in authPointerToPointerCast() argument
656 if (DestType->isSignableType(getContext())) in authPointerToPointerCast()
657 NewAuthInfo = getPointerAuthInfoForType(CGM, DestType); in authPointerToPointerCast()
664 if (!CurAuthInfo && DestType->isFunctionPointerType()) in authPointerToPointerCast()
668 NewAuthInfo = CGM.getFunctionPointerAuthInfo(DestType); in authPointerToPointerCast()
670 return emitPointerAuthResign(ResultPtr, DestType, CurAuthInfo, NewAuthInfo, in authPointerToPointerCast()
676 QualType DestType) { in authPointerToPointerCast() argument
681 if (DestType->isSignableType(getContext())) in authPointerToPointerCast()
682 NewAuthInfo = getPointerAuthInfoForType(CGM, DestType); in authPointerToPointerCast()
687 if (!CurAuthInfo && DestType->isFunctionPointerType()) { in authPointerToPointerCast()
[all …]
H A DCGExprConstant.cpp1168 llvm::Constant *ProduceIntToIntCast(const Expr *E, QualType DestType) { in ProduceIntToIntCast() argument
1175 unsigned DstWidth = CGM.getContext().getIntWidth(DestType); in ProduceIntToIntCast()
1360 QualType DestType, const llvm::APSInt &Value) { in withDestType() argument
1361 if (!Ctx.hasSameType(SrcType, DestType)) { in withDestType()
1362 if (DestType->isFloatingType()) { in withDestType()
1364 llvm::APFloat(Ctx.getFloatTypeSemantics(DestType), 1); in withDestType()
2069 QualType DestType; member in __anon9d6f04f10b11::ConstantLValueEmitter
2079 : CGM(emitter.CGM), Emitter(emitter), Value(value), DestType(destType), in ConstantLValueEmitter()
2141 auto destTy = CGM.getTypes().ConvertTypeForMem(DestType); in tryEmit()
2163 if (PointerAuthQualifier PointerAuth = DestType.getPointerAuth(); in tryEmit()
[all …]
H A DCGExprComplex.cpp90 QualType DestType, SourceLocation Loc);
93 QualType DestType, SourceLocation Loc);
515 QualType DestType, in EmitComplexToComplexCast() argument
519 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
525 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast()
527 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast()
533 QualType DestType, in EmitScalarToComplexCast() argument
536 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitScalarToComplexCast()
537 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); in EmitScalarToComplexCast()
H A DCGStmtOpenMP.cpp6235 QualType SrcType, QualType DestType, in convertToScalarValue() argument
6237 assert(CGF.hasScalarEvaluationKind(DestType) && in convertToScalarValue()
6241 DestType, Loc) in convertToScalarValue()
6243 Val.getComplexVal(), SrcType, DestType, Loc); in convertToScalarValue()
6248 QualType DestType, SourceLocation Loc) { in convertToComplexValue() argument
6249 assert(CGF.getEvaluationKind(DestType) == TEK_Complex && in convertToComplexValue()
6255 DestType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
6264 DestType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
H A DItaniumCXXABI.cpp1032 pointerAuthResignMemberFunctionPointer(llvm::Constant *Src, QualType DestType, in pointerAuthResignMemberFunctionPointer() argument
1034 assert(DestType->isMemberFunctionPointerType() && in pointerAuthResignMemberFunctionPointer()
1037 if (DestType == SrcType) in pointerAuthResignMemberFunctionPointer()
1040 const auto &NewAuthInfo = CGM.getMemberFunctionPointerAuthInfo(DestType); in pointerAuthResignMemberFunctionPointer()
H A DCGAtomic.cpp1094 auto *DestType = llvm::PointerType::get(getLLVMContext(), DestAS); in EmitAtomicExpr() local
1096 return getTargetHooks().performAddrSpaceCast(*this, V, AS, DestType, in EmitAtomicExpr()
H A DCodeGenFunction.h4621 QualType SourceType, QualType DestType);
4623 QualType DestType);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp414 Type *DestType = Trunc.getType(); in foldVecTruncToExtElt() local
415 if (!TruncOp->hasOneUse() || !isa<IntegerType>(DestType)) in foldVecTruncToExtElt()
428 unsigned DestWidth = DestType->getPrimitiveSizeInBits(); in foldVecTruncToExtElt()
437 if (VecType->getElementType() != DestType) { in foldVecTruncToExtElt()
438 VecType = FixedVectorType::get(DestType, NumVecElts); in foldVecTruncToExtElt()
1972 Type *DestType = FI.getType(); in foldItoFPtoI() local
1987 int OutputSize = (int)DestType->getScalarSizeInBits(); in foldItoFPtoI()
1992 if (DestType->getScalarSizeInBits() > XType->getScalarSizeInBits()) { in foldItoFPtoI()
1995 return new SExtInst(X, DestType); in foldItoFPtoI()
1996 return new ZExtInst(X, DestType); in foldItoFPtoI()
[all …]
H A DInstCombineVectorOps.cpp2467 Type *DestType = Shuf.getType(); in foldTruncShuffle() local
2470 !match(Shuf.getOperand(1), m_Poison()) || !DestType->isIntOrIntVectorTy()) in foldTruncShuffle()
2478 cast<FixedVectorType>(DestType)->getNumElements() || in foldTruncShuffle()
2479 SrcType->getScalarSizeInBits() % DestType->getScalarSizeInBits() != 0) in foldTruncShuffle()
2488 SrcType->getScalarSizeInBits() / DestType->getScalarSizeInBits(); in foldTruncShuffle()
2499 return new TruncInst(X, DestType); in foldTruncShuffle()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaHLSL.h193 bool CanPerformElementwiseCast(Expr *Src, QualType DestType);
194 bool CanPerformAggregateSplatCast(Expr *Src, QualType DestType);
H A DOverload.h821 QualType DestType, in getNullptrToBool() argument
831 ICS.Standard.setToType(1, DestType); in getNullptrToBool()
832 ICS.Standard.setToType(2, DestType); in getNullptrToBool()
H A DSemaObjC.h782 bool checkObjCBridgeRelatedComponents(SourceLocation Loc, QualType DestType,
790 bool CheckObjCBridgeRelatedConversions(SourceLocation Loc, QualType DestType,
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprCXX.cpp831 QualType DestType = getType(); in isAlwaysNull() local
833 if (DestType->isVoidPointerType()) in isAlwaysNull()
836 if (DestType->isPointerType()) { in isAlwaysNull()
838 DestType = DestType->getPointeeType(); in isAlwaysNull()
842 const auto *DestRD = DestType->getAsCXXRecordDecl(); in isAlwaysNull()
H A DExprConstant.cpp2776 const T &SrcValue, QualType DestType) { in HandleOverflow() argument
2778 << SrcValue << DestType; in HandleOverflow()
2784 QualType DestType, APSInt &Result) { in HandleFloatToIntCast() argument
2785 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleFloatToIntCast()
2787 bool DestSigned = DestType->isSignedIntegerOrEnumerationType(); in HandleFloatToIntCast()
2793 return HandleOverflow(Info, E, Value, DestType); in HandleFloatToIntCast()
2852 QualType SrcType, QualType DestType, in HandleFloatToFloatCast() argument
2863 St = Result.convert(Info.Ctx.getFloatTypeSemantics(DestType), RM, &ignored); in HandleFloatToFloatCast()
2868 QualType DestType, QualType SrcType, in HandleIntToIntCast() argument
2870 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleIntToIntCast()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
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.cpp612 QualType DestType = CE->getType(); in checkPostStmt() local
615 const auto *DestObjectPtrType = DestType->getAs<ObjCObjectPointerType>(); in checkPostStmt()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp692 BoolValue &valueOrConversionHasValue(QualType DestType, const Expr &E, in valueOrConversionHasValue() argument
696 countOptionalWrappers(*MatchRes.Context, DestType); in valueOrConversionHasValue()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DRangeConstraintManager.cpp1278 RangeSet inferAs(SymbolRef Sym, QualType DestType) { in inferAs() argument
1287 return infer(DestType); in inferAs()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVInstructionSelector.cpp317 Register Src, Register DestType,
1599 Register Src, Register DestType, in buildSpecConstantOp() argument
1604 .addUse(DestType) in buildSpecConstantOp()

12