Home
last modified time | relevance | path

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

123

/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/clang/include/clang/AST/
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> {};
DStmtVisitor.h31 template<template <typename> class Ptr, typename ImplClass, typename RetTy=void>
39 RetTy Visit(PTR(Stmt) S) { in Visit()
112 RetTy Visit ## CLASS(PTR(CLASS) S) { DISPATCH(PARENT, PARENT); }
118 RetTy VisitBin ## NAME(PTR(BinaryOperator) S) { \
138 RetTy VisitBin ## NAME(PTR(CompoundAssignOperator) S) { \ in BINOP_FALLBACK()
150 RetTy VisitUnary ## NAME(PTR(UnaryOperator) S) { \
164 RetTy VisitStmt(PTR(Stmt) Node) { return RetTy(); }
175 template<typename ImplClass, typename RetTy=void>
177 : public StmtVisitorBase<make_ptr, ImplClass, RetTy> {};
184 template<typename ImplClass, typename RetTy=void>
[all …]
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.cpp353 ABIArgInfo classifyReturnType(QualType RetTy) const;
354 ABIArgInfo classifyArgumentType(QualType RetTy) const;
390 ABIArgInfo DefaultABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
391 if (RetTy->isVoidType()) in classifyReturnType()
394 if (isAggregateTypeForABI(RetTy)) in classifyReturnType()
398 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
399 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
401 return (RetTy->isPromotableIntegerType() ? in classifyReturnType()
416 ABIArgInfo classifyReturnType(QualType RetTy) const;
417 ABIArgInfo classifyArgumentType(QualType RetTy) const;
[all …]
DCGCall.cpp72 static CanQualType GetReturnType(QualType RetTy) { in GetReturnType() argument
73 return RetTy->getCanonicalTypeUnqualified().getUnqualifiedType(); in GetReturnType()
1157 QualType RetTy = FI.getReturnType(); in ConstructAttributeList() local
1163 if (RetTy->hasSignedIntegerRepresentation()) in ConstructAttributeList()
1165 else if (RetTy->hasUnsignedIntegerRepresentation()) in ConstructAttributeList()
1203 if (RetTy->isReferenceType()) in ConstructAttributeList()
1345 QualType RetTy = FD->getReturnType().getUnqualifiedType(); in EmitFunctionProlog() local
1346 llvm::Type* LLVMTy = CGM.getTypes().ConvertType(RetTy); in EmitFunctionProlog()
1837 QualType RetTy = FI.getReturnType(); in EmitFunctionEpilog() local
1844 assert(hasAggregateEvaluationKind(RetTy)); in EmitFunctionEpilog()
[all …]
/external/clang/lib/Analysis/
DCocoaConventions.cpp25 bool cocoa::isRefType(QualType RetTy, StringRef Prefix, in isRefType() argument
28 while (const TypedefType *TD = dyn_cast<TypedefType>(RetTy.getTypePtr())) { in isRefType()
35 RetTy = TD->getDecl()->getUnderlyingType(); in isRefType()
42 const PointerType* PT = RetTy->getAs<PointerType>(); in isRefType()
/external/llvm/lib/CodeGen/
DBasicTargetTransformInfo.cpp117 unsigned getIntrinsicInstrCost(Intrinsic::ID, Type *RetTy,
532 unsigned BasicTTI::getIntrinsicInstrCost(Intrinsic::ID IID, Type *RetTy, in getIntrinsicInstrCost() argument
540 if (RetTy->isVectorTy()) { in getIntrinsicInstrCost()
541 ScalarizationCost = getScalarizationOverhead(RetTy, true, false); in getIntrinsicInstrCost()
542 ScalarCalls = std::max(ScalarCalls, RetTy->getVectorNumElements()); in getIntrinsicInstrCost()
547 ScalarCalls = std::max(ScalarCalls, RetTy->getVectorNumElements()); in getIntrinsicInstrCost()
581 std::pair<unsigned, MVT> LT = TLI->getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost()
602 return TopTTI->getArithmeticInstrCost(BinaryOperator::FMul, RetTy) + in getIntrinsicInstrCost()
603 TopTTI->getArithmeticInstrCost(BinaryOperator::FAdd, RetTy); in getIntrinsicInstrCost()
608 if (RetTy->isVectorTy()) { in getIntrinsicInstrCost()
[all …]
DJumpInstrTables.cpp204 Type *RetTy = VoidPtrTy; in transformType() local
217 return FunctionType::get(RetTy, EmptyParams, false); in transformType()
226 return FunctionType::get(RetTy, ParamTys, IsVarArg); in transformType()
244 return FunctionType::get(RetTy, ParamTys, IsVarArg); in transformType()
/external/llvm/lib/Analysis/
DTargetTransformInfo.cpp69 Intrinsic::ID IID, Type *RetTy, ArrayRef<Type *> ParamTys) const { in getIntrinsicCost() argument
70 return PrevTTI->getIntrinsicCost(IID, RetTy, ParamTys); in getIntrinsicCost()
74 Intrinsic::ID IID, Type *RetTy, ArrayRef<const Value *> Arguments) const { in getIntrinsicCost() argument
75 return PrevTTI->getIntrinsicCost(IID, RetTy, Arguments); in getIntrinsicCost()
214 Type *RetTy, in getIntrinsicInstrCost() argument
216 return PrevTTI->getIntrinsicInstrCost(ID, RetTy, Tys); in getIntrinsicInstrCost()
379 unsigned getIntrinsicCost(Intrinsic::ID IID, Type *RetTy, in getIntrinsicCost()
403 getIntrinsicCost(Intrinsic::ID IID, Type *RetTy, in getIntrinsicCost()
412 return TopTTI->getIntrinsicCost(IID, RetTy, ParamTys); in getIntrinsicCost()
599 unsigned getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy, in getIntrinsicInstrCost()
/external/llvm/lib/IR/
DModule.cpp132 Type *RetTy, ...) { in getOrInsertFunction() argument
134 va_start(Args, RetTy); in getOrInsertFunction()
145 FunctionType::get(RetTy, ArgTys, false), in getOrInsertFunction()
150 Type *RetTy, ...) { in getOrInsertFunction() argument
152 va_start(Args, RetTy); in getOrInsertFunction()
163 FunctionType::get(RetTy, ArgTys, false), in getOrInsertFunction()
/external/llvm/include/llvm/Analysis/
DTargetTransformInfo.h144 virtual unsigned getIntrinsicCost(Intrinsic::ID IID, Type *RetTy,
150 virtual unsigned getIntrinsicCost(Intrinsic::ID IID, Type *RetTy,
402 virtual unsigned getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy,
/external/llvm/lib/Target/Mips/
DMips16ISelLowering.cpp373 (Type* RetTy, ArgListTy &Args, bool &needHelper) const { in getMips16HelperFunction() argument
383 if (RetTy->isFloatTy()) { in getMips16HelperFunction()
386 else if (RetTy ->isDoubleTy()) { in getMips16HelperFunction()
389 else if (RetTy->isStructTy()) { in getMips16HelperFunction()
391 if (RetTy->getNumContainedTypes() == 2) { in getMips16HelperFunction()
392 if ((RetTy->getContainedType(0)->isFloatTy()) && in getMips16HelperFunction()
393 (RetTy->getContainedType(1)->isFloatTy())) { in getMips16HelperFunction()
396 else if ((RetTy->getContainedType(0)->isDoubleTy()) && in getMips16HelperFunction()
397 (RetTy->getContainedType(1)->isDoubleTy())) { in getMips16HelperFunction()
490 getMips16HelperFunction(CLI.RetTy, CLI.getArgs(), NeedMips16Helper); in getOpndList()
DMipsISelLowering.h370 const Type *RetTy) const;
373 bool IsSoftFloat, const Type *RetTy) const;
426 const SDNode *CallNode, const Type *RetTy) const;
469 const SDNode *CallNode, const Type *RetTy) const;
DMips16ISelLowering.h42 (Type* RetTy, ArgListTy &Args, bool &needHelper) const;
/external/llvm/lib/ExecutionEngine/Interpreter/
DExternalFunctions.cpp218 Type *RetTy = FTy->getReturnType(); in ffiInvoke() local
219 ffi_type *rtype = ffiTypeFor(RetTy); in ffiInvoke()
223 if (RetTy->getTypeID() != Type::VoidTyID) in ffiInvoke()
224 ret.resize(TD->getTypeStoreSize(RetTy)); in ffiInvoke()
226 switch (RetTy->getTypeID()) { in ffiInvoke()
228 switch (cast<IntegerType>(RetTy)->getBitWidth()) { in ffiInvoke()
/external/clang/lib/StaticAnalyzer/Checkers/
DRetainCountChecker.cpp732 QualType RetTy,
763 Selector S, QualType RetTy);
766 Optional<RetEffect> getRetEffectFromAnnotations(QualType RetTy,
1033 QualType RetTy = FT->getReturnType(); in getFunctionSummary() local
1045 S = (RetTy->isObjCIdType()) in getFunctionSummary()
1126 if (RetTy->isPointerType()) { in getFunctionSummary()
1128 if (cocoa::isRefType(RetTy, "CF", FName)) { in getFunctionSummary()
1147 if (cocoa::isRefType(RetTy, "CG", FName)) { in getFunctionSummary()
1157 if (cocoa::isRefType(RetTy, "DADisk") || in getFunctionSummary()
1158 cocoa::isRefType(RetTy, "DADissenter") || in getFunctionSummary()
[all …]
DCallAndMessageChecker.cpp537 QualType RetTy = Msg.getResultType(); in HandleNilReceiver() local
538 CanQualType CanRetTy = Ctx.getCanonicalType(RetTy); in HandleNilReceiver()
543 SVal V = C.getSValBuilder().makeZeroVal(RetTy); in HandleNilReceiver()
581 SVal V = C.getSValBuilder().makeZeroVal(RetTy); in HandleNilReceiver()
/external/llvm/lib/ExecutionEngine/JIT/
DJIT.cpp244 Type *RetTy = FTy->getReturnType(); in runFunction() local
254 if (RetTy->isIntegerTy(32) || RetTy->isVoidTy()) { in runFunction()
303 switch (RetTy->getTypeID()) { in runFunction()
306 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction()
345 FunctionType *STy=FunctionType::get(RetTy, false); in runFunction()
/external/llvm/lib/Transforms/IPO/
DDeadArgumentElimination.cpp737 Type *RetTy = FTy->getReturnType(); in RemoveDeadStuffFromFunction() local
764 if (RetTy->isVoidTy() || HasLiveReturnedArg) { in RemoveDeadStuffFromFunction()
765 NRetTy = RetTy; in RemoveDeadStuffFromFunction()
767 StructType *STy = dyn_cast<StructType>(RetTy); in RemoveDeadStuffFromFunction()
784 RetTypes.push_back(RetTy); in RemoveDeadStuffFromFunction()
899 if (NRetTy != RetTy && B.contains(Attribute::Returned)) in RemoveDeadStuffFromFunction()
951 assert(RetTy->isStructTy() && in RemoveDeadStuffFromFunction()
966 Value *RetVal = UndefValue::get(RetTy); in RemoveDeadStuffFromFunction()
1026 assert (RetTy->isStructTy()); in RemoveDeadStuffFromFunction()
/external/clang/include/clang/Analysis/DomainSpecific/
DCocoaConventions.h27 bool isRefType(QualType RetTy, StringRef Prefix,
/external/llvm/lib/ExecutionEngine/MCJIT/
DMCJIT.cpp439 Type *RetTy = FTy->getReturnType(); in runFunction() local
449 if (RetTy->isIntegerTy(32) || RetTy->isVoidTy()) { in runFunction()
493 switch (RetTy->getTypeID()) { in runFunction()
496 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction()
/external/llvm/include/llvm/Transforms/Utils/
DCodeExtractor.h54 Type *RetTy; variable

123