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

123

/external/llvm/include/llvm/Support/
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.h19 template<template <typename> class Ptr, typename ImplClass, typename RetTy=void>
26 RetTy visit(PTR(Comment) C) {
28 return RetTy();
45 RetTy visit ## CLASS(PTR(CLASS) C) { DISPATCH(PARENT, PARENT); }
50 RetTy visitComment(PTR(Comment) C) { return RetTy(); }
56 template<typename ImplClass, typename RetTy=void>
58 public CommentVisitorBase<make_ptr, ImplClass, RetTy> {};
60 template<typename ImplClass, typename RetTy=void>
62 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.h28 template<typename ImplClass, typename RetTy=void>
31 RetTy Visit(Decl *D) {
44 RetTy Visit##DERIVED##Decl(DERIVED##Decl *D) { DISPATCH(BASE, BASE); }
47 RetTy VisitDecl(Decl *D) { return RetTy(); }
H A DTypeVisitor.h25 template<typename ImplClass, typename RetTy=void>
28 RetTy Visit(const Type *T) {
40 #define TYPE(CLASS, PARENT) RetTy Visit##CLASS##Type(const CLASS##Type *T) { \
46 RetTy VisitType(const Type*) { return RetTy(); }
H A DStmtVisitor.h30 template<template <typename> class Ptr, typename ImplClass, typename RetTy=void>
38 RetTy Visit(PTR(Stmt) S) {
111 RetTy Visit ## CLASS(PTR(CLASS) S) { DISPATCH(PARENT, PARENT); }
117 RetTy VisitBin ## NAME(PTR(BinaryOperator) S) { \
137 RetTy VisitBin ## NAME(PTR(CompoundAssignOperator) S) { \
149 RetTy VisitUnary ## NAME(PTR(UnaryOperator) S) { \
163 RetTy VisitStmt(PTR(Stmt) Node) { return RetTy(); }
174 template<typename ImplClass, typename RetTy=void>
176 : public StmtVisitorBase<make_ptr, ImplClass, RetTy> {};
[all...]
/external/clang/include/clang/Analysis/Visitors/
H A DCFGStmtVisitor.h29 #define DEFAULT_BLOCKSTMT_VISIT(CLASS) RetTy BlockStmt_Visit ## CLASS(CLASS *S)\
34 template <typename ImplClass, typename RetTy=void>
35 class CFGStmtVisitor : public StmtVisitor<ImplClass,RetTy> {
50 RetTy Visit(Stmt *S) {
53 return StmtVisitor<ImplClass,RetTy>::Visit(S);
55 return RetTy();
61 RetTy VisitConditionVariableInit(Stmt *S) {
62 return RetTy();
70 RetTy BlockStmt_Visit(Stmt *S) {
109 RetTy BlockStmt_VisitObjCForCollectionStm
[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.cpp334 ABIArgInfo classifyReturnType(QualType RetTy) const;
335 ABIArgInfo classifyArgumentType(QualType RetTy) const;
377 ABIArgInfo DefaultABIInfo::classifyReturnType(QualType RetTy) const {
378 if (RetTy->isVoidType())
381 if (isAggregateTypeForABI(RetTy))
385 if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
386 RetTy = EnumTy->getDecl()->getIntegerType();
388 return (RetTy->isPromotableIntegerType() ?
400 ABIArgInfo classifyReturnType(QualType RetTy) const;
401 ABIArgInfo classifyArgumentType(QualType RetTy, unsigne
639 classifyReturnType(QualType RetTy, unsigned callingConvention) const argument
[all...]
H A DCGCall.cpp66 static CanQualType GetReturnType(QualType RetTy) { argument
67 return RetTy->getCanonicalTypeUnqualified().getUnqualifiedType();
972 QualType RetTy = FI.getReturnType(); local
977 if (RetTy->hasSignedIntegerRepresentation())
979 else if (RetTy->hasUnsignedIntegerRepresentation())
1104 QualType RetTy = FD->getResultType().getUnqualifiedType(); local
1105 llvm::Type* LLVMTy = CGM.getTypes().ConvertType(RetTy);
1515 QualType RetTy = FI.getReturnType(); local
1520 unsigned Alignment = getContext().getTypeAlignInChars(RetTy).getQuantity();
1521 if (RetTy
1928 QualType RetTy = CallInfo.getReturnType(); local
[all...]
H A DCodeGenFunction.cpp330 void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, argument
339 FnRetTy = RetTy;
385 getContext().getFunctionType(RetTy, ArgsArray, NumArgs,
400 if (RetTy->isVoidType()) {
409 ReturnValue = CreateIRTemp(RetTy, "retval");
416 RetTy->isObjCRetainableType())
/external/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp159 Type *RetTy = FTy->getReturnType(); local
169 if (RetTy->isIntegerTy(32) || RetTy->isVoidTy()) {
213 switch (RetTy->getTypeID()) {
216 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth();
/external/llvm/include/llvm/Transforms/Utils/
H A DCodeExtractor.h54 Type *RetTy; member in class:llvm::CodeExtractor
/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()) {
H A DInterpreter.h241 void popStackAndReturnValueToCaller(Type *RetTy, GenericValue Result);
/external/llvm/lib/VMCore/
H A DModule.cpp201 Type *RetTy, ...) {
203 va_start(Args, RetTy);
214 FunctionType::get(RetTy, ArgTys, false),
219 Type *RetTy, ...) {
221 va_start(Args, RetTy);
232 FunctionType::get(RetTy, ArgTys, false),
199 getOrInsertFunction(StringRef Name, AttrListPtr AttributeList, Type *RetTy, ...) argument
218 getOrInsertFunction(StringRef Name, Type *RetTy, ...) argument
/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/clang/lib/StaticAnalyzer/Checkers/
H A DCallAndMessageChecker.cpp398 QualType RetTy = Msg.getResultType(); local
399 CanQualType CanRetTy = Ctx.getCanonicalType(RetTy);
404 SVal V = C.getSValBuilder().makeZeroVal(RetTy);
441 SVal V = C.getSValBuilder().makeZeroVal(RetTy);
H A DRetainCountChecker.cpp765 QualType RetTy,
796 Selector S, QualType RetTy);
1059 QualType RetTy = FT->getResultType(); local
1071 S = (RetTy->isObjCIdType())
1150 if (RetTy->isPointerType()) {
1157 if (cocoa::isRefType(RetTy, "CF", FName)) {
1169 if (cocoa::isRefType(RetTy, "CG", FName)) {
1179 if (cocoa::isRefType(RetTy, "DADisk") ||
1180 cocoa::isRefType(RetTy, "DADissenter") ||
1181 cocoa::isRefType(RetTy, "DASessionRe
1311 QualType RetTy = FD->getResultType(); local
1393 getStandardMethodSummary(const ObjCMethodDecl *MD, Selector S, QualType RetTy) argument
1522 getMethodSummary(Selector S, const ObjCInterfaceDecl *ID, const ObjCMethodDecl *MD, QualType RetTy, ObjCMethodSummariesTy &CachedSummaries) argument
2746 QualType RetTy = RetE->getType(); local
[all...]
/external/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp662 Type *RetTy = FTy->getReturnType(); local
669 if (RetTy->isVoidTy()) {
670 NRetTy = RetTy;
672 StructType *STy = dyn_cast<StructType>(RetTy);
689 RetTypes.push_back(RetTy);
848 assert(RetTy->isStructTy() &&
863 Value *RetVal = UndefValue::get(RetTy);
923 assert (RetTy->isStructTy());
/external/llvm/lib/CodeGen/
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/
H A DModule.h335 Type *RetTy, ...) END_WITH_NULL;
338 Constant *getOrInsertFunction(StringRef Name, Type *RetTy, ...)
/external/llvm/lib/Transforms/Utils/
H A DCodeExtractor.cpp302 case 1: RetTy = Type::getVoidTy(header->getContext()); break;
303 case 2: RetTy = Type::getInt1Ty(header->getContext()); break;
304 default: RetTy = Type::getInt16Ty(header->getContext()); break;
327 DEBUG(dbgs() << "Function type: " << *RetTy << " f(");
340 FunctionType::get(RetTy, paramTy, false);
/external/clang/lib/AST/
H A DExprConstant.cpp2293 // FIXME: RetTy is always bool. Remove it.
2294 template <class Derived, typename RetTy=bool>
2296 : public ConstStmtVisitor<Derived, RetTy> {
2298 RetTy DerivedSuccess(const APValue &V, const Expr *E) {
2301 RetTy DerivedZeroInitialization(const Expr *E) {
2346 typedef ConstStmtVisitor<Derived, RetTy> StmtVisitorTy;
2353 RetTy ZeroInitialization(const Expr *E) { return Error(E); }
2370 RetTy VisitStmt(const Stmt *) {
2373 RetTy VisitExpr(const Expr *E) {
2377 RetTy VisitParenExp
[all...]

Completed in 515 milliseconds

123