Home
last modified time | relevance | path

Searched refs:FromTy (Results 1 – 24 of 24) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DCasting.h133 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 …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSMTConv.h263 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
535 QualType FromTy; in getRangeExpr() local
537 std::tie(NewFromInt, FromTy) = fixAPSInt(Ctx, From); in getRangeExpr()
548 FromExp, FromTy, /*RetTy=*/nullptr); in getRangeExpr()
[all …]
H A DSymbolManager.h283 QualType FromTy; variable
290 : SymExpr(SymbolCastKind), Operand(In), FromTy(From), ToTy(To) { in SymbolCast()
319 Profile(ID, Operand, FromTy, ToTy); in Profile()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMRegisterBankInfo.cpp320 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local
321 if (ToTy.getSizeInBits() == 64 && FromTy.getSizeInBits() == 32) in getInstrMapping()
329 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local
330 if (ToTy.getSizeInBits() == 32 && FromTy.getSizeInBits() == 64) in getInstrMapping()
339 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local
340 if ((FromTy.getSizeInBits() == 32 || FromTy.getSizeInBits() == 64) && in getInstrMapping()
343 FromTy.getSizeInBits() == 64 in getInstrMapping()
353 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local
354 if (FromTy.getSizeInBits() == 32 && in getInstrMapping()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DDeclBase.h2822 template<class FromTy>
2823 struct cast_convert_val< ::clang::DeclContext, FromTy, FromTy> {
2825 return *FromTy::castToDeclContext(&Val);
2829 template<class FromTy>
2830 struct cast_convert_val< ::clang::DeclContext, FromTy*, FromTy*> {
2832 return FromTy::castToDeclContext(Val);
2836 template<class FromTy>
2837 struct cast_convert_val< const ::clang::DeclContext, FromTy, FromTy> {
2843 template<class FromTy>
2844 struct cast_convert_val< const ::clang::DeclContext, FromTy*, FromTy*> {
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaFixItUtils.h51 typedef bool (*TypeComparisonFuncTy) (const CanQualType FromTy,
H A DOverload.h486 void *FromTy;
504 QualType getFromType() const { return QualType::getFromOpaquePtr(FromTy); } in getFromType()
512 void setFromType(QualType T) { FromTy = T.getAsOpaquePtr(); } in setFromType()
H A DSema.h2167 TypeSourceInfo *GetTypeForDeclaratorCast(Declarator &D, QualType FromTy);
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaFixItUtils.cpp51 const QualType FromTy, in tryToFixConversion() argument
57 const CanQualType FromQTy = S.Context.getCanonicalType(FromTy); in tryToFixConversion()
H A DSemaOverload.cpp11132 QualType FromTy = Conv.Bad.getFromType(); in DiagnoseBadConversion() local
11137 if (FromTy == S.Context.OverloadTy) { in DiagnoseBadConversion()
11153 CanQualType CFromTy = S.Context.getCanonicalType(FromTy); in DiagnoseBadConversion()
11188 << ToParamRange << FromTy << FromQs.getObjCLifetime() in DiagnoseBadConversion()
11197 << ToParamRange << FromTy << FromQs.getObjCGCAttr() in DiagnoseBadConversion()
11209 << FromTy << (CVR - 1); in DiagnoseBadConversion()
11213 << ToParamRange << FromTy << (CVR - 1) << I + 1; in DiagnoseBadConversion()
11247 QualType TempFromTy = FromTy.getNonReferenceType(); in DiagnoseBadConversion()
11263 if (const PointerType *FromPtrTy = FromTy->getAs<PointerType>()) { in DiagnoseBadConversion()
11284 if (ToRefTy->getPointeeType().isAtLeastAsQualifiedAs(FromTy) && in DiagnoseBadConversion()
[all …]
H A DSemaType.cpp6186 TypeSourceInfo *Sema::GetTypeForDeclaratorCast(Declarator &D, QualType FromTy) { in GetTypeForDeclaratorCast() argument
6193 Qualifiers::ObjCLifetime ownership = Context.getInnerObjCOwnership(FromTy); in GetTypeForDeclaratorCast()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSValBuilder.cpp563 QualType FromTy) { in shouldBeModeledWithNoOp() argument
564 while (Context.UnwrapSimilarTypes(ToTy, FromTy)) { in shouldBeModeledWithNoOp()
567 FromTy = Context.getUnqualifiedArrayType(FromTy, Quals2); in shouldBeModeledWithNoOp()
586 if (ToTy != FromTy) in shouldBeModeledWithNoOp()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h2198 Type *FromTy = Tys[0]; in getTypeBasedIntrinsicInstrCost() local
2202 IntrinsicCostAttributes Attrs1(Intrinsic::minnum, FromTy, in getTypeBasedIntrinsicInstrCost()
2203 {FromTy, FromTy}); in getTypeBasedIntrinsicInstrCost()
2205 IntrinsicCostAttributes Attrs2(Intrinsic::maxnum, FromTy, in getTypeBasedIntrinsicInstrCost()
2206 {FromTy, FromTy}); in getTypeBasedIntrinsicInstrCost()
2209 IsSigned ? Instruction::FPToSI : Instruction::FPToUI, RetTy, FromTy, in getTypeBasedIntrinsicInstrCost()
2214 BinaryOperator::FCmp, FromTy, CondTy, CmpInst::FCMP_UNO, CostKind); in getTypeBasedIntrinsicInstrCost()
H A DTargetLowering.h2838 virtual bool isTruncateFree(Type *FromTy, Type *ToTy) const { in isTruncateFree() argument
2847 virtual bool allowTruncateForTailCall(Type *FromTy, Type *ToTy) const { in allowTruncateForTailCall() argument
2852 virtual bool isTruncateFree(LLT FromTy, LLT ToTy, const DataLayout &DL, in isTruncateFree() argument
2854 return isTruncateFree(getApproximateEVTForLLT(FromTy, DL, Ctx), in isTruncateFree()
2933 virtual bool isZExtFree(Type *FromTy, Type *ToTy) const { in isZExtFree() argument
2937 virtual bool isZExtFree(EVT FromTy, EVT ToTy) const { return false; } in isZExtFree() argument
2938 virtual bool isZExtFree(LLT FromTy, LLT ToTy, const DataLayout &DL, in isZExtFree() argument
2940 return isZExtFree(getApproximateEVTForLLT(FromTy, DL, Ctx), in isZExtFree()
2953 virtual bool isSExtCheaperThanZExt(EVT FromTy, EVT ToTy) const { in isSExtCheaperThanZExt() argument
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp2675 static bool isBitCastSemanticsPreserving(const DataLayout &DL, Type *FromTy, in isBitCastSemanticsPreserving() argument
2678 if (FromTy == ToTy) in isBitCastSemanticsPreserving()
2682 if (FromTy->isIntOrPtrTy() && ToTy->isIntOrPtrTy()) { in isBitCastSemanticsPreserving()
2683 bool SameSize = DL.getTypeSizeInBits(FromTy) == DL.getTypeSizeInBits(ToTy); in isBitCastSemanticsPreserving()
2684 bool LosslessConversion = !DL.isNonIntegralPointerType(FromTy) && in isBitCastSemanticsPreserving()
2701 Type *FromTy = From.getType(); in replaceAllDbgUsesWith() local
2714 if (isBitCastSemanticsPreserving(DL, FromTy, ToTy)) in replaceAllDbgUsesWith()
2719 if (FromTy->isIntegerTy() && ToTy->isIntegerTy()) { in replaceAllDbgUsesWith()
2720 uint64_t FromBits = FromTy->getPrimitiveSizeInBits(); in replaceAllDbgUsesWith()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DDIBuilder.h250 DIDerivedType *createQualifiedType(unsigned Tag, DIType *FromTy);
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfUnit.cpp764 const DIType *FromTy = DTy->getBaseType(); in constructTypeDIE() local
765 if (FromTy) in constructTypeDIE()
766 addType(Buffer, FromTy); in constructTypeDIE()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DDIBuilder.cpp297 DIDerivedType *DIBuilder::createQualifiedType(unsigned Tag, DIType *FromTy) { in createQualifiedType() argument
298 return DIDerivedType::get(VMContext, Tag, "", nullptr, 0, nullptr, FromTy, 0, in createQualifiedType()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDebugInfo.cpp1003 auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit); in CreateQualifiedType() local
1007 return DBuilder.createQualifiedType(Tag, FromTy); in CreateQualifiedType()
1024 auto *FromTy = in CreateQualifiedType() local
1031 return DBuilder.createQualifiedType(Tag, FromTy); in CreateQualifiedType()
3330 auto *FromTy = getOrCreateType(Ty->getValueType(), U); in CreateType() local
3331 return DBuilder.createQualifiedType(llvm::dwarf::DW_TAG_atomic_type, FromTy); in CreateType()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp132 Value *rescale(IRBuilderBase &Builder, Value *Mask, Type *FromTy,
2458 Type *FromTy, Type *ToTy) const -> Value * { in rescale() argument
2464 Type *FromSTy = FromTy->getScalarType(); in rescale()
H A DHexagonISelLoweringHVX.cpp102 auto setPromoteTo = [this] (unsigned Opc, MVT FromTy, MVT ToTy) { in initializeHVXLowering() argument
103 setOperationAction(Opc, FromTy, Promote); in initializeHVXLowering()
104 AddPromotedToType(Opc, FromTy, ToTy); in initializeHVXLowering()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DASTImporter.cpp3610 QualType FromTy = D->getType(); in hasAutoReturnTypeDeclaredInside() local
3611 const auto *FromFPT = FromTy->getAs<FunctionProtoType>(); in hasAutoReturnTypeDeclaredInside()
3754 QualType FromTy = D->getType(); in VisitFunctionDecl() local
3764 if (const auto *FromFPT = FromTy->getAs<FunctionProtoType>()) { in VisitFunctionDecl()
3787 FromTy = Importer.getFromContext().getFunctionType( in VisitFunctionDecl()
3790 FromTy, D->getBeginLoc()); in VisitFunctionDecl()
3794 auto T = importChecked(Err, FromTy); in VisitFunctionDecl()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp2441 Type *FromTy = I->getOperand(0)->getType(); in isKnownNonZeroFromOperator() local
2442 if ((FromTy->isIntOrIntVectorTy() || FromTy->isPtrOrPtrVectorTy()) && in isKnownNonZeroFromOperator()
2443 (BitWidth % getBitWidth(FromTy->getScalarType(), Q.DL)) == 0) in isKnownNonZeroFromOperator()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp1085 Type *FromTy = getFloatTypeForLLT(Ctx, MRI.getType(MI.getOperand(1).getReg())); in libcall() local
1087 if (!FromTy || !ToTy) in libcall()
1090 conversionLibcall(MI, MIRBuilder, ToTy, FromTy, LocObserver); in libcall()