Home
last modified time | relevance | path

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

1234567

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A 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()
155 RetTy visit##OPCODE(CLASS &I) { \
166 RetTy visitICmpInst(ICmpInst &I) { DELEGATE(CmpInst);} in visitICmpInst()
167 RetTy visitFCmpInst(FCmpInst &I) { DELEGATE(CmpInst);} in visitFCmpInst()
168 RetTy visitAllocaInst(AllocaInst &I) { DELEGATE(UnaryInstruction);} in visitAllocaInst()
169 RetTy visitLoadInst(LoadInst &I) { DELEGATE(UnaryInstruction);} in visitLoadInst()
170 RetTy visitStoreInst(StoreInst &I) { DELEGATE(Instruction);} in visitStoreInst()
171 RetTy visitAtomicCmpXchgInst(AtomicCmpXchgInst &I) { DELEGATE(Instruction);} in visitAtomicCmpXchgInst()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DPNaCl.cpp26 ABIArgInfo classifyReturnType(QualType RetTy) const;
27 ABIArgInfo classifyArgumentType(QualType RetTy) const;
86 ABIArgInfo PNaClABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
87 if (RetTy->isVoidType()) in classifyReturnType()
91 if (isAggregateTypeForABI(RetTy)) in classifyReturnType()
92 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
95 if (const auto *EIT = RetTy->getAs<BitIntType>()) { in classifyReturnType()
97 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
102 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
103 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
[all …]
H A DMips.cpp27 llvm::Type* returnAggregateInRegs(QualType RetTy, uint64_t Size) const;
34 ABIArgInfo classifyReturnType(QualType RetTy) const;
35 ABIArgInfo classifyArgumentType(QualType RetTy, uint64_t &Offset) const;
245 MipsABIInfo::returnAggregateInRegs(QualType RetTy, uint64_t Size) const { in returnAggregateInRegs() argument
246 const RecordType *RT = RetTy->getAs<RecordType>(); in returnAggregateInRegs()
286 ABIArgInfo MipsABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
287 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
289 if (RetTy->isVoidType()) in classifyReturnType()
297 if (isAggregateTypeForABI(RetTy) || RetTy->isVectorType()) { in classifyReturnType()
299 if (RetTy->isAnyComplexType()) in classifyReturnType()
[all …]
H A DBPF.cpp61 ABIArgInfo classifyReturnType(QualType RetTy) const { in classifyReturnType()
62 if (RetTy->isVoidType()) in classifyReturnType()
65 if (isAggregateTypeForABI(RetTy)) in classifyReturnType()
66 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
69 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
70 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
73 if (const auto *EIT = RetTy->getAs<BitIntType>()) in classifyReturnType()
75 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
H A DARM.cpp68 ABIArgInfo classifyReturnType(QualType RetTy, bool isVariadic,
70 ABIArgInfo classifyArgumentType(QualType RetTy, bool isVariadic,
529 ABIArgInfo ARMABIInfo::classifyReturnType(QualType RetTy, bool isVariadic, in classifyReturnType() argument
536 if (RetTy->isVoidType()) in classifyReturnType()
539 if (const VectorType *VT = RetTy->getAs<VectorType>()) { in classifyReturnType()
541 if (getContext().getTypeSize(RetTy) > 128) in classifyReturnType()
542 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
550 return coerceIllegalVector(RetTy); in classifyReturnType()
553 if (!isAggregateTypeForABI(RetTy)) { in classifyReturnType()
555 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
[all …]
H A DHexagon.cpp26 ABIArgInfo classifyReturnType(QualType RetTy) const;
27 ABIArgInfo classifyArgumentType(QualType RetTy) const;
28 ABIArgInfo classifyArgumentType(QualType RetTy, unsigned *RegsLeft) const;
137 ABIArgInfo HexagonABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
138 if (RetTy->isVoidType()) in classifyReturnType()
142 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
144 if (RetTy->getAs<VectorType>()) { in classifyReturnType()
154 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
157 if (!isAggregateTypeForABI(RetTy)) { in classifyReturnType()
159 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
[all …]
H A DMSP430.cpp31 ABIArgInfo classifyReturnType(QualType RetTy) const { in classifyReturnType()
32 if (RetTy->isAnyComplexType()) in classifyReturnType()
35 return DefaultABIInfo::classifyReturnType(RetTy); in classifyReturnType()
38 ABIArgInfo classifyArgumentType(QualType RetTy) const { in classifyArgumentType()
39 if (RetTy->isAnyComplexType()) in classifyArgumentType()
42 return DefaultABIInfo::classifyArgumentType(RetTy); in classifyArgumentType()
H A DPPC.cpp118 ABIArgInfo classifyReturnType(QualType RetTy) const;
181 ABIArgInfo AIXABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
182 if (RetTy->isAnyComplexType()) in classifyReturnType()
185 if (RetTy->isVectorType()) in classifyReturnType()
188 if (RetTy->isVoidType()) in classifyReturnType()
191 if (isAggregateTypeForABI(RetTy)) in classifyReturnType()
192 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
194 return (isPromotableTypeForABI(RetTy) ? ABIArgInfo::getExtend(RetTy) in classifyReturnType()
339 ABIArgInfo classifyReturnType(QualType RetTy) const;
396 ABIArgInfo PPC32_SVR4_ABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
[all …]
H A DWebAssembly.cpp31 ABIArgInfo classifyReturnType(QualType RetTy) const;
135 ABIArgInfo WebAssemblyABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
136 if (isAggregateTypeForABI(RetTy)) { in classifyReturnType()
139 if (!getRecordArgABI(RetTy, getCXXABI())) { in classifyReturnType()
141 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
146 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
155 return defaultInfo.classifyReturnType(RetTy); in classifyReturnType()
H A DCSKY.cpp34 ABIArgInfo classifyReturnType(QualType RetTy) const;
43 QualType RetTy = FI.getReturnType(); in computeInfo() local
45 FI.getReturnInfo() = classifyReturnType(RetTy); in computeInfo()
150 ABIArgInfo CSKYABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
151 if (RetTy->isVoidType()) in classifyReturnType()
159 return classifyArgumentType(RetTy, ArgGPRsLeft, ArgFPRsLeft, true); in classifyReturnType()
H A DNVPTX.cpp31 ABIArgInfo classifyReturnType(QualType RetTy) const;
151 ABIArgInfo NVPTXABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
152 if (RetTy->isVoidType()) in classifyReturnType()
157 isUnsupportedType(RetTy)) in classifyReturnType()
158 return coerceToIntArrayWithLimit(RetTy, 64); in classifyReturnType()
161 if (!RetTy->isScalarType()) in classifyReturnType()
165 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
166 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
168 return (isPromotableIntegerTypeForABI(RetTy) ? ABIArgInfo::getExtend(RetTy) in classifyReturnType()
H A DARC.cpp61 ABIArgInfo classifyReturnType(QualType RetTy) const;
141 ABIArgInfo ARCABIInfo::classifyReturnType(QualType RetTy) const { in classifyReturnType()
142 if (RetTy->isAnyComplexType()) in classifyReturnType()
146 auto RetSize = llvm::alignTo(getContext().getTypeSize(RetTy), 32) / 32; in classifyReturnType()
148 return getIndirectByRef(RetTy, /*HasFreeRegs*/ true); in classifyReturnType()
150 return DefaultABIInfo::classifyReturnType(RetTy); in classifyReturnType()
H A DAArch64.cpp37 ABIArgInfo classifyReturnType(QualType RetTy, bool IsVariadic) const;
38 ABIArgInfo classifyArgumentType(QualType RetTy, bool IsVariadic,
385 ABIArgInfo AArch64ABIInfo::classifyReturnType(QualType RetTy, in classifyReturnType() argument
387 if (RetTy->isVoidType()) in classifyReturnType()
390 if (const auto *VT = RetTy->getAs<VectorType>()) { in classifyReturnType()
393 return coerceIllegalVector(RetTy); in classifyReturnType()
397 if (RetTy->isVectorType() && getContext().getTypeSize(RetTy) > 128) in classifyReturnType()
398 return getNaturalAlignIndirect(RetTy); in classifyReturnType()
400 if (!isAggregateTypeForABI(RetTy)) { in classifyReturnType()
402 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DAttrVisitor.h24 typename RetTy = void, class... ParamTys>
31 RetTy Visit(PTR(Attr) A) { in Visit()
45 RetTy Visit##NAME##Attr(PTR(NAME##Attr) A) { DISPATCH(Attr); }
48 RetTy VisitAttr(PTR(Attr)) { return RetTy(); } in VisitAttr()
60 template <typename ImplClass, typename RetTy = void, typename... ParamTys>
61 class AttrVisitor : public attrvisitor::Base<std::add_pointer, ImplClass, RetTy,
68 template <typename ImplClass, typename RetTy = void, typename... ParamTys>
70 : public attrvisitor::Base<llvm::make_const_ptr, ImplClass, RetTy,
H A DDeclVisitor.h30 template<template <typename> class Ptr, typename ImplClass, typename RetTy=void>
37 RetTy Visit(PTR(Decl) D) { in Visit()
50 RetTy Visit##DERIVED##Decl(PTR(DERIVED##Decl) D) { DISPATCH(BASE, BASE); }
53 RetTy VisitDecl(PTR(Decl) D) { return RetTy(); } in VisitDecl()
65 template <typename ImplClass, typename RetTy = void>
67 : public declvisitor::Base<std::add_pointer, ImplClass, RetTy> {};
72 template <typename ImplClass, typename RetTy = void>
74 : public declvisitor::Base<llvm::make_const_ptr, ImplClass, RetTy> {};
H A DTypeLocVisitor.h24 template<typename ImplClass, typename RetTy=void>
27 RetTy Visit(TypeLoc TyLoc) { in Visit()
37 RetTy Visit(UnqualTypeLoc TyLoc) { in Visit()
48 RetTy Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
53 RetTy VisitTypeLoc(TypeLoc TyLoc) { return RetTy(); } in VisitTypeLoc()
H A DStmtVisitor.h35 template<template <typename> class Ptr, typename ImplClass, typename RetTy=void,
44 RetTy Visit(PTR(Stmt) S, ParamTys... P) { in Visit()
118 RetTy Visit ## CLASS(PTR(CLASS) S, ParamTys... P) { DISPATCH(PARENT, PARENT); }
124 RetTy VisitBin ## NAME(PTR(BinaryOperator) S, ParamTys... P) { \
146 RetTy VisitBin ## NAME(PTR(CompoundAssignOperator) S, ParamTys... P) { \ in BINOP_FALLBACK()
158 RetTy VisitUnary ## NAME(PTR(UnaryOperator) S, ParamTys... P) { \
172 RetTy VisitStmt(PTR(Stmt) Node, ParamTys... P) { return RetTy(); }
183 template <typename ImplClass, typename RetTy = void, typename... ParamTys>
185 : public StmtVisitorBase<std::add_pointer, ImplClass, RetTy, ParamTys...> {
193 template <typename ImplClass, typename RetTy = void, typename... ParamTys>
[all …]
H A DNonTrivialTypeVisitor.h21 template <class Derived, class RetTy = void> struct DestructedTypeVisitor {
22 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { in visit()
28 RetTy visitWithKind(QualType::DestructionKind DK, QualType FT, in visitWithKind()
49 template <class Derived, class RetTy = void>
51 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { in visit()
58 RetTy visitWithKind(QualType::PrimitiveDefaultInitializeKind PDIK, in visitWithKind()
77 template <class Derived, bool IsMove, class RetTy = void>
79 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { in visit()
87 RetTy visitWithKind(QualType::PrimitiveCopyKind PCK, QualType FT, in visitWithKind()
H A DTypeVisitor.h63 template<typename ImplClass, typename RetTy=void>
68 RetTy Visit(const Type *T) { in Visit()
80 #define TYPE(CLASS, PARENT) RetTy Visit##CLASS##Type(const CLASS##Type *T) { \
87 RetTy VisitType(const Type*) { return RetTy(); } in VisitType()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsCCState.h48 const Type *RetTy, const char * Func);
68 const Type *RetTy);
145 void PreAnalyzeCallResult(const Type *RetTy, const char *Func) { in PreAnalyzeCallResult() argument
146 OriginalArgWasF128.push_back(originalTypeIsF128(RetTy, Func)); in PreAnalyzeCallResult()
147 OriginalArgWasFloat.push_back(RetTy->isFloatingPointTy()); in PreAnalyzeCallResult()
148 OriginalRetWasFloatVector.push_back(originalTypeIsVectorFloat(RetTy)); in PreAnalyzeCallResult()
152 CCAssignFn Fn, const Type *RetTy, in PreAnalyzeCallResult() argument
157 PreAnalyzeCallResultForF128(Ins, RetTy, Func); in PreAnalyzeCallResult()
158 PreAnalyzeCallResultForVectorFloat(Ins, RetTy); in PreAnalyzeCallResult()
162 CCAssignFn Fn, const Type *RetTy, in AnalyzeCallResult() argument
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h843 InstructionCost getScalarizationOverhead(VectorType *RetTy, in getScalarizationOverhead() argument
848 RetTy, /*Insert*/ true, /*Extract*/ false, CostKind); in getScalarizationOverhead()
854 Cost += getScalarizationOverhead(RetTy, /*Insert*/ false, in getScalarizationOverhead()
1563 Type *RetTy = ICA.getReturnType(); in getIntrinsicInstrCost() local
1566 (RetTy->isVectorTy() ? cast<VectorType>(RetTy)->getElementCount() in getIntrinsicInstrCost()
1587 Instruction::FMul, RetTy, CostKind); in getIntrinsicInstrCost()
1589 Cost += thisT()->getArithmeticInstrCost(Instruction::FDiv, RetTy, in getIntrinsicInstrCost()
1597 if (RetVF.isScalar() && getTLI()->isCheapToSpeculateCttz(RetTy)) in getIntrinsicInstrCost()
1603 if (RetVF.isScalar() && getTLI()->isCheapToSpeculateCtlz(RetTy)) in getIntrinsicInstrCost()
1622 return thisT()->getGatherScatterOpCost(Instruction::Load, RetTy, Args[0], in getIntrinsicInstrCost()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DirectXIRPasses/
H A DPointerTypeAnalysis.cpp88 Type *RetTy = F.getReturnType(); in classifyFunctionType() local
90 if (RetTy->isPointerTy()) { in classifyFunctionType()
91 RetTy = nullptr; in classifyFunctionType()
98 if (!RetTy) in classifyFunctionType()
99 RetTy = NewRetTy; in classifyFunctionType()
100 else if (RetTy != NewRetTy) in classifyFunctionType()
101 RetTy = TypedPointerType::get( in classifyFunctionType()
105 if (!RetTy) in classifyFunctionType()
106 RetTy = TypedPointerType::get( in classifyFunctionType()
116 TypedPointerType::get(FunctionType::get(RetTy, NewArgs, false), 0); in classifyFunctionType()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSMTConv.h349 QualType RTy, QualType *RetTy) { in getBinExpr() argument
355 if (RetTy) { in getBinExpr()
361 *RetTy = Ctx.BoolTy; in getBinExpr()
363 *RetTy = LTy; in getBinExpr()
369 *RetTy = Ctx.getPointerDiffType(); in getBinExpr()
385 QualType *RetTy) { in getSymBinExpr() argument
396 return getBinExpr(Solver, Ctx, LHS, LTy, Op, RHS, RTy, RetTy); in getSymBinExpr()
406 return getBinExpr(Solver, Ctx, LHS, LTy, Op, RHS, RTy, RetTy); in getSymBinExpr()
414 return getBinExpr(Solver, Ctx, LHS, LTy, Op, RHS, RTy, RetTy); in getSymBinExpr()
424 QualType *RetTy, in getSymExpr() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp339 Type *RetTy = F->getReturnType(); in numRetVals() local
340 if (RetTy->isVoidTy()) in numRetVals()
342 if (StructType *STy = dyn_cast<StructType>(RetTy)) in numRetVals()
344 if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) in numRetVals()
353 Type *RetTy = F->getReturnType(); in getRetComponentType() local
354 assert(!RetTy->isVoidTy() && "void type has no subtype"); in getRetComponentType()
356 if (StructType *STy = dyn_cast<StructType>(RetTy)) in getRetComponentType()
358 if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) in getRetComponentType()
360 return RetTy; in getRetComponentType()
775 Type *RetTy = FTy->getReturnType(); in removeDeadStuffFromFunction() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.cpp109 Type *RetTy = FTy->getReturnType(); in fixFunctionTypeIfPtrArgs() local
111 if (!RetTy->isPointerTy()) in fixFunctionTypeIfPtrArgs()
117 const Type *RetTy = GR->getTypeForSPIRVType(SRetTy); in fixFunctionTypeIfPtrArgs() local
121 return FunctionType::get(const_cast<Type *>(RetTy), ArgTys, false); in fixFunctionTypeIfPtrArgs()
132 Type *RetTy = F.getFunctionType()->getReturnType(); in getOriginalFunctionType() local
156 RetTy = CMeta->getType(); in getOriginalFunctionType()
162 return FunctionType::get(RetTy, ArgTypes, F.isVarArg()); in getOriginalFunctionType()
388 SPIRVType *RetTy = GR->getOrCreateSPIRVType(FRetTy, MIRBuilder); in lowerFormalArguments() local
389 FTy = fixFunctionTypeIfPtrArgs(GR, F, FTy, RetTy, ArgTypeVRegs); in lowerFormalArguments()
391 FTy, RetTy, ArgTypeVRegs, MIRBuilder); in lowerFormalArguments()
[all …]

1234567