Home
last modified time | relevance | path

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

12345

/external/llvm/include/llvm/IR/
DInstVisitor.h80 template<typename SubClass, typename RetTy=void>
114 RetTy visit(Instruction *I) { return visit(*I); } in visit()
118 RetTy visit(Instruction &I) { in visit()
155 RetTy visit##OPCODE(CLASS &I) { \
166 RetTy visitReturnInst(ReturnInst &I) { DELEGATE(TerminatorInst);} in visitReturnInst()
167 RetTy visitBranchInst(BranchInst &I) { DELEGATE(TerminatorInst);} in visitBranchInst()
168 RetTy visitSwitchInst(SwitchInst &I) { DELEGATE(TerminatorInst);} in visitSwitchInst()
169 RetTy visitIndirectBrInst(IndirectBrInst &I) { DELEGATE(TerminatorInst);} in visitIndirectBrInst()
170 RetTy visitResumeInst(ResumeInst &I) { DELEGATE(TerminatorInst);} in visitResumeInst()
171 RetTy visitUnreachableInst(UnreachableInst &I) { DELEGATE(TerminatorInst);} in visitUnreachableInst()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DInstVisitor.h77 template<typename SubClass, typename RetTy=void>
111 RetTy visit(Instruction *I) { return visit(*I); } in visit()
115 RetTy visit(Instruction &I) { in visit()
154 RetTy visit##OPCODE(CLASS &I) { DELEGATE(CLASS); }
160 RetTy visitReturnInst(ReturnInst &I) { DELEGATE(TerminatorInst);} in visitReturnInst()
161 RetTy visitBranchInst(BranchInst &I) { DELEGATE(TerminatorInst);} in visitBranchInst()
162 RetTy visitSwitchInst(SwitchInst &I) { DELEGATE(TerminatorInst);} in visitSwitchInst()
163 RetTy visitIndirectBrInst(IndirectBrInst &I) { DELEGATE(TerminatorInst);} in visitIndirectBrInst()
164 RetTy visitInvokeInst(InvokeInst &I) { DELEGATE(TerminatorInst);} in visitInvokeInst()
165 RetTy visitUnwindInst(UnwindInst &I) { DELEGATE(TerminatorInst);} in visitUnwindInst()
[all …]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSValVisitor.h28 template <typename ImplClass, typename RetTy = void> class SValVisitor {
34 RetTy Visit(SVal V) { in Visit()
59 RetTy Visit ## Id(Id V) { DISPATCH(Parent, Id); }
63 RetTy VisitLoc ## Id(loc::Id V) { DISPATCH(Parent, Parent); }
65 RetTy VisitNonLoc ## Id(nonloc::Id V) { DISPATCH(Parent, Parent); }
69 RetTy VisitSVal(SVal V) { return RetTy(); } in VisitSVal()
76 template <typename ImplClass, typename RetTy = void> class SymExprVisitor {
82 RetTy Visit(SymbolRef S) { in Visit()
94 #define SYMBOL(Id, Parent) RetTy Visit ## Id(const Id *S) { DISPATCH(Parent); }
99 RetTy VisitSymExpr(SymbolRef S) { return RetTy(); } in VisitSymExpr()
[all …]
/external/clang/include/clang/AST/
DStmtVisitor.h32 template<template <typename> class Ptr, typename ImplClass, typename RetTy=void>
40 RetTy Visit(PTR(Stmt) S) { in Visit()
114 RetTy Visit ## CLASS(PTR(CLASS) S) { DISPATCH(PARENT, PARENT); }
120 RetTy VisitBin ## NAME(PTR(BinaryOperator) S) { \
140 RetTy VisitBin ## NAME(PTR(CompoundAssignOperator) S) { \ in BINOP_FALLBACK()
152 RetTy VisitUnary ## NAME(PTR(UnaryOperator) S) { \
166 RetTy VisitStmt(PTR(Stmt) Node) { return RetTy(); }
177 template<typename ImplClass, typename RetTy=void>
179 : public StmtVisitorBase<make_ptr, ImplClass, RetTy> {};
186 template<typename ImplClass, typename RetTy=void>
[all …]
DCommentVisitor.h22 template<template <typename> class Ptr, typename ImplClass, typename RetTy=void>
29 RetTy visit(PTR(Comment) C) { in visit()
31 return RetTy(); in visit()
48 RetTy visit ## CLASS(PTR(CLASS) C) { DISPATCH(PARENT, PARENT); }
53 RetTy visitComment(PTR(Comment) C) { return RetTy(); } in visitComment()
59 template<typename ImplClass, typename RetTy=void>
61 public CommentVisitorBase<make_ptr, ImplClass, RetTy> {};
63 template<typename ImplClass, typename RetTy=void>
65 public CommentVisitorBase<make_const_ptr, ImplClass, RetTy> {};
DDeclVisitor.h30 template<template <typename> class Ptr, typename ImplClass, typename RetTy=void>
38 RetTy Visit(PTR(Decl) D) { in Visit()
51 RetTy Visit##DERIVED##Decl(PTR(DERIVED##Decl) D) { DISPATCH(BASE, BASE); }
54 RetTy VisitDecl(PTR(Decl) D) { return RetTy(); } in VisitDecl()
66 template<typename ImplClass, typename RetTy=void>
68 : public declvisitor::Base<declvisitor::make_ptr, ImplClass, RetTy> {};
73 template<typename ImplClass, typename RetTy=void>
75 : public declvisitor::Base<declvisitor::make_const_ptr, ImplClass, RetTy> {};
DTypeLocVisitor.h26 template<typename ImplClass, typename RetTy=void>
29 RetTy Visit(TypeLoc TyLoc) { in Visit()
39 RetTy Visit(UnqualTypeLoc TyLoc) { in Visit()
50 RetTy Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
55 RetTy VisitTypeLoc(TypeLoc TyLoc) { return RetTy(); } in VisitTypeLoc()
DTypeVisitor.h64 template<typename ImplClass, typename RetTy=void>
69 RetTy Visit(const Type *T) { in Visit()
81 #define TYPE(CLASS, PARENT) RetTy Visit##CLASS##Type(const CLASS##Type *T) { \
88 RetTy VisitType(const Type*) { return RetTy(); } in VisitType()
/external/clang/lib/CodeGen/
DTargetInfo.cpp595 ABIArgInfo classifyReturnType(QualType RetTy) const;
596 ABIArgInfo classifyArgumentType(QualType RetTy) const;
637 ABIArgInfo DefaultABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
638 if (RetTy->isVoidType()) in classifyReturnType()
641 if (isAggregateTypeForABI(RetTy)) in classifyReturnType()
642 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
645 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
646 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
648 return (RetTy->isPromotableIntegerType() ? in classifyReturnType()
664 ABIArgInfo classifyReturnType(QualType RetTy) const;
[all …]
DObjectFilePCHContainerOperations.cpp110 QualType RetTy = D->getReturnType(); in VisitFunctionDecl() local
111 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitFunctionDecl()
129 QualType RetTy = D->getReturnType(); in VisitObjCMethodDecl() local
130 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitObjCMethodDecl()
/external/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h165 unsigned getIntrinsicCost(Intrinsic::ID IID, Type *RetTy, in getIntrinsicCost() argument
167 return BaseT::getIntrinsicCost(IID, RetTy, Arguments); in getIntrinsicCost()
170 unsigned getIntrinsicCost(Intrinsic::ID IID, Type *RetTy, in getIntrinsicCost() argument
184 return BaseT::getIntrinsicCost(IID, RetTy, ParamTys); in getIntrinsicCost()
673 unsigned getIntrinsicInstrCost(Intrinsic::ID IID, Type *RetTy, in getIntrinsicInstrCost() argument
680 return static_cast<T *>(this)->getIntrinsicInstrCost(IID, RetTy, Types, in getIntrinsicInstrCost()
699 RetTy, Args[0], VarMask, in getIntrinsicInstrCost()
706 unsigned getIntrinsicInstrCost(Intrinsic::ID IID, Type *RetTy, in getIntrinsicInstrCost() argument
715 Type *ScalarRetTy = RetTy; in getIntrinsicInstrCost()
716 if (RetTy->isVectorTy()) { in getIntrinsicInstrCost()
[all …]
DFastISel.h61 Type *RetTy; member
92 : RetTy(nullptr), RetSExt(false), RetZExt(false), IsVarArg(false), in CallLoweringInfo()
101 RetTy = ResultTy; in setCallee()
124 RetTy = ResultTy;
147 RetTy = ResultTy;
163 RetTy = ResultTy;
/external/llvm/lib/ExecutionEngine/Orc/
DOrcMCJITReplacement.cpp34 Type *RetTy = FTy->getReturnType(); in runFunction() local
44 if (RetTy->isIntegerTy(32) || RetTy->isVoidTy()) { in runFunction()
87 switch (RetTy->getTypeID()) { in runFunction()
91 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction()
/external/llvm/lib/Transforms/IPO/
DDeadArgumentElimination.cpp305 Type *RetTy = F->getReturnType(); in NumRetVals() local
306 if (RetTy->isVoidTy()) in NumRetVals()
308 else if (StructType *STy = dyn_cast<StructType>(RetTy)) in NumRetVals()
310 else if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) in NumRetVals()
320 Type *RetTy = F->getReturnType(); in getRetComponentType() local
321 assert(!RetTy->isVoidTy() && "void type has no subtype"); in getRetComponentType()
323 if (StructType *STy = dyn_cast<StructType>(RetTy)) in getRetComponentType()
325 else if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) in getRetComponentType()
328 return RetTy; in getRetComponentType()
718 Type *RetTy = FTy->getReturnType(); in RemoveDeadStuffFromFunction() local
[all …]
/external/llvm/include/llvm/Analysis/
DTargetTransformInfo.h180 int getIntrinsicCost(Intrinsic::ID IID, Type *RetTy,
186 int getIntrinsicCost(Intrinsic::ID IID, Type *RetTy,
566 int getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy,
570 int getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy,
574 int getCallInstrCost(Function *F, Type *RetTy, ArrayRef<Type *> Tys) const;
640 virtual int getIntrinsicCost(Intrinsic::ID IID, Type *RetTy,
642 virtual int getIntrinsicCost(Intrinsic::ID IID, Type *RetTy,
723 virtual int getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy,
726 virtual int getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy,
729 virtual int getCallInstrCost(Function *F, Type *RetTy,
[all …]
DTargetTransformInfoImpl.h133 unsigned getIntrinsicCost(Intrinsic::ID IID, Type *RetTy, in getIntrinsicCost() argument
347 unsigned getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy, in getIntrinsicInstrCost() argument
351 unsigned getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy, in getIntrinsicInstrCost() argument
356 unsigned getCallInstrCost(Function *F, Type *RetTy, ArrayRef<Type *> Tys) { in getCallInstrCost() argument
491 unsigned getIntrinsicCost(Intrinsic::ID IID, Type *RetTy, in getIntrinsicCost() argument
500 return static_cast<T *>(this)->getIntrinsicCost(IID, RetTy, ParamTys); in getIntrinsicCost()
/external/clang/lib/Analysis/
DCocoaConventions.cpp25 bool cocoa::isRefType(QualType RetTy, StringRef Prefix, in isRefType() argument
28 while (const TypedefType *TD = RetTy->getAs<TypedefType>()) { in isRefType()
35 RetTy = TD->getDecl()->getUnderlyingType(); in isRefType()
42 const PointerType* PT = RetTy->getAs<PointerType>(); in isRefType()
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/MCJIT/
DMCJIT.cpp129 Type *RetTy = FTy->getReturnType(); in runFunction() local
139 if (RetTy->isIntegerTy(32) || RetTy->isVoidTy()) { in runFunction()
183 switch (RetTy->getTypeID()) { in runFunction()
186 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction()
/external/llvm/lib/Analysis/
DTargetTransformInfo.cpp80 Intrinsic::ID IID, Type *RetTy, ArrayRef<const Value *> Arguments) const { in getIntrinsicCost() argument
81 int Cost = TTIImpl->getIntrinsicCost(IID, RetTy, Arguments); in getIntrinsicCost()
359 int TargetTransformInfo::getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy, in getIntrinsicInstrCost() argument
362 int Cost = TTIImpl->getIntrinsicInstrCost(ID, RetTy, Tys, FMF); in getIntrinsicInstrCost()
367 int TargetTransformInfo::getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy, in getIntrinsicInstrCost() argument
370 int Cost = TTIImpl->getIntrinsicInstrCost(ID, RetTy, Args, FMF); in getIntrinsicInstrCost()
375 int TargetTransformInfo::getCallInstrCost(Function *F, Type *RetTy, in getCallInstrCost() argument
377 int Cost = TTIImpl->getCallInstrCost(F, RetTy, Tys); in getCallInstrCost()
/external/llvm/lib/Target/Mips/
DMips16ISelLowering.cpp374 (Type* RetTy, ArgListTy &Args, bool &needHelper) const { in getMips16HelperFunction() argument
384 if (RetTy->isFloatTy()) { in getMips16HelperFunction()
387 else if (RetTy ->isDoubleTy()) { in getMips16HelperFunction()
390 else if (RetTy->isStructTy()) { in getMips16HelperFunction()
392 if (RetTy->getNumContainedTypes() == 2) { in getMips16HelperFunction()
393 if ((RetTy->getContainedType(0)->isFloatTy()) && in getMips16HelperFunction()
394 (RetTy->getContainedType(1)->isFloatTy())) { in getMips16HelperFunction()
397 else if ((RetTy->getContainedType(0)->isDoubleTy()) && in getMips16HelperFunction()
398 (RetTy->getContainedType(1)->isDoubleTy())) { in getMips16HelperFunction()
492 getMips16HelperFunction(CLI.RetTy, CLI.getArgs(), NeedMips16Helper); in getOpndList()
/external/llvm/lib/IR/
DModule.cpp156 Type *RetTy, ...) { in getOrInsertFunction() argument
158 va_start(Args, RetTy); in getOrInsertFunction()
169 FunctionType::get(RetTy, ArgTys, false), in getOrInsertFunction()
174 Type *RetTy, ...) { in getOrInsertFunction() argument
176 va_start(Args, RetTy); in getOrInsertFunction()
187 FunctionType::get(RetTy, ArgTys, false), in getOrInsertFunction()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DModule.cpp202 Type *RetTy, ...) { in getOrInsertFunction() argument
204 va_start(Args, RetTy); in getOrInsertFunction()
215 FunctionType::get(RetTy, ArgTys, false), in getOrInsertFunction()
220 Type *RetTy, ...) { in getOrInsertFunction() argument
222 va_start(Args, RetTy); in getOrInsertFunction()
233 FunctionType::get(RetTy, ArgTys, false), in getOrInsertFunction()
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/
DExternalFunctions.cpp217 Type *RetTy = FTy->getReturnType(); in ffiInvoke() local
218 ffi_type *rtype = ffiTypeFor(RetTy); in ffiInvoke()
222 if (RetTy->getTypeID() != Type::VoidTyID) in ffiInvoke()
223 ret.resize(TD->getTypeStoreSize(RetTy)); in ffiInvoke()
225 switch (RetTy->getTypeID()) { in ffiInvoke()
227 switch (cast<IntegerType>(RetTy)->getBitWidth()) { in ffiInvoke()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExternalFunctions.cpp216 Type *RetTy = FTy->getReturnType(); in ffiInvoke() local
217 ffi_type *rtype = ffiTypeFor(RetTy); in ffiInvoke()
221 if (RetTy->getTypeID() != Type::VoidTyID) in ffiInvoke()
222 ret.resize(TD.getTypeStoreSize(RetTy)); in ffiInvoke()
224 switch (RetTy->getTypeID()) { in ffiInvoke()
226 switch (cast<IntegerType>(RetTy)->getBitWidth()) { in ffiInvoke()
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/JIT/
DJIT.cpp394 Type *RetTy = FTy->getReturnType(); in runFunction() local
404 if (RetTy->isIntegerTy(32) || RetTy->isVoidTy()) { in runFunction()
448 switch (RetTy->getTypeID()) { in runFunction()
451 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction()
491 FunctionType *STy=FunctionType::get(RetTy, false); in runFunction()

12345