Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/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()
1885 DestType = Self.Context.getCanonicalType(DestType); in TryConstCast()
2042 QualType DT = DestType; in DiagnoseCastOfObjCSEL()
2203 DestType = Self.Context.getCanonicalType(DestType); in TryReinterpretCast()
2370 if (SrcType == DestType) { in TryReinterpretCast()
2804 && (DestType->isAnyPointerType() || DestType->isBlockPointerType())) in DiagnoseBadFunctionCast()
[all …]
H A DSemaInit.cpp4377 if (DestType->isRecordType() && in TryListInitialization()
4434 if ((DestType->isRecordType() && !DestType->isAggregateType()) || in TryListInitialization()
5611 if (DestType->isEventT() || DestType->isQueueT()) { in TryOCLZeroOpaqueTypeInitialization()
5911 AddCAssignmentStep(DestType); in InitializeFrom()
5929 DestType, DestType, *this); in InitializeFrom()
5985 DestType); in InitializeFrom()
7832 if (!DestType->isRecordType()) in CheckMoveOnConstruction()
8007 << DestType << (bool)DestType->getAs<RecordType>() in Perform()
9218 << DestType in Diagnose()
9265 << (DestType->isRecordType()) << DestType << Args[0]->getSourceRange(); in Diagnose()
[all …]
H A DSemaExprObjC.cpp4235 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents()
4252 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4263 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4278 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents()
4292 << SrcType << DestType << Sel << true; in checkObjCBridgeRelatedComponents()
4303 QualType DestType, QualType SrcType, in CheckObjCBridgeRelatedConversions() argument
4306 ARCConversionTypeClass lhsExprACTC = classifyTypeForARCConversion(DestType); in CheckObjCBridgeRelatedConversions()
4316 if (!checkObjCBridgeRelatedComponents(Loc, DestType, SrcType, RelatedClass, in CheckObjCBridgeRelatedConversions()
4333 << SrcType << DestType << ClassMethod->getSelector() << false in CheckObjCBridgeRelatedConversions()
4366 << SrcType << DestType << InstanceMethod->getSelector() << true in CheckObjCBridgeRelatedConversions()
[all …]
H A DSemaExpr.cpp2950 QualType DestType; in PerformObjectMemberConversion() local
19332 if (DestType->isArrayType() || DestType->isFunctionType()) { in VisitCallExpr()
19338 << DestType->isFunctionType() << DestType; in VisitCallExpr()
19385 DestType = S.Context.getFunctionType(DestType, ParamTypes, in VisitCallExpr()
19388 DestType = S.Context.getFunctionNoProtoType(DestType, in VisitCallExpr()
19399 DestType = S.Context.getPointerType(DestType); in VisitCallExpr()
19403 DestType = S.Context.getBlockPointerType(DestType); in VisitCallExpr()
19418 if (DestType->isArrayType() || DestType->isFunctionType()) { in VisitObjCMessageExpr()
19420 << DestType->isFunctionType() << DestType; in VisitObjCMessageExpr()
19446 DestType = DestType->castAs<PointerType>()->getPointeeType(); in VisitImplicitCastExpr()
[all …]
H A DSemaOverload.cpp5423 QualType FromRecordType, DestType; in PerformObjectArgumentInitialization() local
5430 DestType = Method->getThisType(); in PerformObjectArgumentInitialization()
5434 DestType = ImplicitParamRecordType; in PerformObjectArgumentInitialization()
5454 Qualifiers ToQs = DestType.getQualifiers(); in PerformObjectArgumentInitialization()
5497 if (!Context.hasSameType(From->getType(), DestType)) { in PerformObjectArgumentInitialization()
5499 QualType PteeTy = DestType->getPointeeType(); in PerformObjectArgumentInitialization()
5506 From = ImpCastExprToType(From, DestType, CK, From->getValueKind()).get(); in PerformObjectArgumentInitialization()
10270 QualType DestType, bool TakingAddress) { in NoteOverloadCandidate() argument
10286 HandleFunctionTypeMismatch(PD, Fn->getType(), DestType); in NoteOverloadCandidate()
10342 void Sema::NoteAllOverloadCandidates(Expr *OverloadedExpr, QualType DestType, in NoteAllOverloadCandidates() argument
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DConversionChecker.cpp47 bool isLossOfPrecision(const ImplicitCastExpr *Cast, QualType DestType,
129 QualType DestType, in isLossOfPrecision() argument
137 if (!DestType->isRealType() || !SubType->isIntegerType()) in isLossOfPrecision()
140 const bool isFloat = DestType->isFloatingType(); in isLossOfPrecision()
149 const llvm::fltSemantics &Sema = AC.getFloatTypeSemantics(DestType); in isLossOfPrecision()
152 RepresentsUntilExp = AC.getIntWidth(DestType); in isLossOfPrecision()
157 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.cpp619 QualType DestType = CE->getType(); in checkPostStmt() local
622 const auto *DestObjectPtrType = DestType->getAs<ObjCObjectPointerType>(); in checkPostStmt()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAddMissingPrototypes.cpp96 if (auto *DestType = dyn_cast<FunctionType>( in runOnModule() local
100 NewType = DestType; in runOnModule()
102 } else if (NewType != DestType) { in runOnModule()
106 LLVM_DEBUG(dbgs() << " " << *DestType << "\n"); in runOnModule()
/freebsd-13.1/contrib/llvm-project/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.cpp1760 QualType DestType; member in __anon98551c250a11::ConstantLValueEmitter
1828 auto destTy = CGM.getTypes().ConvertTypeForMem(DestType); in tryEmit()
1865 return CGM.getNullPointer(destPtrTy, DestType); in tryEmitAbsolute()
2035 QualType DestType) { in tryEmitPrivate() argument
2040 return llvm::UndefValue::get(CGM.getTypes().ConvertType(DestType)); in tryEmitPrivate()
2042 return ConstantLValueEmitter(*this, Value, DestType).tryEmit(); in tryEmitPrivate()
2107 llvm::Type *ResultType = CGM.getTypes().ConvertType(DestType); in tryEmitPrivate()
2119 return ConstStructBuilder::BuildStruct(*this, Value, DestType); in tryEmitPrivate()
2121 const ArrayType *ArrayTy = CGM.getContext().getAsArrayType(DestType); in tryEmitPrivate()
2155 cast<llvm::ArrayType>(CGM.getTypes().ConvertType(DestType)); in tryEmitPrivate()
[all …]
H A DCGStmtOpenMP.cpp5344 QualType SrcType, QualType DestType, in convertToScalarValue() argument
5346 assert(CGF.hasScalarEvaluationKind(DestType) && in convertToScalarValue()
5350 DestType, Loc) in convertToScalarValue()
5352 Val.getComplexVal(), SrcType, DestType, Loc); in convertToScalarValue()
5357 QualType DestType, SourceLocation Loc) { in convertToComplexValue() argument
5358 assert(CGF.getEvaluationKind(DestType) == TEK_Complex && in convertToComplexValue()
5364 DestType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
5373 DestType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
H A DCGAtomic.cpp1047 auto *DestType = T->getPointerElementType()->getPointerTo(DestAS); in EmitAtomicExpr() local
1050 *this, V, AS, LangAS::opencl_generic, DestType, false); in EmitAtomicExpr()
H A DCGBuiltin.cpp704 llvm::Type *DestType = Int8PtrTy; in EmitVAStartEnd() local
705 if (ArgValue->getType() != DestType) in EmitVAStartEnd()
707 Builder.CreateBitCast(ArgValue, DestType, ArgValue->getName().data()); in EmitVAStartEnd()
8055 llvm::Type *DestType) { in ARMMVEVectorReinterpret() argument
8068 V->getType()->getScalarSizeInBits() != DestType->getScalarSizeInBits()) { in ARMMVEVectorReinterpret()
8071 {DestType, V->getType()}), in ARMMVEVectorReinterpret()
8074 return Builder.CreateBitCast(V, DestType); in ARMMVEVectorReinterpret()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp501 Type *DestType = Trunc.getType(); in foldVecTruncToExtElt() local
502 if (!TruncOp->hasOneUse() || !isa<IntegerType>(DestType)) in foldVecTruncToExtElt()
515 unsigned DestWidth = DestType->getPrimitiveSizeInBits(); in foldVecTruncToExtElt()
524 if (VecType->getElementType() != DestType) { in foldVecTruncToExtElt()
525 VecType = FixedVectorType::get(DestType, NumVecElts); in foldVecTruncToExtElt()
1949 Type *DestType = FI.getType(); in foldItoFPtoI() local
1972 return new SExtInst(X, DestType); in foldItoFPtoI()
1973 return new ZExtInst(X, DestType); in foldItoFPtoI()
1976 return new TruncInst(X, DestType); in foldItoFPtoI()
2333 Type *DestType = BitCast.getType(); in canonicalizeBitCastExtElt() local
[all …]
H A DInstCombineVectorOps.cpp2073 Type *DestType = Shuf.getType(); in foldTruncShuffle() local
2076 !match(Shuf.getOperand(1), m_Undef()) || !DestType->isIntOrIntVectorTy()) in foldTruncShuffle()
2084 cast<FixedVectorType>(DestType)->getNumElements() || in foldTruncShuffle()
2085 SrcType->getScalarSizeInBits() % DestType->getScalarSizeInBits() != 0) in foldTruncShuffle()
2094 SrcType->getScalarSizeInBits() / DestType->getScalarSizeInBits(); in foldTruncShuffle()
2105 return new TruncInst(X, DestType); in foldTruncShuffle()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DOverload.h686 QualType DestType, in getNullptrToBool() argument
696 ICS.Standard.setToType(1, DestType); in getNullptrToBool()
697 ICS.Standard.setToType(2, DestType); in getNullptrToBool()
H A DSema.h3730 QualType DestType = QualType(), bool TakingAddress = false);
3734 void NoteAllOverloadCandidates(Expr *E, QualType DestType = QualType(),
6099 void CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType,
9887 QualType DestType, QualType SrcType,
9895 QualType DestType, QualType SrcType,
/freebsd-13.1/contrib/llvm-project/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.cpp2519 << SrcValue << DestType; in HandleOverflow()
2526 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleFloatToIntCast()
2534 return HandleOverflow(Info, E, Value, DestType); in HandleFloatToIntCast()
2611 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleIntToIntCast()
2616 if (DestType->isBooleanType()) in HandleIntToIntCast()
2625 Result = APFloat(Info.Ctx.getFloatTypeSemantics(DestType), 1); in HandleIntToFloatCast()
13179 QualType DestType = E->getType(); in VisitCastExpr() local
13263 Info.Ctx.getIntWidth(DestType), in VisitCastExpr()
13422 QualType DestType = E->getType(); in VisitCastExpr() local
13423 assert(DestType->isFixedPointType() && in VisitCastExpr()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DRangeConstraintManager.cpp881 RangeSet inferAs(SymbolRef Sym, QualType DestType) { in inferAs() argument
890 return infer(DestType); in inferAs()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp1916 LLT DestType = MRI.getType(MI.getOperand(0).getReg()); in applyShiftOfShiftedLogic() local
1923 Builder.buildInstr(Opcode, {DestType}, {Shift1Base, Const}).getReg(0); in applyShiftOfShiftedLogic()
1927 .buildInstr(Opcode, {DestType}, in applyShiftOfShiftedLogic()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp1705 Type *DestType = DestVT.getTypeForEVT(*DAG.getContext()); in EmitStackConvert() local
1706 Align DestAlign = DAG.getDataLayout().getPrefTypeAlign(DestType); in EmitStackConvert()