Home
last modified time | relevance | path

Searched refs:NumParams (Results 1 – 25 of 59) sorted by relevance

123

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaMSP430.cpp57 std::optional<llvm::APSInt> NumParams = llvm::APSInt(32); in handleInterruptAttr() local
58 if (!(NumParams = NumParamsExpr->getIntegerConstantExpr(getASTContext()))) { in handleInterruptAttr()
65 unsigned Num = NumParams->getLimitedValue(255); in handleInterruptAttr()
68 << AL << (int)NumParams->getSExtValue() in handleInterruptAttr()
H A DSemaAvailability.cpp333 unsigned NumParams; in tryParseObjCMethodName() local
337 NumParams = SlotNames.size(); in tryParseObjCMethodName()
342 NumParams = 0; in tryParseObjCMethodName()
352 return NumParams; in tryParseObjCMethodName()
595 std::optional<unsigned> NumParams = tryParseObjCMethodName( in DoEmitAvailabilityWarning() local
597 if (NumParams && *NumParams == Sel.getNumArgs()) { in DoEmitAvailabilityWarning()
H A DDeclSpec.cpp165 unsigned NumParams, in getFunction() argument
203 I.Fun.NumParams = NumParams; in getFunction()
236 if (NumParams) { in getFunction()
242 NumParams <= std::size(TheDeclarator.InlineParams)) { in getFunction()
244 new (I.Fun.Params) ParamInfo[NumParams]; in getFunction()
248 I.Fun.Params = new DeclaratorChunk::ParamInfo[NumParams]; in getFunction()
251 for (unsigned i = 0; i < NumParams; i++) in getFunction()
429 if (Fun.NumParams) { in isExplicitObjectMemberFunction()
H A DSemaX86.cpp910 unsigned NumParams = getFunctionOrMethodNumParams(D); in handleAnyInterruptAttr() local
911 if (NumParams < 1 || NumParams > 2) { in handleAnyInterruptAttr()
934 if (NumParams == 2 && in handleAnyInterruptAttr()
H A DSemaAPINotes.cpp477 unsigned NumParams = FD ? FD->getNumParams() : MD->param_size(); in ProcessAPINotes() local
480 for (unsigned I = 0; I != NumParams; ++I) { in ProcessAPINotes()
H A DSemaCast.cpp1169 unsigned NumParams = SrcFPTy->getNumParams(); in checkCastFunctionType() local
1171 if (NumParams > DstNumParams) { in checkCastFunctionType()
1174 NumParams = DstNumParams; in checkCastFunctionType()
1175 } else if (NumParams < DstNumParams) { in checkCastFunctionType()
1180 for (unsigned i = 0; i < NumParams; ++i) in checkCastFunctionType()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmtCXX.cpp97 unsigned NumParams) { in Create() argument
99 CoroutineBodyStmt::FirstParamMove + NumParams); in Create()
103 Result->NumParams = NumParams; in Create()
105 std::uninitialized_fill(ParamBegin, ParamBegin + NumParams, in Create()
111 : Stmt(CoroutineBodyStmtClass), NumParams(Args.ParamMoves.size()) { in CoroutineBodyStmt()
H A DDecl.cpp1778 unsigned NumParams = FD->getNumParams(); in printNestedNameSpecifier() local
1779 for (unsigned i = 0; i < NumParams; ++i) { in printNestedNameSpecifier()
1786 if (NumParams > 0) in printNestedNameSpecifier()
5222 NumParams = NewParamInfo.size(); in setParams()
5412 CapturedDecl::CapturedDecl(DeclContext *DC, unsigned NumParams) in CapturedDecl() argument
5414 NumParams(NumParams), ContextParam(0), BodyAndNothrow(nullptr, false) {} in CapturedDecl()
5417 unsigned NumParams) { in Create() argument
5418 return new (C, DC, additionalSizeToAlloc<ImplicitParamDecl *>(NumParams)) in Create()
5419 CapturedDecl(DC, NumParams); in Create()
5423 unsigned NumParams) { in CreateDeserialized() argument
[all …]
H A DExprCXX.cpp1785 unsigned NumParams, in FunctionParmPackExpr() argument
1788 ParamPack(ParamPack), NameLoc(NameLoc), NumParameters(NumParams) { in FunctionParmPackExpr()
1790 std::uninitialized_copy(Params, Params + NumParams, in FunctionParmPackExpr()
1806 unsigned NumParams) { in CreateEmpty() argument
1807 return new (Context.Allocate(totalSizeToAlloc<VarDecl *>(NumParams))) in CreateEmpty()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAddMissingPrototypes.cpp81 unsigned NumParams = F.getFunctionType()->getNumParams(); in runOnModule() local
82 if (NumParams != 0) { in runOnModule()
83 if (!(NumParams == 1 && F.arg_begin()->hasStructRetAttr())) in runOnModule()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmtCXX.h336 unsigned NumParams; variable
371 unsigned NumParams);
424 return {getStoredStmts() + SubStmt::FirstParamMove, NumParams}; in getParamMoves()
437 getStoredStmts() + SubStmt::FirstParamMove + NumParams); in children()
443 NumParams); in children()
448 getStoredStmts() + SubStmt::FirstParamMove + NumParams); in childrenExclBody()
454 NumParams); in childrenExclBody()
H A DDeclTemplate.h82 unsigned NumParams : 29; variable
104 return NumParams; in numTrailingObjects()
133 iterator end() { return begin() + NumParams; } in end()
134 const_iterator end() const { return begin() + NumParams; } in end()
136 unsigned size() const { return NumParams; } in size()
137 bool empty() const { return NumParams == 0; } in empty()
2442 unsigned NumParams = 0;
2454 TemplateParameterList **Params, unsigned NumParams,
2456 : Decl(Decl::FriendTemplate, DC, Loc), NumParams(NumParams),
2491 assert(i <= NumParams);
[all …]
H A DDeclObjC.h153 unsigned NumParams = 0; variable
193 return reinterpret_cast<SourceLocation *>(getParams() + NumParams); in getStoredSelLocs()
196 return reinterpret_cast<const SourceLocation *>(getParams() + NumParams); in getStoredSelLocs()
347 unsigned param_size() const { return NumParams; } in param_size()
359 return param_const_iterator(getParams() + NumParams); in param_end()
363 param_iterator param_end() { return param_iterator(getParams() + NumParams); } in param_end()
374 return llvm::ArrayRef(const_cast<ParmVarDecl **>(getParams()), NumParams); in parameters()
378 assert(Idx < NumParams && "Index out of bounds!"); in getParamDecl()
663 unsigned NumParams; variable
686 unsigned size() const { return NumParams; } in size()
H A DDecl.h4522 unsigned NumParams = 0; variable
4571 unsigned getNumParams() const { return NumParams; } in getNumParams()
4669 return NumParams; in numTrailingObjects()
4674 unsigned NumParams;
4682 explicit CapturedDecl(DeclContext *DC, unsigned NumParams);
4698 unsigned NumParams);
4700 unsigned NumParams);
4708 unsigned getNumParams() const { return NumParams; } in getNumParams()
4711 assert(i < NumParams); in getParam()
4715 assert(i < NumParams); in setParam()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DHotColdSplitting.cpp354 int NumParams = NumInputs + NumOutputsAndSplitPhis; in getOutliningPenalty() local
355 if (NumParams > MaxParametersForSplit) { in getOutliningPenalty()
362 LLVM_DEBUG(dbgs() << "Applying penalty for: " << NumParams << " params\n"); in getOutliningPenalty()
363 Penalty += CostForArgMaterialization * NumParams; in getOutliningPenalty()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp413 unsigned NumParams = Callee->getFunctionType()->getNumParams(); in isLegalToPromote() local
420 if (NumArgs != NumParams && !Callee->isVarArg()) { in isLegalToPromote()
430 for (; I < NumParams; ++I) { in isLegalToPromote()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaInternal.h26 return FTI.NumParams == 1 && !FTI.isVariadic && in FTIHasSingleVoidParameter()
34 return FTI.NumParams && !FTIHasSingleVoidParameter(FTI); in FTIHasNonVoidParameters()
H A DParsedTemplate.h260 unsigned NumParams);
H A DDeclSpec.h1400 unsigned NumParams; member
1465 for (unsigned I = 0; I < NumParams; ++I) in freeParams()
1471 NumParams = 0; in freeParams()
1505 bool isKNRPrototype() const { return !hasPrototype && NumParams != 0; } in isKNRPrototype()
1714 ParamInfo *Params, unsigned NumParams,
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetLibraryInfo.cpp1051 unsigned NumParams = FTy.getNumParams(); in isValidProtoForLibFunc() local
1066 if (NumParams == 1) in isValidProtoForLibFunc()
1069 else if (NumParams == 2) in isValidProtoForLibFunc()
1078 if (NumParams != 1) in isValidProtoForLibFunc()
1136 if (Idx == NumParams) { in isValidProtoForLibFunc()
1149 return Idx == NumParams + 1 && !FTy.isFunctionVarArg(); in isValidProtoForLibFunc()
H A DMemoryBuiltins.cpp107 unsigned NumParams; member
210 FTy->getNumParams() == FnData->NumParams && in getAllocationDataForFunction()
267 Result.NumParams = Callee->getNumOperands(); in getAllocationSize()
461 unsigned NumParams; member
550 if (FTy->getNumParams() != FnData->NumParams) in isLibFreeFunction()
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp653 unsigned NumParams = Block.getNumParams(); in getFragmentsForBlock() local
655 if (!BlockProto || NumParams == 0) { in getFragmentsForBlock()
662 for (unsigned I = 0; I != NumParams; ++I) { in getFragmentsForBlock()
666 if (I == NumParams - 1 && BlockProto.getTypePtr()->isVariadic()) in getFragmentsForBlock()
731 unsigned NumParams = Func->getNumParams(); in getFragmentsForFunction() local
732 for (unsigned i = 0; i != NumParams; ++i) { in getFragmentsForFunction()
739 if (NumParams > 0) in getFragmentsForFunction()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp1146 unsigned NumParams = Record.readInt(); in VisitFunctionDecl() local
1148 Params.reserve(NumParams); in VisitFunctionDecl()
1149 for (unsigned I = 0; I != NumParams; ++I) in VisitFunctionDecl()
1184 unsigned NumParams = Record.readInt(); in VisitObjCMethodDecl() local
1186 Params.reserve(NumParams); in VisitObjCMethodDecl()
1187 for (unsigned I = 0; I != NumParams; ++I) in VisitObjCMethodDecl()
1767 unsigned NumParams = Record.readInt(); in VisitBlockDecl() local
1769 Params.reserve(NumParams); in VisitBlockDecl()
1770 for (unsigned I = 0; I != NumParams; ++I) in VisitBlockDecl()
1801 for (unsigned I = 0; I < CD->NumParams; ++I) { in VisitCapturedDecl()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-dwarfdump/
H A DStatistics.cpp101 uint64_t NumParams = 0; member
457 FnStats.NumParams++; in collectStatsForDie()
1004 ParamTotal += Stats.NumParams; in collectStatsForObjectFile()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.h149 BTFTypeFuncProto(const DISubroutineType *STy, uint32_t NumParams,

123