| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaCast.cpp | 59 : Self(S), SrcExpr(src), DestType(destType), in CastOperation() 68 if (!S.Context.getLangOpts().ObjC && !DestType->isRecordType() && in CastOperation() 69 !DestType->isArrayType()) { in CastOperation() 70 DestType = DestType.getUnqualifiedType(); in CastOperation() 83 QualType DestType; member 147 void checkAddressSpaceCast(QualType SrcType, QualType DestType); 150 Self.CheckCastAlign(SrcExpr.get(), DestType, OpRange); in checkCastAlign() 157 if (Self.CheckObjCConversion(OpRange, DestType, src, CCK) == in checkObjCConversion() 179 if (const auto *DestType = dyn_cast<PointerType>(ToType)) { in CheckNoDeref() local 180 if (!DestType->getPointeeType()->hasAttr(attr::NoDeref)) { in CheckNoDeref() [all …]
|
| H A D | SemaInit.cpp | 3933 QualType DestType, in TryInitializerListConstruction() argument 3937 if (!S.isStdInitializerList(DestType, &E)) in TryInitializerListConstruction() 3958 Sequence.AddStdInitializerListConstructionStep(DestType); in TryInitializerListConstruction() 3983 QualType DestType, in ResolveConstructorOverload() argument 3990 CandidateSet.setDestAS(DestType.getQualifiers().getAddressSpace()); in ResolveConstructorOverload() 4070 ConvTemplate, I.getPair(), ActingDC, Initializer, DestType, in ResolveConstructorOverload() 4075 DestType, CandidateSet, AllowExplicit, in ResolveConstructorOverload() 4099 MultiExprArg Args, QualType DestType, in TryConstructorInitialization() argument 4114 if (!S.isCompleteType(Kind.getLocation(), DestType)) { in TryConstructorInitialization() 4115 Sequence.setIncompleteTypeFailure(DestType); in TryConstructorInitialization() [all …]
|
| H A D | SemaExprObjC.cpp | 4220 QualType DestType, QualType SrcType, in checkObjCBridgeRelatedComponents() argument 4226 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents() 4243 << SrcType << DestType; in checkObjCBridgeRelatedComponents() 4254 << SrcType << DestType; in checkObjCBridgeRelatedComponents() 4269 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents() 4283 << SrcType << DestType << Sel << true; in checkObjCBridgeRelatedComponents() 4294 QualType DestType, QualType SrcType, in CheckObjCBridgeRelatedConversions() argument 4297 ARCConversionTypeClass lhsExprACTC = classifyTypeForARCConversion(DestType); in CheckObjCBridgeRelatedConversions() 4307 if (!checkObjCBridgeRelatedComponents(Loc, DestType, SrcType, RelatedClass, in CheckObjCBridgeRelatedConversions() 4324 << SrcType << DestType << ClassMethod->getSelector() << false in CheckObjCBridgeRelatedConversions() [all …]
|
| H A D | SemaExpr.cpp | 3012 QualType DestType; in PerformObjectMemberConversion() local 3025 DestType = Context.getPointerType(DestRecordType); in PerformObjectMemberConversion() 3029 DestType = DestRecordType; in PerformObjectMemberConversion() 3036 DestType = Method->getThisType(); in PerformObjectMemberConversion() 3037 DestRecordType = DestType->getPointeeType(); in PerformObjectMemberConversion() 3044 DestType = DestRecordType; in PerformObjectMemberConversion() 3065 if (DestType->isDependentType() || FromType->isDependentType()) in PerformObjectMemberConversion() 3131 return ImpCastExprToType(From, DestType, CK_UncheckedDerivedToBase, in PerformObjectMemberConversion() 20534 QualType DestType; member 20537 : S(S), DestType(CastType) {} in RebuildUnknownAnyExpr() [all …]
|
| H A D | SemaOverload.cpp | 5578 QualType FromRecordType, DestType; in PerformObjectArgumentInitialization() local 5585 DestType = Method->getThisType(); in PerformObjectArgumentInitialization() 5589 DestType = ImplicitParamRecordType; in PerformObjectArgumentInitialization() 5609 Qualifiers ToQs = DestType.getQualifiers(); in PerformObjectArgumentInitialization() 5656 if (!Context.hasSameType(From->getType(), DestType)) { in PerformObjectArgumentInitialization() 5658 QualType PteeTy = DestType->getPointeeType(); in PerformObjectArgumentInitialization() 5660 PteeTy.isNull() ? DestType.getAddressSpace() : PteeTy.getAddressSpace(); in PerformObjectArgumentInitialization() 5665 From = ImpCastExprToType(From, DestType, CK, From->getValueKind()).get(); in PerformObjectArgumentInitialization() 10568 QualType DestType, bool TakingAddress) { in NoteOverloadCandidate() argument 10587 HandleFunctionTypeMismatch(PD, Fn->getType(), DestType); in NoteOverloadCandidate() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ConversionChecker.cpp | 47 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 D | NullabilityChecker.cpp | 1091 QualType DestType = CE->getType(); in checkPostStmt() local 1094 if (!DestType->isAnyPointerType()) in checkPostStmt() 1101 Nullability DestNullability = getNullabilityAnnotation(DestType); in checkPostStmt()
|
| H A D | DynamicTypePropagation.cpp | 617 QualType DestType = CE->getType(); in checkPostStmt() local 620 const auto *DestObjectPtrType = DestType->getAs<ObjCObjectPointerType>(); in checkPostStmt()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGExprComplex.cpp | 86 QualType DestType, SourceLocation Loc); 89 QualType DestType, SourceLocation Loc); 447 QualType DestType, in EmitComplexToComplexCast() argument 451 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast() 457 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast() 459 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast() 465 QualType DestType, in EmitScalarToComplexCast() argument 468 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitScalarToComplexCast() 469 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); in EmitScalarToComplexCast()
|
| H A D | CGExprConstant.cpp | 1788 QualType DestType; member in __anon722904280a11::ConstantLValueEmitter 1796 : CGM(emitter.CGM), Emitter(emitter), Value(value), DestType(destType) {} in ConstantLValueEmitter() 1856 auto destTy = CGM.getTypes().ConvertTypeForMem(DestType); in tryEmit() 1893 return CGM.getNullPointer(destPtrTy, DestType); in tryEmitAbsolute() 2071 QualType DestType) { in tryEmitPrivate() argument 2076 return llvm::UndefValue::get(CGM.getTypes().ConvertType(DestType)); in tryEmitPrivate() 2078 return ConstantLValueEmitter(*this, Value, DestType).tryEmit(); in tryEmitPrivate() 2143 llvm::Type *ResultType = CGM.getTypes().ConvertType(DestType); in tryEmitPrivate() 2155 return ConstStructBuilder::BuildStruct(*this, Value, DestType); in tryEmitPrivate() 2157 const ArrayType *ArrayTy = CGM.getContext().getAsArrayType(DestType); in tryEmitPrivate() [all …]
|
| H A D | CGStmtOpenMP.cpp | 5912 QualType SrcType, QualType DestType, in convertToScalarValue() argument 5914 assert(CGF.hasScalarEvaluationKind(DestType) && in convertToScalarValue() 5918 DestType, Loc) in convertToScalarValue() 5920 Val.getComplexVal(), SrcType, DestType, Loc); in convertToScalarValue() 5925 QualType DestType, SourceLocation Loc) { in convertToComplexValue() argument 5926 assert(CGF.getEvaluationKind(DestType) == TEK_Complex && in convertToComplexValue() 5932 DestType->castAs<ComplexType>()->getElementType(); in convertToComplexValue() 5941 DestType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
|
| H A D | CGAtomic.cpp | 1092 auto *DestType = llvm::PointerType::getWithSamePointeeType(T, DestAS); in EmitAtomicExpr() local 1095 *this, V, AS, LangAS::opencl_generic, DestType, false); in EmitAtomicExpr()
|
| H A D | CGBuiltin.cpp | 743 llvm::Type *DestType = Int8PtrTy; in EmitVAStartEnd() local 744 if (ArgValue->getType() != DestType) in EmitVAStartEnd() 746 Builder.CreateBitCast(ArgValue, DestType, ArgValue->getName().data()); in EmitVAStartEnd() 8452 llvm::Type *DestType) { in ARMMVEVectorReinterpret() argument 8465 V->getType()->getScalarSizeInBits() != DestType->getScalarSizeInBits()) { in ARMMVEVectorReinterpret() 8468 {DestType, V->getType()}), in ARMMVEVectorReinterpret() 8471 return Builder.CreateBitCast(V, DestType); in ARMMVEVectorReinterpret()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 532 Type *DestType = Trunc.getType(); in foldVecTruncToExtElt() local 533 if (!TruncOp->hasOneUse() || !isa<IntegerType>(DestType)) in foldVecTruncToExtElt() 546 unsigned DestWidth = DestType->getPrimitiveSizeInBits(); in foldVecTruncToExtElt() 555 if (VecType->getElementType() != DestType) { in foldVecTruncToExtElt() 556 VecType = FixedVectorType::get(DestType, NumVecElts); in foldVecTruncToExtElt() 1978 Type *DestType = FI.getType(); in foldItoFPtoI() local 1993 int OutputSize = (int)DestType->getScalarSizeInBits(); in foldItoFPtoI() 1998 if (DestType->getScalarSizeInBits() > XType->getScalarSizeInBits()) { in foldItoFPtoI() 2001 return new SExtInst(X, DestType); in foldItoFPtoI() 2002 return new ZExtInst(X, DestType); in foldItoFPtoI() [all …]
|
| H A D | InstCombineVectorOps.cpp | 2340 Type *DestType = Shuf.getType(); in foldTruncShuffle() local 2343 !match(Shuf.getOperand(1), m_Undef()) || !DestType->isIntOrIntVectorTy()) in foldTruncShuffle() 2351 cast<FixedVectorType>(DestType)->getNumElements() || in foldTruncShuffle() 2352 SrcType->getScalarSizeInBits() % DestType->getScalarSizeInBits() != 0) in foldTruncShuffle() 2361 SrcType->getScalarSizeInBits() / DestType->getScalarSizeInBits(); in foldTruncShuffle() 2372 return new TruncInst(X, DestType); in foldTruncShuffle()
|
| /openbsd-src/gnu/llvm/clang/include/clang/Sema/ |
| H A D | Overload.h | 715 QualType DestType, in getNullptrToBool() argument 725 ICS.Standard.setToType(1, DestType); in getNullptrToBool() 726 ICS.Standard.setToType(2, DestType); in getNullptrToBool()
|
| H A D | Sema.h | 4070 QualType DestType = QualType(), bool TakingAddress = false); 4074 void NoteAllOverloadCandidates(Expr *E, QualType DestType = QualType(), 6537 void CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType, 10536 QualType DestType, QualType SrcType, 10544 QualType DestType, QualType SrcType,
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | ExprCXX.cpp | 771 QualType DestType = getType(); in isAlwaysNull() local 775 DestType = DestType->castAs<PointerType>()->getPointeeType(); in isAlwaysNull() 778 if (DestType->isVoidType()) in isAlwaysNull() 788 cast<CXXRecordDecl>(DestType->castAs<RecordType>()->getDecl()); in isAlwaysNull()
|
| H A D | ExprConstant.cpp | 2540 const T &SrcValue, QualType DestType) { in HandleOverflow() argument 2542 << SrcValue << DestType; in HandleOverflow() 2548 QualType DestType, APSInt &Result) { in HandleFloatToIntCast() argument 2549 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleFloatToIntCast() 2551 bool DestSigned = DestType->isSignedIntegerOrEnumerationType(); in HandleFloatToIntCast() 2557 return HandleOverflow(Info, E, Value, DestType); in HandleFloatToIntCast() 2616 QualType SrcType, QualType DestType, in HandleFloatToFloatCast() argument 2623 St = Result.convert(Info.Ctx.getFloatTypeSemantics(DestType), RM, &ignored); in HandleFloatToFloatCast() 2628 QualType DestType, QualType SrcType, in HandleIntToIntCast() argument 2630 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleIntToIntCast() [all …]
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CombinerHelper.cpp | 1593 LLT DestType = MRI.getType(MI.getOperand(0).getReg()); in applyShiftOfShiftedLogic() local 1600 Builder.buildInstr(Opcode, {DestType}, {Shift1Base, Const}).getReg(0); in applyShiftOfShiftedLogic() 1611 .buildInstr(Opcode, {DestType}, in applyShiftOfShiftedLogic()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeDAG.cpp | 1743 Type *DestType = DestVT.getTypeForEVT(*DAG.getContext()); in EmitStackConvert() local 1744 Align DestAlign = DAG.getDataLayout().getPrefTypeAlign(DestType); in EmitStackConvert()
|