Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSMTConv.h263 QualType FromTy, in fromCast() argument
265 if ((FromTy->isIntegralOrEnumerationType() && in fromCast()
267 (FromTy->isAnyPointerType() ^ ToTy->isAnyPointerType()) || in fromCast()
268 (FromTy->isBlockPointerType() ^ ToTy->isBlockPointerType()) || in fromCast()
269 (FromTy->isReferenceType() ^ ToTy->isReferenceType())) { in fromCast()
271 if (FromTy->isBooleanType()) { in fromCast()
279 return FromTy->isSignedIntegerOrEnumerationType() in fromCast()
290 if (FromTy->isRealFloatingType() && ToTy->isRealFloatingType()) { in fromCast()
297 if (FromTy->isIntegralOrEnumerationType() && ToTy->isRealFloatingType()) { in fromCast()
299 return FromTy->isSignedIntegerOrEnumerationType() in fromCast()
[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/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> {
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/llvm/lib/Target/ARM/
H A DARMRegisterBankInfo.cpp315 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local
316 if (ToTy.getSizeInBits() == 64 && FromTy.getSizeInBits() == 32) in getInstrMapping()
324 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local
325 if (ToTy.getSizeInBits() == 32 && FromTy.getSizeInBits() == 64) in getInstrMapping()
334 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local
335 if ((FromTy.getSizeInBits() == 32 || FromTy.getSizeInBits() == 64) && in getInstrMapping()
338 FromTy.getSizeInBits() == 64 in getInstrMapping()
348 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local
349 if (FromTy.getSizeInBits() == 32 && in getInstrMapping()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclID.h232 template <class FromTy, class ToTy>
234 : public llvm::iterator_adaptor_base<DeclIDIterator<FromTy, ToTy>,
235 const FromTy *,
240 DeclIDIterator(const FromTy *ID) in DeclIDIterator()
H A DDeclBase.h2840 template<class FromTy>
2841 struct cast_convert_val< ::clang::DeclContext, FromTy, FromTy> {
2842 static ::clang::DeclContext &doit(const FromTy &Val) {
2843 return *FromTy::castToDeclContext(&Val);
2847 template<class FromTy>
2848 struct cast_convert_val< ::clang::DeclContext, FromTy*, FromTy*> {
2849 static ::clang::DeclContext *doit(const FromTy *Val) {
2850 return FromTy::castToDeclContext(Val);
2854 template<class FromTy>
2855 struct cast_convert_val< const ::clang::DeclContext, FromTy, FromTy> {
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/
H A DAPI.h1495 template <typename FromTy,
1496 bool IsKnownSubType = std::is_base_of_v<RecordContext, FromTy>>
1498 static_assert(std::is_base_of_v<APIRecord, FromTy>,
1501 static bool isPossible(FromTy *From) { return RecordContext::classof(From); } in isPossible()
1503 static RecordContext *doCast(FromTy *From) { in doCast()
1509 template <typename FromTy> struct ToRecordContextCastInfoWrapper<FromTy, true> {
1510 static_assert(std::is_base_of_v<APIRecord, FromTy>,
1512 static bool isPossible(const FromTy *From) { return true; }
1513 static RecordContext *doCast(FromTy *From) {
1556 template <typename FromTy>
[all …]
/freebsd/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.cpp11144 QualType FromTy = Conv.Bad.getFromType(); in DiagnoseBadConversion() local
11157 if (FromTy == S.Context.OverloadTy) { in DiagnoseBadConversion()
11173 CanQualType CFromTy = S.Context.getCanonicalType(FromTy); in DiagnoseBadConversion()
11208 << ToParamRange << FromTy << FromQs.getObjCLifetime() in DiagnoseBadConversion()
11217 << ToParamRange << FromTy << FromQs.getObjCGCAttr() in DiagnoseBadConversion()
11229 << FromTy << (CVR - 1); in DiagnoseBadConversion()
11233 << ToParamRange << FromTy << (CVR - 1) << I + 1; in DiagnoseBadConversion()
11255 << ToParamRange << FromTy << ToTy << (unsigned)isObjectArgument << I + 1 in DiagnoseBadConversion()
11267 QualType TempFromTy = FromTy.getNonReferenceType(); in DiagnoseBadConversion()
11274 << ToParamRange << FromTy << ToTy << (unsigned)isObjectArgument << I + 1 in DiagnoseBadConversion()
[all …]
H A DSemaExprCXX.cpp4299 static QualType adjustVectorType(ASTContext &Context, QualType FromTy, in adjustVectorType() argument
4305 if (!FromTy->isVectorType()) in adjustVectorType()
4307 auto *FromVec = FromTy->castAs<VectorType>(); in adjustVectorType()
H A DSemaType.cpp5758 TypeSourceInfo *Sema::GetTypeForDeclaratorCast(Declarator &D, QualType FromTy) { in GetTypeForDeclaratorCast() argument
5765 Qualifiers::ObjCLifetime ownership = Context.getInnerObjCOwnership(FromTy); in GetTypeForDeclaratorCast()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaFixItUtils.h51 typedef bool (*TypeComparisonFuncTy) (const CanQualType FromTy,
H A DOverload.h533 void *FromTy;
551 QualType getFromType() const { return QualType::getFromOpaquePtr(FromTy); } in getFromType()
559 void setFromType(QualType T) { FromTy = T.getAsOpaquePtr(); } in setFromType()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h2289 Type *FromTy = Tys[0]; in getTypeBasedIntrinsicInstrCost() local
2293 IntrinsicCostAttributes Attrs1(Intrinsic::minnum, FromTy, in getTypeBasedIntrinsicInstrCost()
2294 {FromTy, FromTy}); in getTypeBasedIntrinsicInstrCost()
2296 IntrinsicCostAttributes Attrs2(Intrinsic::maxnum, FromTy, in getTypeBasedIntrinsicInstrCost()
2297 {FromTy, FromTy}); in getTypeBasedIntrinsicInstrCost()
2300 IsSigned ? Instruction::FPToSI : Instruction::FPToUI, RetTy, FromTy, in getTypeBasedIntrinsicInstrCost()
2305 BinaryOperator::FCmp, FromTy, CondTy, CmpInst::FCMP_UNO, CostKind); in getTypeBasedIntrinsicInstrCost()
H A DTargetLowering.h2953 virtual bool isTruncateFree(Type *FromTy, Type *ToTy) const { in isTruncateFree() argument
2962 virtual bool allowTruncateForTailCall(Type *FromTy, Type *ToTy) const { in allowTruncateForTailCall() argument
2967 virtual bool isTruncateFree(LLT FromTy, LLT ToTy, const DataLayout &DL, in isTruncateFree() argument
2969 return isTruncateFree(getApproximateEVTForLLT(FromTy, DL, Ctx), in isTruncateFree()
3048 virtual bool isZExtFree(Type *FromTy, Type *ToTy) const { in isZExtFree() argument
3052 virtual bool isZExtFree(EVT FromTy, EVT ToTy) const { return false; } in isZExtFree() argument
3053 virtual bool isZExtFree(LLT FromTy, LLT ToTy, const DataLayout &DL, in isZExtFree() argument
3055 return isZExtFree(getApproximateEVTForLLT(FromTy, DL, Ctx), in isZExtFree()
3068 virtual bool isSExtCheaperThanZExt(EVT FromTy, EVT ToTy) const { in isSExtCheaperThanZExt() argument
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDIBuilder.h259 DIDerivedType *createQualifiedType(unsigned Tag, DIType *FromTy);
275 DIDerivedType *createPtrAuthQualifiedType(DIType *FromTy, unsigned Key,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp2703 static bool isBitCastSemanticsPreserving(const DataLayout &DL, Type *FromTy, in isBitCastSemanticsPreserving() argument
2706 if (FromTy == ToTy) in isBitCastSemanticsPreserving()
2710 if (FromTy->isIntOrPtrTy() && ToTy->isIntOrPtrTy()) { in isBitCastSemanticsPreserving()
2711 bool SameSize = DL.getTypeSizeInBits(FromTy) == DL.getTypeSizeInBits(ToTy); in isBitCastSemanticsPreserving()
2712 bool LosslessConversion = !DL.isNonIntegralPointerType(FromTy) && in isBitCastSemanticsPreserving()
2729 Type *FromTy = From.getType(); in replaceAllDbgUsesWith() local
2742 if (isBitCastSemanticsPreserving(DL, FromTy, ToTy)) in replaceAllDbgUsesWith()
2747 if (FromTy->isIntegerTy() && ToTy->isIntegerTy()) { in replaceAllDbgUsesWith()
2748 uint64_t FromBits = FromTy->getPrimitiveSizeInBits(); in replaceAllDbgUsesWith()
/freebsd/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()
303 DIType *FromTy, unsigned Key, bool IsAddressDiscriminated, in createPtrAuthQualifiedType() argument
307 nullptr, 0, nullptr, FromTy, 0, 0, 0, std::nullopt, in createPtrAuthQualifiedType()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfUnit.cpp780 const DIType *FromTy = DTy->getBaseType(); in constructTypeDIE() local
781 if (FromTy) in constructTypeDIE()
782 addType(Buffer, FromTy); in constructTypeDIE()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDebugInfo.cpp1022 auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit); in CreateQualifiedType() local
1026 return DBuilder.createQualifiedType(Tag, FromTy); in CreateQualifiedType()
1043 auto *FromTy = in CreateQualifiedType() local
1050 return DBuilder.createQualifiedType(Tag, FromTy); in CreateQualifiedType()
3456 auto *FromTy = getOrCreateType(Ty->getValueType(), U); in CreateType() local
3457 return DBuilder.createQualifiedType(llvm::dwarf::DW_TAG_atomic_type, FromTy); in CreateType()
/freebsd/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/contrib/llvm-project/clang/lib/AST/
H A DASTImporter.cpp3664 QualType FromTy = D->getType(); in hasReturnTypeDeclaredInside() local
3665 const auto *FromFPT = FromTy->getAs<FunctionProtoType>(); in hasReturnTypeDeclaredInside()
3821 QualType FromTy = D->getType(); in VisitFunctionDecl() local
3831 if (const auto *FromFPT = FromTy->getAs<FunctionProtoType>()) { in VisitFunctionDecl()
3854 FromTy = Importer.getFromContext().getFunctionType( in VisitFunctionDecl()
3857 FromTy, D->getBeginLoc()); in VisitFunctionDecl()
3861 auto T = importChecked(Err, FromTy); in VisitFunctionDecl()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp1131 Type *FromTy = getFloatTypeForLLT(Ctx, MRI.getType(MI.getOperand(1).getReg())); in libcall() local
1133 if (!FromTy || !ToTy) in libcall()
1136 conversionLibcall(MI, MIRBuilder, ToTy, FromTy, LocObserver); in libcall()
1144 Type *FromTy = in libcall() local
1147 if ((ToSize != 32 && ToSize != 64 && ToSize != 128) || !FromTy) in libcall()
1150 MI, MIRBuilder, Type::getIntNTy(Ctx, ToSize), FromTy, LocObserver); in libcall()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp2785 Type *FromTy = I->getOperand(0)->getType(); in isKnownNonZeroFromOperator() local
2786 if ((FromTy->isIntOrIntVectorTy() || FromTy->isPtrOrPtrVectorTy()) && in isKnownNonZeroFromOperator()
2787 (BitWidth % getBitWidth(FromTy->getScalarType(), Q.DL)) == 0) in isKnownNonZeroFromOperator()

12