Home
last modified time | relevance | path

Searched refs:RetTy (Results 1 – 25 of 159) sorted by relevance

1234567

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstVisitor.h77 template<typename SubClass, typename RetTy=void>
115 RetTy visit(Instruction &I) { in visit()
155 RetTy visit##OPCODE(CLASS &I) { \
226 RetTy visitReturnInst(ReturnInst &I) { in visitReturnInst()
229 RetTy visitBranchInst(BranchInst &I) { in visitBranchInst()
232 RetTy visitSwitchInst(SwitchInst &I) { in visitSwitchInst()
235 RetTy visitIndirectBrInst(IndirectBrInst &I) { in visitIndirectBrInst()
238 RetTy visitResumeInst(ResumeInst &I) { in visitResumeInst()
267 RetTy visitCallBase(CallBase &I) { in visitCallBase()
284 RetTy delegateCallInst(CallInst &I) { in delegateCallInst()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSValVisitor.h31 RetTy Visit(SVal V) { in Visit()
61 RetTy VisitSVal(SVal V) { return RetTy(); } in VisitSVal()
72 RetTy Visit(SymbolRef S) { in Visit()
89 RetTy VisitSymExpr(SymbolRef S) { return RetTy(); } in VisitSymExpr()
102 RetTy Visit(const MemRegion *R) { in Visit()
114 RetTy Visit ## Id(const Id *R) { DISPATCH(Parent); }
120 RetTy VisitMemRegion(const MemRegion *R) { return RetTy(); } in VisitMemRegion()
127 template <typename ImplClass, typename RetTy = void>
132 using SValVisitor<ImplClass, RetTy>::Visit;
133 using SymExprVisitor<ImplClass, RetTy>::Visit;
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DPNaCl.cpp26 ABIArgInfo classifyReturnType(QualType RetTy) const;
27 ABIArgInfo classifyArgumentType(QualType RetTy) const;
83 ABIArgInfo PNaClABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
84 if (RetTy->isVoidType()) in classifyReturnType()
88 if (isAggregateTypeForABI(RetTy)) in classifyReturnType()
89 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
92 if (const auto *EIT = RetTy->getAs<BitIntType>()) { in classifyReturnType()
94 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
99 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
100 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
[all …]
H A DMips.cpp34 ABIArgInfo classifyReturnType(QualType RetTy) const;
289 if (RetTy->isVoidType()) in classifyReturnType()
297 if (isAggregateTypeForABI(RetTy) || RetTy->isVectorType()) { in classifyReturnType()
299 if (RetTy->isAnyComplexType()) in classifyReturnType()
305 (RetTy->isVectorType() && !RetTy->hasFloatingRepresentation())) { in classifyReturnType()
313 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
318 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
325 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
327 if (isPromotableIntegerTypeForABI(RetTy)) in classifyReturnType()
328 return ABIArgInfo::getExtend(RetTy); in classifyReturnType()
[all …]
H A DBPF.cpp61 ABIArgInfo classifyReturnType(QualType RetTy) const { in classifyReturnType()
62 if (RetTy->isVoidType()) in classifyReturnType()
65 if (isAggregateTypeForABI(RetTy)) in classifyReturnType()
66 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
69 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
70 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
73 if (const auto *EIT = RetTy->getAs<BitIntType>()) in classifyReturnType()
75 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
H A DARM.cpp538 if (RetTy->isVoidType()) in classifyReturnType()
543 if (getContext().getTypeSize(RetTy) > 128) in classifyReturnType()
544 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
552 return coerceIllegalVector(RetTy); in classifyReturnType()
555 if (!isAggregateTypeForABI(RetTy)) { in classifyReturnType()
558 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
564 return isPromotableIntegerTypeForABI(RetTy) ? ABIArgInfo::getExtend(RetTy) in classifyReturnType()
577 if (RetTy->isAnyComplexType()) in classifyReturnType()
593 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
598 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
[all …]
H A DMSP430.cpp31 ABIArgInfo classifyReturnType(QualType RetTy) const { in classifyReturnType()
32 if (RetTy->isAnyComplexType()) in classifyReturnType()
35 return DefaultABIInfo::classifyReturnType(RetTy); in classifyReturnType()
38 ABIArgInfo classifyArgumentType(QualType RetTy) const { in classifyArgumentType()
39 if (RetTy->isAnyComplexType()) in classifyArgumentType()
42 return DefaultABIInfo::classifyArgumentType(RetTy); in classifyArgumentType()
H A DHexagon.cpp26 ABIArgInfo classifyReturnType(QualType RetTy) const;
27 ABIArgInfo classifyArgumentType(QualType RetTy) const;
138 if (RetTy->isVoidType()) in classifyReturnType()
142 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
144 if (RetTy->getAs<VectorType>()) { in classifyReturnType()
154 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
157 if (!isAggregateTypeForABI(RetTy)) { in classifyReturnType()
160 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
162 if (Size > 64 && RetTy->isBitIntType()) in classifyReturnType()
165 return isPromotableIntegerTypeForABI(RetTy) ? ABIArgInfo::getExtend(RetTy) in classifyReturnType()
[all …]
H A DPPC.cpp181 if (RetTy->isAnyComplexType()) in classifyReturnType()
184 if (RetTy->isVectorType()) in classifyReturnType()
187 if (RetTy->isVoidType()) in classifyReturnType()
190 if (isAggregateTypeForABI(RetTy)) in classifyReturnType()
191 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
193 return (isPromotableTypeForABI(RetTy) ? ABIArgInfo::getExtend(RetTy) in classifyReturnType()
843 if (RetTy->isVoidType()) in classifyReturnType()
846 if (RetTy->isAnyComplexType()) in classifyReturnType()
851 if (RetTy->isVectorType()) { in classifyReturnType()
865 if (isAggregateTypeForABI(RetTy)) { in classifyReturnType()
[all …]
H A DWebAssembly.cpp31 ABIArgInfo classifyReturnType(QualType RetTy) const;
135 ABIArgInfo WebAssemblyABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
136 if (isAggregateTypeForABI(RetTy)) { in classifyReturnType()
139 if (!getRecordArgABI(RetTy, getCXXABI())) { in classifyReturnType()
141 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
146 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
155 return defaultInfo.classifyReturnType(RetTy); in classifyReturnType()
H A DNVPTX.cpp31 ABIArgInfo classifyReturnType(QualType RetTy) const;
147 ABIArgInfo NVPTXABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
148 if (RetTy->isVoidType()) in classifyReturnType()
153 isUnsupportedType(RetTy)) in classifyReturnType()
154 return coerceToIntArrayWithLimit(RetTy, 64); in classifyReturnType()
157 if (!RetTy->isScalarType()) in classifyReturnType()
161 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
162 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
164 return (isPromotableIntegerTypeForABI(RetTy) ? ABIArgInfo::getExtend(RetTy) in classifyReturnType()
H A DCSKY.cpp34 ABIArgInfo classifyReturnType(QualType RetTy) const;
43 QualType RetTy = FI.getReturnType(); in computeInfo() local
45 FI.getReturnInfo() = classifyReturnType(RetTy); in computeInfo()
152 ABIArgInfo CSKYABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
153 if (RetTy->isVoidType()) in classifyReturnType()
161 return classifyArgumentType(RetTy, ArgGPRsLeft, ArgFPRsLeft, true); in classifyReturnType()
H A DARC.cpp61 ABIArgInfo classifyReturnType(QualType RetTy) const;
141 ABIArgInfo ARCABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
142 if (RetTy->isAnyComplexType()) in classifyReturnType()
146 auto RetSize = llvm::alignTo(getContext().getTypeSize(RetTy), 32) / 32; in classifyReturnType()
148 return getIndirectByRef(RetTy, /*HasFreeRegs*/ true); in classifyReturnType()
150 return DefaultABIInfo::classifyReturnType(RetTy); in classifyReturnType()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DCommentVisitor.h19 typename RetTy = void, class... ParamTys>
27 RetTy visit(PTR(Comment) C, ParamTys... P) { in visit()
29 return RetTy(); in visit()
47 RetTy visit##CLASS(PTR(CLASS) C, ParamTys... P) { DISPATCH(PARENT, PARENT); }
52 RetTy visitComment(PTR(Comment) C, ParamTys... P) { return RetTy(); } in visitComment()
58 template <typename ImplClass, typename RetTy = void, class... ParamTys>
60 RetTy, ParamTys...> {};
62 template <typename ImplClass, typename RetTy = void, class... ParamTys>
64 : public CommentVisitorBase<llvm::make_const_ptr, ImplClass, RetTy,
H A DDeclVisitor.h30 template<template <typename> class Ptr, typename ImplClass, typename RetTy=void>
37 RetTy Visit(PTR(Decl) D) { in Visit()
50 RetTy Visit##DERIVED##Decl(PTR(DERIVED##Decl) D) { DISPATCH(BASE, BASE); }
53 RetTy VisitDecl(PTR(Decl) D) { return RetTy(); } in VisitDecl()
65 template <typename ImplClass, typename RetTy = void>
67 : public declvisitor::Base<std::add_pointer, ImplClass, RetTy> {};
72 template <typename ImplClass, typename RetTy = void>
74 : public declvisitor::Base<llvm::make_const_ptr, ImplClass, RetTy> {};
H A DAttrVisitor.h24 typename RetTy = void, class... ParamTys>
31 RetTy Visit(PTR(Attr) A) { in Visit()
45 RetTy Visit##NAME##Attr(PTR(NAME##Attr) A) { DISPATCH(Attr); }
48 RetTy VisitAttr(PTR(Attr)) { return RetTy(); } in VisitAttr()
60 template <typename ImplClass, typename RetTy = void, typename... ParamTys>
61 class AttrVisitor : public attrvisitor::Base<std::add_pointer, ImplClass, RetTy,
68 template <typename ImplClass, typename RetTy = void, typename... ParamTys>
70 : public attrvisitor::Base<llvm::make_const_ptr, ImplClass, RetTy,
H A DTemplateArgumentVisitor.h24 typename RetTy = void, typename... ParamTys>
33 RetTy Visit(REF(TemplateArgument) TA, ParamTys... P) { in Visit()
53 RetTy Visit##CATEGORY##TemplateArgument(REF(TemplateArgument) TA, \
69 RetTy VisitTemplateArgument(REF(TemplateArgument), ParamTys...) { in VisitTemplateArgument()
70 return RetTy(); in VisitTemplateArgument()
84 template <typename ImplClass, typename RetTy = void, typename... ParamTys>
87 RetTy, ParamTys...> {};
93 template <typename ImplClass, typename RetTy = void, typename... ParamTys>
96 RetTy, ParamTys...> {};
H A DTypeLocVisitor.h24 template<typename ImplClass, typename RetTy=void>
27 RetTy Visit(TypeLoc TyLoc) { in Visit()
37 RetTy Visit(UnqualTypeLoc TyLoc) { in Visit()
48 RetTy Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
53 RetTy VisitTypeLoc(TypeLoc TyLoc) { return RetTy(); } in VisitTypeLoc()
H A DNonTrivialTypeVisitor.h21 template <class Derived, class RetTy = void> struct DestructedTypeVisitor {
22 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { in visit()
28 RetTy visitWithKind(QualType::DestructionKind DK, QualType FT, in visitWithKind()
49 template <class Derived, class RetTy = void>
51 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { in visit()
58 RetTy visitWithKind(QualType::PrimitiveDefaultInitializeKind PDIK, in visitWithKind()
77 template <class Derived, bool IsMove, class RetTy = void>
79 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { in visit()
87 RetTy visitWithKind(QualType::PrimitiveCopyKind PCK, QualType FT, in visitWithKind()
H A DStmtVisitor.h34 template<template <typename> class Ptr, typename ImplClass, typename RetTy=void,
43 RetTy Visit(PTR(Stmt) S, ParamTys... P) { in Visit()
117 RetTy Visit ## CLASS(PTR(CLASS) S, ParamTys... P) { DISPATCH(PARENT, PARENT); }
123 RetTy VisitBin ## NAME(PTR(BinaryOperator) S, ParamTys... P) { \
145 RetTy VisitBin ## NAME(PTR(CompoundAssignOperator) S, ParamTys... P) { \ in BINOP_FALLBACK()
157 RetTy VisitUnary ## NAME(PTR(UnaryOperator) S, ParamTys... P) { \
171 RetTy VisitStmt(PTR(Stmt) Node, ParamTys... P) { return RetTy(); }
182 template <typename ImplClass, typename RetTy = void, typename... ParamTys>
184 : public StmtVisitorBase<std::add_pointer, ImplClass, RetTy, ParamTys...> {
192 template <typename ImplClass, typename RetTy = void, typename... ParamTys>
[all …]
H A DTypeVisitor.h63 template<typename ImplClass, typename RetTy=void>
68 RetTy Visit(const Type *T) { in Visit()
80 #define TYPE(CLASS, PARENT) RetTy Visit##CLASS##Type(const CLASS##Type *T) { \
87 RetTy VisitType(const Type*) { return RetTy(); } in VisitType()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsCCState.h48 const Type *RetTy, const char * Func);
68 const Type *RetTy);
145 void PreAnalyzeCallResult(const Type *RetTy, const char *Func) { in PreAnalyzeCallResult() argument
146 OriginalArgWasF128.push_back(originalTypeIsF128(RetTy, Func)); in PreAnalyzeCallResult()
147 OriginalArgWasFloat.push_back(RetTy->isFloatingPointTy()); in PreAnalyzeCallResult()
148 OriginalRetWasFloatVector.push_back(originalTypeIsVectorFloat(RetTy)); in PreAnalyzeCallResult()
152 CCAssignFn Fn, const Type *RetTy, in PreAnalyzeCallResult() argument
157 PreAnalyzeCallResultForF128(Ins, RetTy, Func); in PreAnalyzeCallResult()
158 PreAnalyzeCallResultForVectorFloat(Ins, RetTy); in PreAnalyzeCallResult()
162 CCAssignFn Fn, const Type *RetTy, in AnalyzeCallResult() argument
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/DirectX/DirectXIRPasses/
H A DPointerTypeAnalysis.cpp86 Type *RetTy = F.getReturnType(); in classifyFunctionType() local
88 if (RetTy->isPointerTy()) { in classifyFunctionType()
89 RetTy = nullptr; in classifyFunctionType()
96 if (!RetTy) in classifyFunctionType()
97 RetTy = NewRetTy; in classifyFunctionType()
98 else if (RetTy != NewRetTy) in classifyFunctionType()
99 RetTy = TypedPointerType::get( in classifyFunctionType()
103 if (!RetTy) in classifyFunctionType()
104 RetTy = TypedPointerType::get( in classifyFunctionType()
114 TypedPointerType::get(FunctionType::get(RetTy, NewArgs, false), 0); in classifyFunctionType()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h1536 Type *RetTy = ICA.getReturnType(); in getIntrinsicInstrCost() local
1539 (RetTy->isVectorTy() ? cast<VectorType>(RetTy)->getElementCount() in getIntrinsicInstrCost()
1599 if (isa<ScalableVectorType>(RetTy)) in getIntrinsicInstrCost()
1607 if (isa<ScalableVectorType>(RetTy)) in getIntrinsicInstrCost()
1790 if (!RetTy->isVoidTy()) in getIntrinsicInstrCost()
1792 cast<VectorType>(RetTy), in getIntrinsicInstrCost()
1811 Type *RetTy = ICA.getReturnType(); in getTypeBasedIntrinsicInstrCost() local
1844 Type *ScalarRetTy = RetTy; in getTypeBasedIntrinsicInstrCost()
1978 Type *Ty = RetTy; in getTypeBasedIntrinsicInstrCost()
2071 IntrinsicCostAttributes Attrs(OverflowOp, OpTy, {RetTy, RetTy}, FMF, in getTypeBasedIntrinsicInstrCost()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DRetainSummaryManager.cpp248 if (RetTy->isPointerType()) { in getSummaryForOSObject()
296 QualType RetTy, in getSummaryForObjCOrCFObject() argument
302 std::string RetTyName = RetTy.getAsString(); in getSummaryForObjCOrCFObject()
407 if (RetTy->isPointerType()) { in getSummaryForObjCOrCFObject()
410 if (cocoa::isRefType(RetTy, "CF", FName)) { in getSummaryForObjCOrCFObject()
434 if (cocoa::isRefType(RetTy, "CG", FName) || in getSummaryForObjCOrCFObject()
513 QualType RetTy = FT->getReturnType(); in generateSummary() local
989 QualType RetTy = FD->getReturnType(); in updateSummaryFromAnnotations() local
1016 QualType RetTy = MD->getReturnType(); in updateSummaryFromAnnotations() local
1036 if (cocoa::isCocoaObjectRef(RetTy)) in getStandardMethodSummary()
[all …]

1234567