| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | Casting.h | 133 template <typename To, typename FromTy> 134 struct isa_impl_wrap<To, FromTy, FromTy> { 136 static bool doit(const FromTy &Val) { 137 return isa_impl_cl<To, FromTy>::doit(Val); 185 template <class To, class FromTy> struct cast_retty_wrap<To, FromTy, FromTy> { 211 template <class To, class FromTy> struct cast_convert_val<To, FromTy, FromTy> { 213 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) { 219 template <class To, class FromTy> 220 struct cast_convert_val<To, FromTy *, FromTy *> { 222 static typename cast_retty<To, FromTy *>::ret_type doit(const FromTy *Val) { [all …]
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | SMTConv.h | 263 QualType FromTy, in fromCast() argument 265 if ((FromTy->isIntegralOrEnumerationType() && in fromCast() 271 if (FromTy->isBooleanType()) { in fromCast() 279 return FromTy->isSignedIntegerOrEnumerationType() in fromCast() 299 return FromTy->isSignedIntegerOrEnumerationType() in fromCast() 340 Ctx.getTypeSize(FromTy)); in getCastExpr() 437 QualType FromTy; in getSymExpr() local 533 QualType FromTy; in getRangeExpr() local 535 std::tie(NewFromInt, FromTy) = fixAPSInt(Ctx, From); in getRangeExpr() 546 FromExp, FromTy, /*RetTy=*/nullptr); in getRangeExpr() [all …]
|
| H A D | SymbolManager.h | 282 QualType FromTy; variable 289 : SymExpr(SymbolCastKind), Operand(In), FromTy(From), ToTy(To) { in SymbolCast() 318 Profile(ID, Operand, FromTy, ToTy); in Profile()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMRegisterBankInfo.cpp | 318 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local 319 if (ToTy.getSizeInBits() == 64 && FromTy.getSizeInBits() == 32) in getInstrMapping() 327 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local 328 if (ToTy.getSizeInBits() == 32 && FromTy.getSizeInBits() == 64) in getInstrMapping() 337 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local 338 if ((FromTy.getSizeInBits() == 32 || FromTy.getSizeInBits() == 64) && in getInstrMapping() 341 FromTy.getSizeInBits() == 64 in getInstrMapping() 351 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local 352 if (FromTy.getSizeInBits() == 32 && in getInstrMapping()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | DeclBase.h | 2658 template<class FromTy> 2659 struct cast_convert_val< ::clang::DeclContext, FromTy, FromTy> { 2661 return *FromTy::castToDeclContext(&Val); 2665 template<class FromTy> 2666 struct cast_convert_val< ::clang::DeclContext, FromTy*, FromTy*> { 2668 return FromTy::castToDeclContext(Val); 2672 template<class FromTy> 2673 struct cast_convert_val< const ::clang::DeclContext, FromTy, FromTy> { 2679 template<class FromTy> 2680 struct cast_convert_val< const ::clang::DeclContext, FromTy*, FromTy*> { [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | SemaFixItUtils.h | 51 typedef bool (*TypeComparisonFuncTy) (const CanQualType FromTy,
|
| H A D | Overload.h | 484 void *FromTy; 502 QualType getFromType() const { return QualType::getFromOpaquePtr(FromTy); } in getFromType() 510 void setFromType(QualType T) { FromTy = T.getAsOpaquePtr(); } in setFromType()
|
| H A D | Sema.h | 2085 TypeSourceInfo *GetTypeForDeclaratorCast(Declarator &D, QualType FromTy);
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaFixItUtils.cpp | 51 const QualType FromTy, in tryToFixConversion() argument 57 const CanQualType FromQTy = S.Context.getCanonicalType(FromTy); in tryToFixConversion()
|
| H A D | SemaOverload.cpp | 10566 QualType FromTy = Conv.Bad.getFromType(); in DiagnoseBadConversion() local 10569 if (FromTy == S.Context.OverloadTy) { in DiagnoseBadConversion() 10586 CanQualType CFromTy = S.Context.getCanonicalType(FromTy); in DiagnoseBadConversion() 10683 << (FromExpr ? FromExpr->getSourceRange() : SourceRange()) << FromTy in DiagnoseBadConversion() 10696 QualType TempFromTy = FromTy.getNonReferenceType(); in DiagnoseBadConversion() 10703 << (FromExpr ? FromExpr->getSourceRange() : SourceRange()) << FromTy in DiagnoseBadConversion() 10713 if (const PointerType *FromPtrTy = FromTy->getAs<PointerType>()) { in DiagnoseBadConversion() 10734 if (ToRefTy->getPointeeType().isAtLeastAsQualifiedAs(FromTy) && in DiagnoseBadConversion() 10735 !FromTy->isIncompleteType() && in DiagnoseBadConversion() 10746 << (BaseToDerivedConversion - 1) << FromTy << ToTy << I + 1; in DiagnoseBadConversion() [all …]
|
| H A D | SemaType.cpp | 5957 TypeSourceInfo *Sema::GetTypeForDeclaratorCast(Declarator &D, QualType FromTy) { in GetTypeForDeclaratorCast() argument 5964 Qualifiers::ObjCLifetime ownership = Context.getInnerObjCOwnership(FromTy); in GetTypeForDeclaratorCast()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | SValBuilder.cpp | 554 QualType FromTy) { in shouldBeModeledWithNoOp() argument 555 while (Context.UnwrapSimilarTypes(ToTy, FromTy)) { in shouldBeModeledWithNoOp() 558 FromTy = Context.getUnqualifiedArrayType(FromTy, Quals2); in shouldBeModeledWithNoOp() 577 if (ToTy != FromTy) in shouldBeModeledWithNoOp()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | BasicTTIImpl.h | 1981 Type *FromTy = Tys[0]; in getTypeBasedIntrinsicInstrCost() local 1985 IntrinsicCostAttributes Attrs1(Intrinsic::minnum, FromTy, in getTypeBasedIntrinsicInstrCost() 1986 {FromTy, FromTy}); in getTypeBasedIntrinsicInstrCost() 1988 IntrinsicCostAttributes Attrs2(Intrinsic::maxnum, FromTy, in getTypeBasedIntrinsicInstrCost() 1989 {FromTy, FromTy}); in getTypeBasedIntrinsicInstrCost() 1992 IsSigned ? Instruction::FPToSI : Instruction::FPToUI, RetTy, FromTy, in getTypeBasedIntrinsicInstrCost() 1997 BinaryOperator::FCmp, FromTy, CondTy, CmpInst::FCMP_UNO, CostKind); in getTypeBasedIntrinsicInstrCost()
|
| H A D | TargetLowering.h | 2672 virtual bool isTruncateFree(Type *FromTy, Type *ToTy) const { in isTruncateFree() argument 2681 virtual bool allowTruncateForTailCall(Type *FromTy, Type *ToTy) const { in allowTruncateForTailCall() argument 2686 virtual bool isTruncateFree(LLT FromTy, LLT ToTy, const DataLayout &DL, in isTruncateFree() argument 2688 return isTruncateFree(getApproximateEVTForLLT(FromTy, DL, Ctx), in isTruncateFree() 2761 virtual bool isZExtFree(Type *FromTy, Type *ToTy) const { in isZExtFree() argument 2765 virtual bool isZExtFree(EVT FromTy, EVT ToTy) const { return false; } in isZExtFree() argument 2766 virtual bool isZExtFree(LLT FromTy, LLT ToTy, const DataLayout &DL, in isZExtFree() argument 2768 return isZExtFree(getApproximateEVTForLLT(FromTy, DL, Ctx), in isZExtFree() 2774 virtual bool isSExtCheaperThanZExt(EVT FromTy, EVT ToTy) const { in isSExtCheaperThanZExt() argument
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 2026 static bool isBitCastSemanticsPreserving(const DataLayout &DL, Type *FromTy, in isBitCastSemanticsPreserving() argument 2029 if (FromTy == ToTy) in isBitCastSemanticsPreserving() 2033 if (FromTy->isIntOrPtrTy() && ToTy->isIntOrPtrTy()) { in isBitCastSemanticsPreserving() 2034 bool SameSize = DL.getTypeSizeInBits(FromTy) == DL.getTypeSizeInBits(ToTy); in isBitCastSemanticsPreserving() 2035 bool LosslessConversion = !DL.isNonIntegralPointerType(FromTy) && in isBitCastSemanticsPreserving() 2052 Type *FromTy = From.getType(); in replaceAllDbgUsesWith() local 2062 if (isBitCastSemanticsPreserving(DL, FromTy, ToTy)) in replaceAllDbgUsesWith() 2067 if (FromTy->isIntegerTy() && ToTy->isIntegerTy()) { in replaceAllDbgUsesWith() 2068 uint64_t FromBits = FromTy->getPrimitiveSizeInBits(); in replaceAllDbgUsesWith()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonVectorCombine.cpp | 98 Value *rescale(IRBuilder<> &Builder, Value *Mask, Type *FromTy, 1166 Type *FromTy, Type *ToTy) const -> Value * { in rescale() argument 1172 Type *FromSTy = FromTy->getScalarType(); in rescale()
|
| H A D | HexagonISelLoweringHVX.cpp | 73 auto setPromoteTo = [this] (unsigned Opc, MVT FromTy, MVT ToTy) { in initializeHVXLowering() argument 74 setOperationAction(Opc, FromTy, Promote); in initializeHVXLowering() 75 AddPromotedToType(Opc, FromTy, ToTy); in initializeHVXLowering()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | DIBuilder.h | 245 DIDerivedType *createQualifiedType(unsigned Tag, DIType *FromTy);
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DwarfUnit.cpp | 764 const DIType *FromTy = DTy->getBaseType(); in constructTypeDIE() local 765 if (FromTy) in constructTypeDIE() 766 addType(Buffer, FromTy); in constructTypeDIE()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | DIBuilder.cpp | 311 DIDerivedType *DIBuilder::createQualifiedType(unsigned Tag, DIType *FromTy) { in createQualifiedType() argument 312 return DIDerivedType::get(VMContext, Tag, "", nullptr, 0, nullptr, FromTy, 0, in createQualifiedType()
|
| /llvm-project-15.0.7/clang/unittests/StaticAnalyzer/ |
| H A D | RangeSetTest.cpp | 274 static constexpr APSIntType FromTy = APSIntTy<From>; in checkCastTo() local 276 this->checkCastToImpl(from(What, FromTy), ToTy, from(Expected, ToTy)); in checkCastTo()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGDebugInfo.cpp | 950 auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit); in CreateQualifiedType() local 954 return DBuilder.createQualifiedType(Tag, FromTy); in CreateQualifiedType() 971 auto *FromTy = in CreateQualifiedType() local 978 return DBuilder.createQualifiedType(Tag, FromTy); in CreateQualifiedType() 3168 auto *FromTy = getOrCreateType(Ty->getValueType(), U); in CreateType() local 3169 return DBuilder.createQualifiedType(llvm::dwarf::DW_TAG_atomic_type, FromTy); in CreateType()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ASTImporter.cpp | 3288 QualType FromTy = D->getType(); in hasAutoReturnTypeDeclaredInside() local 3289 const auto *FromFPT = FromTy->getAs<FunctionProtoType>(); in hasAutoReturnTypeDeclaredInside() 3434 QualType FromTy = D->getType(); in VisitFunctionDecl() local 3444 if (const auto *FromFPT = FromTy->getAs<FunctionProtoType>()) { in VisitFunctionDecl() 3467 FromTy = Importer.getFromContext().getFunctionType( in VisitFunctionDecl() 3470 FromTy, D->getBeginLoc()); in VisitFunctionDecl() 3474 auto T = importChecked(Err, FromTy); in VisitFunctionDecl()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalizerHelper.cpp | 843 Type *FromTy = getFloatTypeForLLT(Ctx, MRI.getType(MI.getOperand(1).getReg())); in libcall() local 845 if (!FromTy || !ToTy) in libcall() 847 LegalizeResult Status = conversionLibcall(MI, MIRBuilder, ToTy, FromTy ); in libcall()
|