| /freebsd/contrib/llvm-project/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> { 187 using ret_type = typename cast_retty_impl<To, FromTy>::ret_type; 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) { 214 return *(std::remove_reference_t<typename cast_retty<To, FromTy>::ret_type> 215 *)&const_cast<FromTy &>(Val); [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | SMTConv.h | 265 QualType FromTy, in fromCast() argument 267 if ((FromTy->isIntegralOrEnumerationType() && in fromCast() 269 (FromTy->isAnyPointerType() ^ ToTy->isAnyPointerType()) || in fromCast() 270 (FromTy->isBlockPointerType() ^ ToTy->isBlockPointerType()) || in fromCast() 271 (FromTy->isReferenceType() ^ ToTy->isReferenceType())) { in fromCast() 273 if (FromTy->isBooleanType()) { in fromCast() 281 return FromTy->isSignedIntegerOrEnumerationType() in fromCast() 292 if (FromTy->isRealFloatingType() && ToTy->isRealFloatingType()) { in fromCast() 299 if (FromTy->isIntegralOrEnumerationType() && ToTy->isRealFloatingType()) { in fromCast() 301 return FromTy->isSignedIntegerOrEnumerationType() in fromCast() [all …]
|
| H A D | SymbolManager.h | 291 QualType FromTy; variable 298 : SymExpr(ClassKind, Sym), Operand(In), FromTy(From), ToTy(To) { in SymbolCast() 328 Profile(ID, Operand, FromTy, ToTy); in Profile()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMRegisterBankInfo.cpp | 277 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local 278 if (ToTy.getSizeInBits() == 64 && FromTy.getSizeInBits() == 32) in getInstrMapping() 286 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local 287 if (ToTy.getSizeInBits() == 32 && FromTy.getSizeInBits() == 64) in getInstrMapping() 296 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local 297 if ((FromTy.getSizeInBits() == 32 || FromTy.getSizeInBits() == 64) && in getInstrMapping() 300 FromTy.getSizeInBits() == 64 in getInstrMapping() 310 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local 311 if (FromTy.getSizeInBits() == 32 && in getInstrMapping()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVLegalizePointerCast.cpp | 114 Type *FromTy = GR->findDeducedElementType(OriginalOperand); in transformLoad() local 118 auto *SAT = dyn_cast<ArrayType>(FromTy); in transformLoad() 119 auto *SVT = dyn_cast<FixedVectorType>(FromTy); in transformLoad() 120 auto *SST = dyn_cast<StructType>(FromTy); in transformLoad() 253 Type *FromTy = Src->getType(); in transformStore() local 255 auto *S_VT = dyn_cast<FixedVectorType>(FromTy); in transformStore() 260 if (D_ST && isTypeFirstElementAggregate(FromTy, D_ST)) in transformStore() 264 else if (D_VT && !S_VT && FromTy == D_VT->getElementType()) in transformStore()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | DeclBase.h | 2871 template<class FromTy> 2872 struct cast_convert_val< ::clang::DeclContext, FromTy, FromTy> { 2873 static ::clang::DeclContext &doit(const FromTy &Val) { 2874 return *FromTy::castToDeclContext(&Val); 2878 template<class FromTy> 2879 struct cast_convert_val< ::clang::DeclContext, FromTy*, FromTy*> { 2880 static ::clang::DeclContext *doit(const FromTy *Val) { 2881 return FromTy::castToDeclContext(Val); 2885 template<class FromTy> 2886 struct cast_convert_val< const ::clang::DeclContext, FromTy, FromTy> { [all …]
|
| H A D | DeclID.h | 225 template <class FromTy, class ToTy> 227 : public llvm::iterator_adaptor_base<DeclIDIterator<FromTy, ToTy>, 228 const FromTy *, 233 DeclIDIterator(const FromTy *ID)
|
| /freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/ |
| H A D | API.h | 1526 template <typename FromTy, 1527 bool IsKnownSubType = std::is_base_of_v<RecordContext, FromTy>> 1529 static_assert(std::is_base_of_v<APIRecord, FromTy>, 1532 static bool isPossible(FromTy *From) { return RecordContext::classof(From); } in isPossible() 1534 static RecordContext *doCast(FromTy *From) { in doCast() 1540 template <typename FromTy> struct ToRecordContextCastInfoWrapper<FromTy, true> { 1541 static_assert(std::is_base_of_v<APIRecord, FromTy>, 1543 static bool isPossible(const FromTy *From) { return true; } 1544 static RecordContext *doCast(FromTy *From) { 1587 template <typename FromTy> [all …]
|
| /freebsd/contrib/llvm-project/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 | 11838 QualType FromTy = Conv.Bad.getFromType(); in DiagnoseBadConversion() local 11851 if (FromTy == S.Context.OverloadTy) { in DiagnoseBadConversion() 11867 CanQualType CFromTy = S.Context.getCanonicalType(FromTy); in DiagnoseBadConversion() 11902 << ToParamRange << FromTy << FromQs.getObjCLifetime() in DiagnoseBadConversion() 11911 << ToParamRange << FromTy << FromQs.getObjCGCAttr() in DiagnoseBadConversion() 11920 << FromTy << !!FromQs.getPointerAuth() in DiagnoseBadConversion() 11934 << FromTy << (CVR - 1); in DiagnoseBadConversion() 11938 << ToParamRange << FromTy << (CVR - 1) << I + 1; in DiagnoseBadConversion() 11960 << ToParamRange << FromTy << ToTy << (unsigned)isObjectArgument << I + 1 in DiagnoseBadConversion() 11972 QualType TempFromTy = FromTy.getNonReferenceType(); in DiagnoseBadConversion() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | SemaFixItUtils.h | 51 typedef bool (*TypeComparisonFuncTy) (const CanQualType FromTy,
|
| H A D | Overload.h | 581 void *FromTy; 599 QualType getFromType() const { return QualType::getFromOpaquePtr(FromTy); } in getFromType() 607 void setFromType(QualType T) { FromTy = T.getAsOpaquePtr(); } in setFromType()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CombinerHelperCasts.cpp | 185 bool CombinerHelper::isCastFree(unsigned Opcode, LLT ToTy, LLT FromTy) const { in isCastFree() 192 return TLI.isZExtFree(FromTy, ToTy, Ctx); in isCastFree() 194 return TLI.isTruncateFree(FromTy, ToTy, Ctx); in isCastFree()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | SValBuilder.cpp | 564 QualType FromTy) { in shouldBeModeledWithNoOp() argument 565 while (Context.UnwrapSimilarTypes(ToTy, FromTy)) { in shouldBeModeledWithNoOp() 568 FromTy = Context.getUnqualifiedArrayType(FromTy, Quals2); in shouldBeModeledWithNoOp() 587 if (ToTy != FromTy) in shouldBeModeledWithNoOp()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | BasicTTIImpl.h | 2826 Type *FromTy = Tys[0]; in getTypeBasedIntrinsicInstrCost() local 2830 IntrinsicCostAttributes Attrs1(Intrinsic::minnum, FromTy, in getTypeBasedIntrinsicInstrCost() 2831 {FromTy, FromTy}); in getTypeBasedIntrinsicInstrCost() 2833 IntrinsicCostAttributes Attrs2(Intrinsic::maxnum, FromTy, in getTypeBasedIntrinsicInstrCost() 2834 {FromTy, FromTy}); in getTypeBasedIntrinsicInstrCost() 2837 IsSigned ? Instruction::FPToSI : Instruction::FPToUI, RetTy, FromTy, in getTypeBasedIntrinsicInstrCost() 2842 BinaryOperator::FCmp, FromTy, CondTy, CmpInst::FCMP_UNO, CostKind); in getTypeBasedIntrinsicInstrCost()
|
| H A D | TargetLowering.h | 3039 virtual bool isTruncateFree(Type *FromTy, Type *ToTy) const { in isTruncateFree() argument 3048 virtual bool allowTruncateForTailCall(Type *FromTy, Type *ToTy) const { in allowTruncateForTailCall() argument 3053 virtual bool isTruncateFree(LLT FromTy, LLT ToTy, LLVMContext &Ctx) const { in isTruncateFree() argument 3054 return isTruncateFree(getApproximateEVTForLLT(FromTy, Ctx), in isTruncateFree() 3133 virtual bool isZExtFree(Type *FromTy, Type *ToTy) const { in isZExtFree() argument 3137 virtual bool isZExtFree(EVT FromTy, EVT ToTy) const { return false; } in isZExtFree() argument 3138 virtual bool isZExtFree(LLT FromTy, LLT ToTy, LLVMContext &Ctx) const { in isZExtFree() argument 3139 return isZExtFree(getApproximateEVTForLLT(FromTy, Ctx), in isZExtFree() 3152 virtual bool isSExtCheaperThanZExt(EVT FromTy, EVT ToTy) const { in isSExtCheaperThanZExt() argument
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 2744 static bool isBitCastSemanticsPreserving(const DataLayout &DL, Type *FromTy, in isBitCastSemanticsPreserving() argument 2747 if (FromTy == ToTy) in isBitCastSemanticsPreserving() 2751 if (FromTy->isIntOrPtrTy() && ToTy->isIntOrPtrTy()) { in isBitCastSemanticsPreserving() 2752 bool SameSize = DL.getTypeSizeInBits(FromTy) == DL.getTypeSizeInBits(ToTy); in isBitCastSemanticsPreserving() 2753 bool LosslessConversion = !DL.isNonIntegralPointerType(FromTy) && in isBitCastSemanticsPreserving() 2770 Type *FromTy = From.getType(); in replaceAllDbgUsesWith() local 2783 if (isBitCastSemanticsPreserving(DL, FromTy, ToTy)) in replaceAllDbgUsesWith() 2788 if (FromTy->isIntegerTy() && ToTy->isIntegerTy()) { in replaceAllDbgUsesWith() 2789 uint64_t FromBits = FromTy->getPrimitiveSizeInBits(); in replaceAllDbgUsesWith()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | DIBuilder.cpp | 327 DIDerivedType *DIBuilder::createQualifiedType(unsigned Tag, DIType *FromTy) { in createQualifiedType() argument 328 return DIDerivedType::get(VMContext, Tag, "", nullptr, 0, nullptr, FromTy, in createQualifiedType() 334 DIType *FromTy, unsigned Key, bool IsAddressDiscriminated, in createPtrAuthQualifiedType() argument 339 FromTy, (uint64_t)0, 0, (uint64_t)0, std::nullopt, in createPtrAuthQualifiedType()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | DIBuilder.h | 282 LLVM_ABI DIDerivedType *createQualifiedType(unsigned Tag, DIType *FromTy); 299 createPtrAuthQualifiedType(DIType *FromTy, unsigned Key,
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGCall.cpp | 1484 llvm::ScalableVectorType *FromTy, llvm::Value *V, in CoerceScalableToFixed() argument 1488 if (FromTy->getElementType()->isIntegerTy(1) && in CoerceScalableToFixed() 1490 if (!FromTy->getElementCount().isKnownMultipleOf(8)) { in CoerceScalableToFixed() 1491 FromTy = llvm::ScalableVectorType::get( in CoerceScalableToFixed() 1492 FromTy->getElementType(), in CoerceScalableToFixed() 1493 llvm::alignTo<8>(FromTy->getElementCount().getKnownMinValue())); in CoerceScalableToFixed() 1494 llvm::Value *ZeroVec = llvm::Constant::getNullValue(FromTy); in CoerceScalableToFixed() 1495 V = CGF.Builder.CreateInsertVector(FromTy, ZeroVec, V, uint64_t(0)); in CoerceScalableToFixed() 1497 FromTy = llvm::ScalableVectorType::get( in CoerceScalableToFixed() 1499 FromTy->getElementCount().getKnownMinValue() / 8); in CoerceScalableToFixed() [all …]
|
| H A D | CGDebugInfo.cpp | 1187 llvm::DIType *FromTy = getOrCreateType(QualType(T, 0), Unit); in CreateQualifiedType() local 1188 return DBuilder.createPtrAuthQualifiedType(FromTy, Key, IsDiscr, in CreateQualifiedType() 1197 auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit); in CreateQualifiedType() local 1201 return DBuilder.createQualifiedType(Tag, FromTy); in CreateQualifiedType() 1218 auto *FromTy = in CreateQualifiedType() local 1225 return DBuilder.createQualifiedType(Tag, FromTy); in CreateQualifiedType() 3681 auto *FromTy = getOrCreateType(Ty->getValueType(), U); in CreateType() local 3682 return DBuilder.createQualifiedType(llvm::dwarf::DW_TAG_atomic_type, FromTy); in CreateType()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DwarfUnit.cpp | 841 const DIType *FromTy = DTy->getBaseType(); in constructTypeDIE() local 842 if (FromTy) in constructTypeDIE() 843 addType(Buffer, FromTy); in constructTypeDIE()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | CombinerHelper.h | 1120 bool isCastFree(unsigned Opcode, LLT ToTy, LLT FromTy) const;
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonVectorCombine.cpp | 133 Value *rescale(IRBuilderBase &Builder, Value *Mask, Type *FromTy, 2459 Type *FromTy, Type *ToTy) const -> Value * { in rescale() argument 2465 Type *FromSTy = FromTy->getScalarType(); in rescale()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ASTImporter.cpp | 3939 QualType FromTy = D->getType(); in hasReturnTypeDeclaredInside() local 3940 const auto *FromFPT = FromTy->getAs<FunctionProtoType>(); in hasReturnTypeDeclaredInside() 4090 QualType FromTy = D->getType(); in VisitFunctionDecl() local 4100 if (const auto *FromFPT = FromTy->getAs<FunctionProtoType>()) { in VisitFunctionDecl() 4123 FromTy = Importer.getFromContext().getFunctionType( in VisitFunctionDecl() 4126 FromTy, D->getBeginLoc()); in VisitFunctionDecl() 4130 auto T = importChecked(Err, FromTy); in VisitFunctionDecl()
|