| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaCast.cpp | 75 DestType = DestType.getAtomicUnqualifiedType(); in CastOperation() 88 QualType DestType; member 676 assert((DestType->isAnyPointerType() || DestType->isMemberPointerType() || in CastsAwayConstness() 791 QualType DestType = Self.Context.getCanonicalType(this->DestType); in CheckDynamicCast() local 1934 DestType = Self.Context.getCanonicalType(DestType); in TryConstCast() 2252 DestType = Self.Context.getCanonicalType(DestType); in TryReinterpretCast() 2425 if (SrcType == DestType) { in TryReinterpretCast() 2887 && (DestType->isAnyPointerType() || DestType->isBlockPointerType())) in DiagnoseBadFunctionCast() 3000 if (!DestType->isScalarType() && !DestType->isVectorType() && in CheckCStyleCast() 3072 if (!DestType->isVoidType() && !DestType->isBooleanType() && in CheckCStyleCast() [all …]
|
| H A D | SemaInit.cpp | 4553 if (DestType->isRecordType() && in TryListInitialization() 4627 if ((DestType->isRecordType() && !DestType->isAggregateType()) || in TryListInitialization() 6056 if (DestType->isEventT() || DestType->isQueueT()) { in TryOCLZeroOpaqueTypeInitialization() 6362 AddCAssignmentStep(DestType); in InitializeFrom() 6380 TryConstructorInitialization(S, Entity, Kind, Args, DestType, DestType, in InitializeFrom() 6505 DestType); in InitializeFrom() 8379 if (!DestType->isRecordType()) in CheckMoveOnConstruction() 8563 << DestType << (bool)DestType->getAs<RecordType>() in Perform() 9805 << DestType in Diagnose() 9852 << (DestType->isRecordType()) << DestType << Args[0]->getSourceRange(); in Diagnose() [all …]
|
| H A D | SemaExprObjC.cpp | 4231 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents() 4248 << SrcType << DestType; in checkObjCBridgeRelatedComponents() 4259 << SrcType << DestType; in checkObjCBridgeRelatedComponents() 4274 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents() 4288 << SrcType << DestType << Sel << true; in checkObjCBridgeRelatedComponents() 4299 QualType DestType, QualType SrcType, in CheckObjCBridgeRelatedConversions() argument 4302 ARCConversionTypeClass lhsExprACTC = classifyTypeForARCConversion(DestType); in CheckObjCBridgeRelatedConversions() 4312 if (!checkObjCBridgeRelatedComponents(Loc, DestType, SrcType, RelatedClass, in CheckObjCBridgeRelatedConversions() 4329 << SrcType << DestType << ClassMethod->getSelector() << false in CheckObjCBridgeRelatedConversions() 4362 << SrcType << DestType << InstanceMethod->getSelector() << true in CheckObjCBridgeRelatedConversions() [all …]
|
| H A D | SemaExpr.cpp | 3212 QualType DestType; in PerformObjectMemberConversion() local 21392 if (DestType->isArrayType() || DestType->isFunctionType()) { in VisitCallExpr() 21398 << DestType->isFunctionType() << DestType; in VisitCallExpr() 21438 DestType = S.Context.getFunctionType(DestType, ParamTypes, in VisitCallExpr() 21441 DestType = S.Context.getFunctionNoProtoType(DestType, in VisitCallExpr() 21452 DestType = S.Context.getPointerType(DestType); in VisitCallExpr() 21456 DestType = S.Context.getBlockPointerType(DestType); in VisitCallExpr() 21471 if (DestType->isArrayType() || DestType->isFunctionType()) { in VisitObjCMessageExpr() 21473 << DestType->isFunctionType() << DestType; in VisitObjCMessageExpr() 21499 DestType = DestType->castAs<PointerType>()->getPointeeType(); in VisitImplicitCastExpr() [all …]
|
| H A D | SemaOverload.cpp | 5787 QualType FromRecordType, DestType; in PerformImplicitObjectArgumentInitialization() local 5793 DestType = Method->getThisType(); in PerformImplicitObjectArgumentInitialization() 5797 DestType = ImplicitParamRecordType; in PerformImplicitObjectArgumentInitialization() 5817 Qualifiers ToQs = DestType.getQualifiers(); in PerformImplicitObjectArgumentInitialization() 5864 if (!Context.hasSameType(From->getType(), DestType)) { in PerformImplicitObjectArgumentInitialization() 5866 QualType PteeTy = DestType->getPointeeType(); in PerformImplicitObjectArgumentInitialization() 5873 From = ImpCastExprToType(From, DestType, CK, From->getValueKind()).get(); in PerformImplicitObjectArgumentInitialization() 10990 QualType DestType, bool TakingAddress) { in NoteOverloadCandidate() argument 11009 HandleFunctionTypeMismatch(PD, Fn->getType(), DestType); in NoteOverloadCandidate() 11065 void Sema::NoteAllOverloadCandidates(Expr *OverloadedExpr, QualType DestType, in NoteAllOverloadCandidates() argument [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ConversionChecker.cpp | 47 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 D | NullabilityChecker.cpp | 1132 QualType DestType = CE->getType(); in checkPostStmt() local 1135 if (!isValidPointerType(DestType)) in checkPostStmt() 1142 Nullability DestNullability = getNullabilityAnnotation(DestType); in checkPostStmt()
|
| H A D | DynamicTypePropagation.cpp | 616 QualType DestType = CE->getType(); in checkPostStmt() local 619 const auto *DestObjectPtrType = DestType->getAs<ObjCObjectPointerType>(); in checkPostStmt()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyAddMissingPrototypes.cpp | 109 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()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 396 Type *DestType = Trunc.getType(); in foldVecTruncToExtElt() local 397 if (!TruncOp->hasOneUse() || !isa<IntegerType>(DestType)) in foldVecTruncToExtElt() 410 unsigned DestWidth = DestType->getPrimitiveSizeInBits(); in foldVecTruncToExtElt() 419 if (VecType->getElementType() != DestType) { in foldVecTruncToExtElt() 420 VecType = FixedVectorType::get(DestType, NumVecElts); in foldVecTruncToExtElt() 1878 Type *DestType = FI.getType(); in foldItoFPtoI() local 1901 return new SExtInst(X, DestType); in foldItoFPtoI() 1902 return new ZExtInst(X, DestType); in foldItoFPtoI() 1905 return new TruncInst(X, DestType); in foldItoFPtoI() 2262 Type *DestType = BitCast.getType(); in canonicalizeBitCastExtElt() local [all …]
|
| H A D | InstCombineVectorOps.cpp | 2366 Type *DestType = Shuf.getType(); in foldTruncShuffle() local 2369 !match(Shuf.getOperand(1), m_Undef()) || !DestType->isIntOrIntVectorTy()) in foldTruncShuffle() 2377 cast<FixedVectorType>(DestType)->getNumElements() || in foldTruncShuffle() 2378 SrcType->getScalarSizeInBits() % DestType->getScalarSizeInBits() != 0) in foldTruncShuffle() 2387 SrcType->getScalarSizeInBits() / DestType->getScalarSizeInBits(); in foldTruncShuffle() 2398 return new TruncInst(X, DestType); in foldTruncShuffle()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprConstant.cpp | 1818 QualType DestType; member in __anon11b4a6e70a11::ConstantLValueEmitter 1880 auto destTy = CGM.getTypes().ConvertTypeForMem(DestType); in tryEmit() 1917 return CGM.getNullPointer(destPtrTy, DestType); in tryEmitAbsolute() 2087 QualType DestType) { in tryEmitPrivate() argument 2094 return ConstantLValueEmitter(*this, Value, DestType).tryEmit(); in tryEmitPrivate() 2148 DestType->castAs<VectorType>()->getElementType())); in tryEmitPrivate() 2162 llvm::Type *ResultType = CGM.getTypes().ConvertType(DestType); in tryEmitPrivate() 2174 return ConstStructBuilder::BuildStruct(*this, Value, DestType); in tryEmitPrivate() 2210 cast<llvm::ArrayType>(CGM.getTypes().ConvertType(DestType)); in tryEmitPrivate() 2213 if (DestType->isIncompleteArrayType() && !Elts.empty()) in tryEmitPrivate() [all …]
|
| H A D | CGExprComplex.cpp | 86 QualType DestType, SourceLocation Loc); 89 QualType DestType, SourceLocation Loc); 455 QualType DestType, in EmitComplexToComplexCast() argument 459 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast() 465 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast() 467 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast() 473 QualType DestType, in EmitScalarToComplexCast() argument 476 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitScalarToComplexCast() 477 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); in EmitScalarToComplexCast()
|
| H A D | CGStmtOpenMP.cpp | 5962 QualType SrcType, QualType DestType, in convertToScalarValue() argument 5964 assert(CGF.hasScalarEvaluationKind(DestType) && in convertToScalarValue() 5968 DestType, Loc) in convertToScalarValue() 5970 Val.getComplexVal(), SrcType, DestType, Loc); in convertToScalarValue() 5975 QualType DestType, SourceLocation Loc) { in convertToComplexValue() argument 5976 assert(CGF.getEvaluationKind(DestType) == TEK_Complex && in convertToComplexValue() 5982 DestType->castAs<ComplexType>()->getElementType(); in convertToComplexValue() 5991 DestType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
|
| H A D | CGAtomic.cpp | 1175 auto *DestType = llvm::PointerType::get(getLLVMContext(), DestAS); in EmitAtomicExpr() local 1178 *this, V, AS, LangAS::opencl_generic, DestType, false); in EmitAtomicExpr()
|
| H A D | CGBuiltin.cpp | 9061 llvm::Type *DestType) { in ARMMVEVectorReinterpret() argument 9074 V->getType()->getScalarSizeInBits() != DestType->getScalarSizeInBits()) { in ARMMVEVectorReinterpret() 9077 {DestType, V->getType()}), in ARMMVEVectorReinterpret() 9080 return Builder.CreateBitCast(V, DestType); in ARMMVEVectorReinterpret()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Overload.h | 718 QualType DestType, in getNullptrToBool() argument 728 ICS.Standard.setToType(1, DestType); in getNullptrToBool() 729 ICS.Standard.setToType(2, DestType); in getNullptrToBool()
|
| H A D | Sema.h | 4163 QualType DestType = QualType(), bool TakingAddress = false); 4167 void NoteAllOverloadCandidates(Expr *E, QualType DestType = QualType(), 6689 void CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType, 10854 QualType DestType, QualType SrcType, 10862 QualType DestType, QualType SrcType,
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | ExprCXX.cpp | 776 QualType DestType = getType(); in isAlwaysNull() local 778 if (DestType->isVoidPointerType()) in isAlwaysNull() 781 if (DestType->isPointerType()) { in isAlwaysNull() 783 DestType = DestType->getPointeeType(); in isAlwaysNull() 787 const auto *DestRD = DestType->getAsCXXRecordDecl(); in isAlwaysNull()
|
| H A D | ExprConstant.cpp | 2629 << SrcValue << DestType; in HandleOverflow() 2636 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleFloatToIntCast() 2644 return HandleOverflow(Info, E, Value, DestType); in HandleFloatToIntCast() 2717 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleIntToIntCast() 2722 if (DestType->isBooleanType()) in HandleIntToIntCast() 13874 QualType DestType = E->getType(); in VisitCastExpr() local 13958 Info.Ctx.getIntWidth(DestType), in VisitCastExpr() 13991 DestType->isEnumeralType()) { in VisitCastExpr() 14168 QualType DestType = E->getType(); in VisitCastExpr() local 14169 assert(DestType->isFixedPointType() && in VisitCastExpr() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | RangeConstraintManager.cpp | 1276 RangeSet inferAs(SymbolRef Sym, QualType DestType) { in inferAs() argument 1285 return infer(DestType); in inferAs()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CombinerHelper.cpp | 1789 LLT DestType = MRI.getType(MI.getOperand(0).getReg()); in applyShiftOfShiftedLogic() local 1796 Builder.buildInstr(Opcode, {DestType}, {Shift1Base, Const}).getReg(0); in applyShiftOfShiftedLogic() 1807 .buildInstr(Opcode, {DestType}, in applyShiftOfShiftedLogic()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeDAG.cpp | 1767 Type *DestType = DestVT.getTypeForEVT(*DAG.getContext()); in EmitStackConvert() local 1768 Align DestAlign = DAG.getDataLayout().getPrefTypeAlign(DestType); in EmitStackConvert()
|