Searched refs:RetTy (Results 1 - 25 of 70) sorted by relevance

123

/external/llvm/include/llvm/
H A DInstVisitor.h80 template<typename SubClass, typename RetTy=void>
114 RetTy visit(Instruction *I) { return visit(*I); }
118 RetTy visit(Instruction &I) {
155 RetTy visit##OPCODE(CLASS &I) { \
166 RetTy visitReturnInst(ReturnInst &I) { DELEGATE(TerminatorInst);}
167 RetTy visitBranchInst(BranchInst &I) { DELEGATE(TerminatorInst);}
168 RetTy visitSwitchInst(SwitchInst &I) { DELEGATE(TerminatorInst);}
169 RetTy visitIndirectBrInst(IndirectBrInst &I) { DELEGATE(TerminatorInst);}
170 RetTy visitResumeInst(ResumeInst &I) { DELEGATE(TerminatorInst);}
171 RetTy visitUnreachableIns
[all...]
/external/clang/include/clang/AST/
H A DCommentVisitor.h22 template<template <typename> class Ptr, typename ImplClass, typename RetTy=void>
29 RetTy visit(PTR(Comment) C) {
31 return RetTy();
48 RetTy visit ## CLASS(PTR(CLASS) C) { DISPATCH(PARENT, PARENT); }
53 RetTy visitComment(PTR(Comment) C) { return RetTy(); }
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> {};
[all...]
H A DTypeLocVisitor.h26 template<typename ImplClass, typename RetTy=void>
29 RetTy Visit(TypeLoc TyLoc) {
39 RetTy Visit(UnqualTypeLoc TyLoc) {
50 RetTy Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
55 RetTy VisitTypeLoc(TypeLoc TyLoc) { return RetTy(); }
H A DDeclVisitor.h30 template<template <typename> class Ptr, typename ImplClass, typename RetTy=void>
38 RetTy Visit(PTR(Decl) D) {
51 RetTy Visit##DERIVED##Decl(PTR(DERIVED##Decl) D) { DISPATCH(BASE, BASE); }
54 RetTy VisitDecl(PTR(Decl) D) { return RetTy(); }
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> {};
H A DTypeVisitor.h29 /// \tparam RetTy %Type of result produced by the operation.
64 template<typename ImplClass, typename RetTy=void>
69 RetTy Visit(const Type *T) {
81 #define TYPE(CLASS, PARENT) RetTy Visit##CLASS##Type(const CLASS##Type *T) { \
88 RetTy VisitType(const Type*) { return RetTy(); }
H A DStmtVisitor.h31 template<template <typename> class Ptr, typename ImplClass, typename RetTy=void>
39 RetTy Visit(PTR(Stmt) S) {
112 RetTy Visit ## CLASS(PTR(CLASS) S) { DISPATCH(PARENT, PARENT); }
118 RetTy VisitBin ## NAME(PTR(BinaryOperator) S) { \
138 RetTy VisitBin ## NAME(PTR(CompoundAssignOperator) S) { \
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> {};
[all...]
/external/clang/include/clang/Analysis/DomainSpecific/
H A DCocoaConventions.h27 bool isRefType(QualType RetTy, StringRef Prefix,
/external/clang/lib/Analysis/
H A DCocoaConventions.cpp25 bool cocoa::isRefType(QualType RetTy, StringRef Prefix, argument
28 while (const TypedefType *TD = dyn_cast<TypedefType>(RetTy.getTypePtr())) {
35 RetTy = TD->getDecl()->getUnderlyingType();
42 const PointerType* PT = RetTy->getAs<PointerType>();
/external/clang/lib/CodeGen/
H A DTargetInfo.cpp365 ABIArgInfo classifyReturnType(QualType RetTy) const;
366 ABIArgInfo classifyArgumentType(QualType RetTy) const;
408 ABIArgInfo DefaultABIInfo::classifyReturnType(QualType RetTy) const {
409 if (RetTy->isVoidType())
412 if (isAggregateTypeForABI(RetTy))
416 if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
417 RetTy = EnumTy->getDecl()->getIntegerType();
419 return (RetTy->isPromotableIntegerType() ?
434 ABIArgInfo classifyReturnType(QualType RetTy) const;
435 ABIArgInfo classifyArgumentType(QualType RetTy) cons
666 classifyReturnType(QualType RetTy, unsigned callingConvention) const argument
[all...]
/external/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp78 Intrinsic::ID IID, Type *RetTy, ArrayRef<Type *> ParamTys) const {
79 return PrevTTI->getIntrinsicCost(IID, RetTy, ParamTys);
83 Intrinsic::ID IID, Type *RetTy, ArrayRef<const Value *> Arguments) const {
84 return PrevTTI->getIntrinsicCost(IID, RetTy, Arguments);
204 Type *RetTy,
206 return PrevTTI->getIntrinsicInstrCost(ID, RetTy, Tys);
352 unsigned getIntrinsicCost(Intrinsic::ID IID, Type *RetTy, argument
375 unsigned getIntrinsicCost(Intrinsic::ID IID, Type *RetTy, argument
384 return TopTTI->getIntrinsicCost(IID, RetTy, ParamTys);
560 Type *RetTy,
77 getIntrinsicCost( Intrinsic::ID IID, Type *RetTy, ArrayRef<Type *> ParamTys) const argument
82 getIntrinsicCost( Intrinsic::ID IID, Type *RetTy, ArrayRef<const Value *> Arguments) const argument
203 getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy, ArrayRef<Type *> Tys) const argument
559 getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy, ArrayRef<Type*> Tys) const argument
[all...]
/external/llvm/lib/CodeGen/
H A DBasicTargetTransformInfo.cpp110 virtual unsigned getIntrinsicInstrCost(Intrinsic::ID, Type *RetTy,
414 unsigned BasicTTI::getIntrinsicInstrCost(Intrinsic::ID IID, Type *RetTy, argument
422 if (RetTy->isVectorTy()) {
423 ScalarizationCost = getScalarizationOverhead(RetTy, true, false);
424 ScalarCalls = std::max(ScalarCalls, RetTy->getVectorNumElements());
429 ScalarCalls = std::max(ScalarCalls, RetTy->getVectorNumElements());
461 std::pair<unsigned, MVT> LT = TLI->getTypeLegalizationCost(RetTy);
482 if (RetTy->isVectorTy()) {
483 unsigned Num = RetTy->getVectorNumElements();
484 unsigned Cost = TopTTI->getIntrinsicInstrCost(IID, RetTy
[all...]
H A DIntrinsicLowering.cpp30 Type *RetTy) {
35 M.getOrInsertFunction(Name, FunctionType::get(RetTy, ParamTys, false));
67 Type *RetTy) {
76 FunctionType::get(RetTy, ParamTys, false));
28 EnsureFunctionExists(Module &M, const char *Name, ArgIt ArgBegin, ArgIt ArgEnd, Type *RetTy) argument
65 ReplaceCallWith(const char *NewFn, CallInst *CI, ArgIt ArgBegin, ArgIt ArgEnd, Type *RetTy) argument
/external/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h148 virtual unsigned getIntrinsicCost(Intrinsic::ID IID, Type *RetTy,
154 virtual unsigned getIntrinsicCost(Intrinsic::ID IID, Type *RetTy,
337 virtual unsigned getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy,
/external/llvm/lib/IR/
H A DModule.cpp183 Type *RetTy, ...) {
185 va_start(Args, RetTy);
196 FunctionType::get(RetTy, ArgTys, false),
201 Type *RetTy, ...) {
203 va_start(Args, RetTy);
214 FunctionType::get(RetTy, ArgTys, false),
181 getOrInsertFunction(StringRef Name, AttributeSet AttributeList, Type *RetTy, ...) argument
200 getOrInsertFunction(StringRef Name, Type *RetTy, ...) argument
/external/llvm/include/llvm/Transforms/Utils/
H A DCodeExtractor.h54 Type *RetTy; member in class:llvm::CodeExtractor
/external/llvm/lib/Target/Mips/
H A DMips16ISelLowering.h41 (Type* RetTy, ArgListTy &Args, bool &needHelper) const;
H A DMips16ISelLowering.cpp369 (Type* RetTy, ArgListTy &Args, bool &needHelper) const {
379 if (RetTy->isFloatTy()) {
382 else if (RetTy ->isDoubleTy()) {
385 else if (RetTy->isStructTy()) {
387 if (RetTy->getNumContainedTypes() == 2) {
388 if ((RetTy->getContainedType(0)->isFloatTy()) &&
389 (RetTy->getContainedType(1)->isFloatTy())) {
392 else if ((RetTy->getContainedType(0)->isDoubleTy()) &&
393 (RetTy->getContainedType(1)->isDoubleTy())) {
463 getMips16HelperFunction(CLI.RetTy, CL
368 getMips16HelperFunction(Type* RetTy, ArgListTy &Args, bool &needHelper) const argument
[all...]
H A DMipsISelLowering.h262 const Type *RetTy) const;
265 bool IsSoftFloat, const Type *RetTy) const;
318 const SDNode *CallNode, const Type *RetTy) const;
341 const SDNode *CallNode, const Type *RetTy) const;
/external/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp232 Type *RetTy = FTy->getReturnType(); local
242 if (RetTy->isIntegerTy(32) || RetTy->isVoidTy()) {
286 switch (RetTy->getTypeID()) {
289 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth();
/external/clang/lib/StaticAnalyzer/Checkers/
H A DRetainCountChecker.cpp754 QualType RetTy,
785 Selector S, QualType RetTy);
788 Optional<RetEffect> getRetEffectFromAnnotations(QualType RetTy,
1051 QualType RetTy = FT->getResultType(); local
1063 S = (RetTy->isObjCIdType())
1144 if (RetTy->isPointerType()) {
1146 if (cocoa::isRefType(RetTy, "CF", FName)) {
1158 if (cocoa::isRefType(RetTy, "CG", FName)) {
1168 if (cocoa::isRefType(RetTy, "DADisk") ||
1169 cocoa::isRefType(RetTy, "DADissente
1283 getRetEffectFromAnnotations(QualType RetTy, const Decl *D) argument
1326 QualType RetTy = FD->getResultType(); local
1357 QualType RetTy = MD->getResultType(); local
1363 getStandardMethodSummary(const ObjCMethodDecl *MD, Selector S, QualType RetTy) argument
1492 getMethodSummary(Selector S, const ObjCInterfaceDecl *ID, const ObjCMethodDecl *MD, QualType RetTy, ObjCMethodSummariesTy &CachedSummaries) argument
2791 QualType RetTy = RetE->getType(); local
[all...]
H A DCallAndMessageChecker.cpp433 QualType RetTy = Msg.getResultType(); local
434 CanQualType CanRetTy = Ctx.getCanonicalType(RetTy);
439 SVal V = C.getSValBuilder().makeZeroVal(RetTy);
477 SVal V = C.getSValBuilder().makeZeroVal(RetTy);
/external/llvm/lib/ExecutionEngine/Interpreter/
H A DExternalFunctions.cpp218 Type *RetTy = FTy->getReturnType(); local
219 ffi_type *rtype = ffiTypeFor(RetTy);
223 if (RetTy->getTypeID() != Type::VoidTyID)
224 ret.resize(TD->getTypeStoreSize(RetTy));
226 switch (RetTy->getTypeID()) {
228 switch (cast<IntegerType>(RetTy)->getBitWidth()) {
/external/llvm/lib/ExecutionEngine/JIT/
H A DJIT.cpp396 Type *RetTy = FTy->getReturnType(); local
406 if (RetTy->isIntegerTy(32) || RetTy->isVoidTy()) {
455 switch (RetTy->getTypeID()) {
458 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth();
497 FunctionType *STy=FunctionType::get(RetTy, false);
/external/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp756 Type *RetTy = FTy->getReturnType(); local
783 if (RetTy->isVoidTy() || HasLiveReturnedArg) {
784 NRetTy = RetTy;
786 StructType *STy = dyn_cast<StructType>(RetTy);
803 RetTypes.push_back(RetTy);
918 if (NRetTy != RetTy && B.contains(Attribute::Returned))
970 assert(RetTy->isStructTy() &&
985 Value *RetVal = UndefValue::get(RetTy);
1045 assert (RetTy->isStructTy());
/external/llvm/include/llvm/IR/
H A DModule.h337 Type *RetTy, ...) END_WITH_NULL;
340 Constant *getOrInsertFunction(StringRef Name, Type *RetTy, ...)

Completed in 494 milliseconds

123