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

123

/freebsd-10-stable/contrib/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...]
/freebsd-10-stable/contrib/llvm/tools/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...]
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/Analysis/DomainSpecific/
H A DCocoaConventions.h27 bool isRefType(QualType RetTy, StringRef Prefix,
/freebsd-10-stable/contrib/llvm/tools/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>();
/freebsd-10-stable/contrib/llvm/tools/clang/lib/CodeGen/
H A DTargetInfo.cpp371 ABIArgInfo classifyReturnType(QualType RetTy) const;
372 ABIArgInfo classifyArgumentType(QualType RetTy) const;
414 ABIArgInfo DefaultABIInfo::classifyReturnType(QualType RetTy) const {
415 if (RetTy->isVoidType())
418 if (isAggregateTypeForABI(RetTy))
422 if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
423 RetTy = EnumTy->getDecl()->getIntegerType();
425 return (RetTy->isPromotableIntegerType() ?
440 ABIArgInfo classifyReturnType(QualType RetTy) const;
441 ABIArgInfo classifyArgumentType(QualType RetTy) cons
680 classifyReturnType(QualType RetTy, unsigned callingConvention) const argument
[all...]
/freebsd-10-stable/contrib/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);
213 Type *RetTy,
215 return PrevTTI->getIntrinsicInstrCost(ID, RetTy, Tys);
374 unsigned getIntrinsicCost(Intrinsic::ID IID, Type *RetTy, argument
397 unsigned getIntrinsicCost(Intrinsic::ID IID, Type *RetTy, argument
406 return TopTTI->getIntrinsicCost(IID, RetTy, ParamTys);
588 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
212 getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy, ArrayRef<Type *> Tys) const argument
587 getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy, ArrayRef<Type*> Tys) const argument
[all...]
/freebsd-10-stable/contrib/llvm/lib/CodeGen/
H A DBasicTargetTransformInfo.cpp112 virtual unsigned getIntrinsicInstrCost(Intrinsic::ID, Type *RetTy,
425 unsigned BasicTTI::getIntrinsicInstrCost(Intrinsic::ID IID, Type *RetTy, argument
433 if (RetTy->isVectorTy()) {
434 ScalarizationCost = getScalarizationOverhead(RetTy, true, false);
435 ScalarCalls = std::max(ScalarCalls, RetTy->getVectorNumElements());
440 ScalarCalls = std::max(ScalarCalls, RetTy->getVectorNumElements());
474 std::pair<unsigned, MVT> LT = TLI->getTypeLegalizationCost(RetTy);
495 if (RetTy->isVectorTy()) {
496 unsigned Num = RetTy->getVectorNumElements();
497 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
/freebsd-10-stable/contrib/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h149 virtual unsigned getIntrinsicCost(Intrinsic::ID IID, Type *RetTy,
155 virtual unsigned getIntrinsicCost(Intrinsic::ID IID, Type *RetTy,
388 virtual unsigned getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy,
/freebsd-10-stable/contrib/llvm/include/llvm/Transforms/Utils/
H A DCodeExtractor.h54 Type *RetTy; member in class:llvm::CodeExtractor
/freebsd-10-stable/contrib/llvm/lib/Target/Mips/
H A DMips16ISelLowering.h41 (Type* RetTy, ArgListTy &Args, bool &needHelper) const;
H A DMips16ISelLowering.cpp375 (Type* RetTy, ArgListTy &Args, bool &needHelper) const {
385 if (RetTy->isFloatTy()) {
388 else if (RetTy ->isDoubleTy()) {
391 else if (RetTy->isStructTy()) {
393 if (RetTy->getNumContainedTypes() == 2) {
394 if ((RetTy->getContainedType(0)->isFloatTy()) &&
395 (RetTy->getContainedType(1)->isFloatTy())) {
398 else if ((RetTy->getContainedType(0)->isDoubleTy()) &&
399 (RetTy->getContainedType(1)->isDoubleTy())) {
471 getMips16HelperFunction(CLI.RetTy, CL
374 getMips16HelperFunction(Type* RetTy, ArgListTy &Args, bool &needHelper) const argument
[all...]
H A DMipsISelLowering.h360 const Type *RetTy) const;
363 bool IsSoftFloat, const Type *RetTy) const;
416 const SDNode *CallNode, const Type *RetTy) const;
461 const SDNode *CallNode, const Type *RetTy) const;
/freebsd-10-stable/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DRetainCountChecker.cpp673 QualType RetTy,
704 Selector S, QualType RetTy);
707 Optional<RetEffect> getRetEffectFromAnnotations(QualType RetTy,
974 QualType RetTy = FT->getResultType(); local
986 S = (RetTy->isObjCIdType())
1067 if (RetTy->isPointerType()) {
1069 if (cocoa::isRefType(RetTy, "CF", FName)) {
1088 if (cocoa::isRefType(RetTy, "CG", FName)) {
1098 if (cocoa::isRefType(RetTy, "DADisk") ||
1099 cocoa::isRefType(RetTy, "DADissente
1214 getRetEffectFromAnnotations(QualType RetTy, const Decl *D) argument
1257 QualType RetTy = FD->getResultType(); local
1288 QualType RetTy = MD->getResultType(); local
1294 getStandardMethodSummary(const ObjCMethodDecl *MD, Selector S, QualType RetTy) argument
1423 getMethodSummary(Selector S, const ObjCInterfaceDecl *ID, const ObjCMethodDecl *MD, QualType RetTy, ObjCMethodSummariesTy &CachedSummaries) argument
2714 QualType RetTy = RetE->getType(); local
[all...]
H A DCallAndMessageChecker.cpp461 QualType RetTy = Msg.getResultType(); local
462 CanQualType CanRetTy = Ctx.getCanonicalType(RetTy);
467 SVal V = C.getSValBuilder().makeZeroVal(RetTy);
505 SVal V = C.getSValBuilder().makeZeroVal(RetTy);
/freebsd-10-stable/contrib/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
/freebsd-10-stable/contrib/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp388 Type *RetTy = FTy->getReturnType(); local
398 if (RetTy->isIntegerTy(32) || RetTy->isVoidTy()) {
442 switch (RetTy->getTypeID()) {
445 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth();
/freebsd-10-stable/contrib/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()) {
/freebsd-10-stable/contrib/llvm/lib/ExecutionEngine/JIT/
H A DJIT.cpp240 Type *RetTy = FTy->getReturnType(); local
250 if (RetTy->isIntegerTy(32) || RetTy->isVoidTy()) {
299 switch (RetTy->getTypeID()) {
302 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth();
341 FunctionType *STy=FunctionType::get(RetTy, false);
/freebsd-10-stable/contrib/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp769 Type *RetTy = FTy->getReturnType(); local
796 if (RetTy->isVoidTy() || HasLiveReturnedArg) {
797 NRetTy = RetTy;
799 StructType *STy = dyn_cast<StructType>(RetTy);
816 RetTypes.push_back(RetTy);
931 if (NRetTy != RetTy && B.contains(Attribute::Returned))
983 assert(RetTy->isStructTy() &&
998 Value *RetVal = UndefValue::get(RetTy);
1058 assert (RetTy->isStructTy());
/freebsd-10-stable/contrib/llvm/include/llvm/IR/
H A DModule.h337 Type *RetTy, ...) END_WITH_NULL;
340 Constant *getOrInsertFunction(StringRef Name, Type *RetTy, ...)

Completed in 585 milliseconds

123