/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | InstVisitor.h | 78 template<typename SubClass, typename RetTy=void> 112 RetTy visit(Instruction *I) { return visit(*I); } 116 RetTy visit(Instruction &I) { 156 RetTy visit##OPCODE(CLASS &I) { \ 167 RetTy visitICmpInst(ICmpInst &I) { DELEGATE(CmpInst);} 168 RetTy visitFCmpInst(FCmpInst &I) { DELEGATE(CmpInst);} 169 RetTy visitAllocaInst(AllocaInst &I) { DELEGATE(UnaryInstruction);} 170 RetTy visitLoadInst(LoadInst &I) { DELEGATE(UnaryInstruction);} 171 RetTy visitStoreInst(StoreInst &I) { DELEGATE(Instruction);} 172 RetTy visitAtomicCmpXchgIns [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | TypeLocVisitor.h | 24 template<typename ImplClass, typename RetTy=void> 27 RetTy Visit(TypeLoc TyLoc) { 37 RetTy Visit(UnqualTypeLoc TyLoc) { 48 RetTy Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \ 53 RetTy VisitTypeLoc(TypeLoc TyLoc) { return RetTy(); }
|
H A D | AttrVisitor.h | 24 typename RetTy = void, class... ParamTys> 31 RetTy Visit(PTR(Attr) A) { 45 RetTy Visit##NAME##Attr(PTR(NAME##Attr) A) { DISPATCH(Attr); } 48 RetTy VisitAttr(PTR(Attr)) { return RetTy(); } 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 D | DeclVisitor.h | 30 template<template <typename> class Ptr, typename ImplClass, typename RetTy=void> 37 RetTy Visit(PTR(Decl) D) { 50 RetTy Visit##DERIVED##Decl(PTR(DERIVED##Decl) D) { DISPATCH(BASE, BASE); } 53 RetTy VisitDecl(PTR(Decl) D) { return RetTy(); } 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 D | TypeVisitor.h | 28 /// \tparam RetTy %Type of result produced by the operation. 63 template<typename ImplClass, typename RetTy=void> 68 RetTy Visit(const Type *T) { 80 #define TYPE(CLASS, PARENT) RetTy Visit##CLASS##Type(const CLASS##Type *T) { \ 87 RetTy VisitType(const Type*) { return RetTy(); }
|
H A D | CommentVisitor.h | 19 typename RetTy = void, class... ParamTys> 27 RetTy visit(PTR(Comment) C, ParamTys... P) { 29 return RetTy(); 46 RetTy visit##CLASS(PTR(CLASS) C, ParamTys... P) { DISPATCH(PARENT, PARENT); } 51 RetTy visitComment(PTR(Comment) C, ParamTys... P) { return RetTy(); } 57 template <typename ImplClass, typename RetTy = void, class... ParamTys> 59 RetTy, ParamTys...> {}; 61 template <typename ImplClass, typename RetTy = void, class... ParamTys> 63 : public CommentVisitorBase<llvm::make_const_ptr, ImplClass, RetTy, [all...] |
H A D | TemplateArgumentVisitor.h | 24 typename RetTy = void, typename... ParamTys> 33 RetTy Visit(REF(TemplateArgument) TA, ParamTys... P) { 52 RetTy Visit##CATEGORY##TemplateArgument(REF(TemplateArgument) TA, \ 67 RetTy VisitTemplateArgument(REF(TemplateArgument), ParamTys...) { 68 return RetTy(); 82 template <typename ImplClass, typename RetTy = void, typename... ParamTys> 85 RetTy, ParamTys...> {}; 91 template <typename ImplClass, typename RetTy = void, typename... ParamTys> 94 RetTy, ParamTys...> {};
|
H A D | NonTrivialTypeVisitor.h | 21 template <class Derived, class RetTy = void> struct DestructedTypeVisitor { 22 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { 28 RetTy visitWithKind(QualType::DestructionKind DK, QualType FT, 49 template <class Derived, class RetTy = void> 51 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { 58 RetTy visitWithKind(QualType::PrimitiveDefaultInitializeKind PDIK, 77 template <class Derived, bool IsMove, class RetTy = void> 79 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { 87 RetTy visitWithKind(QualType::PrimitiveCopyKind PCK, QualType FT,
|
H A D | StmtVisitor.h | 34 template<template <typename> class Ptr, typename ImplClass, typename RetTy=void, 43 RetTy Visit(PTR(Stmt) S, ParamTys... P) { 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) { \ 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, ParamTy [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | SValVisitor.h | 27 template <typename ImplClass, typename RetTy = void> class SValVisitor { 33 RetTy Visit(SVal V) { 58 RetTy Visit ## Id(Id V) { DISPATCH(Parent, Id); } 62 RetTy VisitLoc ## Id(loc::Id V) { DISPATCH(Parent, Parent); } 64 RetTy VisitNonLoc ## Id(nonloc::Id V) { DISPATCH(Parent, Parent); } 68 RetTy VisitSVal(SVal V) { return RetTy(); } 75 template <typename ImplClass, typename RetTy = void> class SymExprVisitor { 81 RetTy Visit(SymbolRef S) { 93 #define SYMBOL(Id, Parent) RetTy Visi [all...] |
H A D | SMTConstraintManager.h | 47 QualType RetTy; variable 51 SMTConv::getExpr(Solver, Ctx, Sym, &RetTy, &hasComparison); 55 if (!hasComparison && !RetTy->isBooleanType()) 58 SMTConv::getZeroExpr(Solver, Ctx, Exp, RetTy, !Assumption)); 85 QualType RetTy; variable 87 llvm::SMTExprRef VarExp = SMTConv::getExpr(Solver, Ctx, Sym, &RetTy); 89 SMTConv::getZeroExpr(Solver, Ctx, VarExp, RetTy, /*Assumption=*/true); 93 SMTConv::getZeroExpr(Solver, Ctx, VarExp, RetTy, /*Assumption=*/false);
|
H A D | SMTConv.h | 339 // expression. Sets the RetTy parameter. See getSMTSolverRef(). 344 QualType RTy, QualType *RetTy) { 350 if (RetTy) { 356 *RetTy = Ctx.BoolTy; 358 *RetTy = LTy; 364 *RetTy = Ctx.getPointerDiffType(); 375 // Sets the hasComparison and RetTy parameters. See getSMTSolverRef(). 380 QualType *RetTy) { 391 return getBinExpr(Solver, Ctx, LHS, LTy, Op, RHS, RTy, RetTy); 401 return getBinExpr(Solver, Ctx, LHS, LTy, Op, RHS, RTy, RetTy); 341 getBinExpr(llvm::SMTSolverRef &Solver, ASTContext &Ctx, const llvm::SMTExprRef &LHS, QualType LTy, BinaryOperator::Opcode Op, const llvm::SMTExprRef &RHS, QualType RTy, QualType *RetTy) argument 376 getSymBinExpr(llvm::SMTSolverRef &Solver, ASTContext &Ctx, const BinarySymExpr *BSE, bool *hasComparison, QualType *RetTy) argument 417 getSymExpr(llvm::SMTSolverRef &Solver, ASTContext &Ctx, SymbolRef Sym, QualType *RetTy, bool *hasComparison) argument [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Analysis/DomainSpecific/ |
H A D | CocoaConventions.h | 26 bool isRefType(QualType RetTy, StringRef Prefix,
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Analysis/ |
H A D | CocoaConventions.cpp | 24 bool cocoa::isRefType(QualType RetTy, StringRef Prefix, argument 27 while (const TypedefType *TD = RetTy->getAs<TypedefType>()) { 34 RetTy = TD->getDecl()->getUnderlyingType(); 41 const PointerType* PT = RetTy->castAs<PointerType>();
|
H A D | RetainSummaryManager.cpp | 237 StringRef FName, QualType RetTy) { 241 if (RetTy->isPointerType()) { 242 const CXXRecordDecl *PD = RetTy->getPointeeType()->getAsCXXRecordDecl(); 289 QualType RetTy, 295 std::string RetTyName = RetTy.getAsString(); 303 return RetTy->isObjCIdType() ? getUnarySummary(FT, DoNothing) 405 if (RetTy->isPointerType()) { 408 if (cocoa::isRefType(RetTy, "CF", FName)) { 432 if (cocoa::isRefType(RetTy, "CG", FName) || 433 cocoa::isRefType(RetTy, "C 236 getSummaryForOSObject(const FunctionDecl *FD, StringRef FName, QualType RetTy) argument 286 getSummaryForObjCOrCFObject( const FunctionDecl *FD, StringRef FName, QualType RetTy, const FunctionType *FT, bool &AllowAnnotations) argument 511 QualType RetTy = FT->getReturnType(); local 863 getRetEffectFromAnnotations(QualType RetTy, const Decl *D) argument 987 QualType RetTy = FD->getReturnType(); local 1014 QualType RetTy = MD->getReturnType(); local 1020 getStandardMethodSummary(const ObjCMethodDecl *MD, Selector S, QualType RetTy) argument 1154 getMethodSummary(Selector S, const ObjCInterfaceDecl *ID, const ObjCMethodDecl *MD, QualType RetTy, ObjCMethodSummariesTy &CachedSummaries) argument [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | BasicTTIImpl.h | 1131 Type *RetTy = ICA.getReturnType(); 1134 (RetTy->isVectorTy() ? cast<FixedVectorType>(RetTy)->getNumElements() 1151 if (VF > 1 && !RetTy->isVoidTy()) 1152 RetTy = FixedVectorType::get(RetTy, VF); 1155 // intrinsic. A vectorizer will pass a scalar RetTy and VF > 1, while 1156 // CostModel will pass a vector RetTy and VF is 1. 1160 if (!RetTy->isVoidTy()) 1162 getScalarizationOverhead(cast<VectorType>(RetTy), tru 1252 Type *RetTy = ICA.getReturnType(); local 1675 getCallInstrCost(Function *F, Type *RetTy, ArrayRef<Type *> Tys, TTI::TargetCostKind CostKind = TTI::TCK_SizeAndLatency) argument [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | OrcMCJITReplacement.cpp | 33 Type *RetTy = FTy->getReturnType(); local 43 if (RetTy->isIntegerTy(32) || RetTy->isVoidTy()) { 86 switch (RetTy->getTypeID()) { 90 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth();
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsCCState.cpp | 88 const Type *RetTy, const char *Call) { 91 originalTypeIsF128(RetTy, Call)); 92 OriginalArgWasFloat.push_back(RetTy->isFloatingPointTy()); 112 const SmallVectorImpl<ISD::InputArg> &Ins, const Type *RetTy) { 114 OriginalRetWasFloatVector.push_back(originalTypeIsVectorFloat(RetTy)); 86 PreAnalyzeCallResultForF128( const SmallVectorImpl<ISD::InputArg> &Ins, const Type *RetTy, const char *Call) argument 111 PreAnalyzeCallResultForVectorFloat( const SmallVectorImpl<ISD::InputArg> &Ins, const Type *RetTy) argument
|
H A D | MipsCCState.h | 33 const Type *RetTy, const char * Func); 53 const Type *RetTy); 120 CCAssignFn Fn, const Type *RetTy, 122 PreAnalyzeCallResultForF128(Ins, RetTy, Func); 123 PreAnalyzeCallResultForVectorFloat(Ins, RetTy); 119 AnalyzeCallResult(const SmallVectorImpl<ISD::InputArg> &Ins, CCAssignFn Fn, const Type *RetTy, const char *Func) argument
|
H A D | Mips16ISelLowering.h | 44 (Type* RetTy, ArgListTy &Args, bool &needHelper) const;
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUUnifyDivergentExitNodes.cpp | 234 Type *RetTy = F.getReturnType(); local 235 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy); 262 RetTy->isVoidTy()) { 310 Type *RetTy = F.getReturnType(); local 311 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy);
|
H A D | AMDGPURewriteOutArguments.cpp | 239 Type *RetTy = F.getReturnType(); local 240 if (!RetTy->isVoidTy()) { 241 ReturnNumRegs = DL->getTypeStoreSize(RetTy) / 4; 246 ReturnTypes.push_back(RetTy); 448 int RetIdx = RetTy->isVoidTy() ? 0 : 1; 468 if (!RetTy->isVoidTy()) {
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | TargetInfo.cpp | 689 ABIArgInfo classifyReturnType(QualType RetTy) const; 690 ABIArgInfo classifyArgumentType(QualType RetTy) const; 739 ABIArgInfo DefaultABIInfo::classifyReturnType(QualType RetTy) const { 740 if (RetTy->isVoidType()) 743 if (isAggregateTypeForABI(RetTy)) 744 return getNaturalAlignIndirect(RetTy); 747 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) 748 RetTy = EnumTy->getDecl()->getIntegerType(); 750 if (const auto *EIT = RetTy->getAs<ExtIntType>()) 755 return getNaturalAlignIndirect(RetTy); 1459 getIndirectReturnResult(QualType RetTy, CCState &State) const argument 1470 classifyReturnType(QualType RetTy, CCState &State) const argument 10313 QualType RetTy = FI.getReturnType(); local [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | DeadArgumentElimination.cpp | 327 Type *RetTy = F->getReturnType(); local 328 if (RetTy->isVoidTy()) 330 else if (StructType *STy = dyn_cast<StructType>(RetTy)) 332 else if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) 342 Type *RetTy = F->getReturnType(); local 343 assert(!RetTy->isVoidTy() && "void type has no subtype"); 345 if (StructType *STy = dyn_cast<StructType>(RetTy)) 347 else if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) 350 return RetTy; 772 Type *RetTy local [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | InjectTLIMappings.cpp | 47 Type *RetTy = ToVectorTy(CI.getType(), VF); local 53 FunctionType *FTy = FunctionType::get(RetTy, Tys, /*isVarArg=*/false);
|