Home
last modified time | relevance | path

Searched refs:NumParams (Results 1 – 25 of 62) 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.cpp352 unsigned NumParams; in tryParseObjCMethodName() local
356 NumParams = SlotNames.size(); in tryParseObjCMethodName()
361 NumParams = 0; in tryParseObjCMethodName()
371 return NumParams; in tryParseObjCMethodName()
638 std::optional<unsigned> NumParams = tryParseObjCMethodName( in DoEmitAvailabilityWarning() local
640 if (NumParams && *NumParams == Sel.getNumArgs()) { in DoEmitAvailabilityWarning()
H A DDeclSpec.cpp162 unsigned NumParams, in getFunction() argument
200 I.Fun.NumParams = NumParams; in getFunction()
233 if (NumParams) { in getFunction()
239 NumParams <= std::size(TheDeclarator.InlineParams)) { in getFunction()
241 new (I.Fun.Params) ParamInfo[NumParams]; in getFunction()
245 I.Fun.Params = new DeclaratorChunk::ParamInfo[NumParams]; in getFunction()
248 for (unsigned i = 0; i < NumParams; i++) in getFunction()
428 if (Fun.NumParams) { in isExplicitObjectMemberFunction()
H A DSemaX86.cpp997 unsigned NumParams = getFunctionOrMethodNumParams(D); in handleAnyInterruptAttr() local
998 if (NumParams < 1 || NumParams > 2) { in handleAnyInterruptAttr()
1021 if (NumParams == 2 && in handleAnyInterruptAttr()
/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.cpp1795 unsigned NumParams = FD->getNumParams(); in printNestedNameSpecifier() local
1796 for (unsigned i = 0; i < NumParams; ++i) { in printNestedNameSpecifier()
1803 if (NumParams > 0) in printNestedNameSpecifier()
5334 NumParams = NewParamInfo.size(); in setParams()
5536 OutlinedFunctionDecl::OutlinedFunctionDecl(DeclContext *DC, unsigned NumParams) in OutlinedFunctionDecl() argument
5538 DeclContext(OutlinedFunction), NumParams(NumParams), in OutlinedFunctionDecl()
5543 unsigned NumParams) { in Create() argument
5544 return new (C, DC, additionalSizeToAlloc<ImplicitParamDecl *>(NumParams)) in Create()
5545 OutlinedFunctionDecl(DC, NumParams); in Create()
5550 unsigned NumParams) { in CreateDeserialized() argument
[all …]
H A DExprCXX.cpp1791 unsigned NumParams, in FunctionParmPackExpr() argument
1794 ParamPack(ParamPack), NameLoc(NameLoc), NumParameters(NumParams) { in FunctionParmPackExpr()
1796 std::uninitialized_copy(Params, Params + NumParams, getTrailingObjects()); in FunctionParmPackExpr()
1811 unsigned NumParams) { in CreateEmpty() argument
1812 return new (Context.Allocate(totalSizeToAlloc<ValueDecl *>(NumParams))) in CreateEmpty()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAddMissingPrototypes.cpp80 unsigned NumParams = F.getFunctionType()->getNumParams(); in runOnModule() local
81 if (NumParams != 0) { in runOnModule()
82 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 DDecl.h4635 unsigned NumParams = 0; variable
4684 unsigned getNumParams() const { return NumParams; } in getNumParams()
4790 unsigned NumParams;
4795 explicit OutlinedFunctionDecl(DeclContext *DC, unsigned NumParams);
4807 unsigned NumParams);
4809 CreateDeserialized(ASTContext &C, GlobalDeclID ID, unsigned NumParams);
4817 unsigned getNumParams() const { return NumParams; } in getNumParams()
4820 assert(i < NumParams); in getParam()
4824 assert(i < NumParams); in setParam()
4835 parameter_const_iterator param_end() const { return getParams() + NumParams; } in param_end()
[all …]
H A DDeclTemplate.h85 unsigned NumParams : 29; variable
107 return NumParams; in numTrailingObjects()
136 iterator end() { return begin() + NumParams; } in end()
137 const_iterator end() const { return begin() + NumParams; } in end()
139 unsigned size() const { return NumParams; } in size()
140 bool empty() const { return NumParams == 0; } in empty()
2469 unsigned NumParams = 0;
2481 TemplateParameterList **Params, unsigned NumParams,
2483 : Decl(Decl::FriendTemplate, DC, Loc), NumParams(NumParams),
2518 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 {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()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVFABIDemangler.cpp612 for (unsigned Pos = 0, NumParams = Parameters.size(); Pos < NumParams; in hasValidParameterList() local
633 if (Parameters[Pos].LinearStepOrPos >= int(NumParams)) in hasValidParameterList()
646 for (unsigned NextPos = Pos + 1; NextPos < NumParams; ++NextPos) in hasValidParameterList()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DHotColdSplitting.cpp353 int NumParams = NumInputs + NumOutputsAndSplitPhis; in getOutliningPenalty() local
354 if (NumParams > MaxParametersForSplit) { in getOutliningPenalty()
361 LLVM_DEBUG(dbgs() << "Applying penalty for: " << NumParams << " params\n"); in getOutliningPenalty()
362 Penalty += CostForArgMaterialization * NumParams; in getOutliningPenalty()
/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.h258 unsigned NumParams);
H A DDeclSpec.h1402 unsigned NumParams; member
1467 for (unsigned I = 0; I < NumParams; ++I) in freeParams()
1473 NumParams = 0; in freeParams()
1507 bool isKNRPrototype() const { return !hasPrototype && NumParams != 0; } in isKNRPrototype()
1716 ParamInfo *Params, unsigned NumParams,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp415 unsigned NumParams = Callee->getFunctionType()->getNumParams(); in isLegalToPromote() local
422 if (NumArgs != NumParams && !Callee->isVarArg()) { in isLegalToPromote()
432 for (; I < NumParams; ++I) { in isLegalToPromote()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetLibraryInfo.cpp1117 unsigned NumParams = FTy.getNumParams(); in isValidProtoForLibFunc() local
1125 if (!RetTy->isFloatingPointTy() || NumParams == 0) in isValidProtoForLibFunc()
1132 if (NumParams == 1) in isValidProtoForLibFunc()
1135 else if (NumParams == 2) in isValidProtoForLibFunc()
1144 if (NumParams != 1) in isValidProtoForLibFunc()
1208 if (Idx == NumParams) { in isValidProtoForLibFunc()
1221 return Idx == NumParams + 1 && !FTy.isFunctionVarArg(); in isValidProtoForLibFunc()
H A DMemoryBuiltins.cpp106 unsigned NumParams; member
207 FTy->getNumParams() == FnData->NumParams && in getAllocationDataForFunction()
255 Result.NumParams = CB->arg_size(); in getAllocationSize()
452 unsigned NumParams; member
540 if (FTy->getNumParams() != FnData->NumParams) in isLibFreeFunction()
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp667 unsigned NumParams = Block.getNumParams(); in getFragmentsForBlock() local
669 if (!BlockProto || NumParams == 0) { in getFragmentsForBlock()
676 for (unsigned I = 0; I != NumParams; ++I) { in getFragmentsForBlock()
680 if (I == NumParams - 1 && BlockProto.getTypePtr()->isVariadic()) in getFragmentsForBlock()
747 unsigned NumParams = Func->getNumParams(); in getFragmentsForFunction() local
748 for (unsigned i = 0; i != NumParams; ++i) { in getFragmentsForFunction()
755 if (NumParams > 0) in getFragmentsForFunction()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp1134 unsigned NumParams = Record.readInt(); in VisitFunctionDecl() local
1136 Params.reserve(NumParams); in VisitFunctionDecl()
1137 for (unsigned I = 0; I != NumParams; ++I) in VisitFunctionDecl()
1191 unsigned NumParams = Record.readInt(); in VisitObjCMethodDecl() local
1193 Params.reserve(NumParams); in VisitObjCMethodDecl()
1194 for (unsigned I = 0; I != NumParams; ++I) in VisitObjCMethodDecl()
1778 unsigned NumParams = Record.readInt(); in VisitBlockDecl() local
1780 Params.reserve(NumParams); in VisitBlockDecl()
1781 for (unsigned I = 0; I != NumParams; ++I) in VisitBlockDecl()
1810 for (unsigned I = 0; I < D->NumParams; ++I) in VisitOutlinedFunctionDecl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibFunc.cpp1047 const unsigned NumParams = FuncTy->getNumParams(); in isCompatibleSignature() local
1048 if (NumParams != CallTy->getNumParams()) in isCompatibleSignature()
1051 for (unsigned I = 0; I != NumParams; ++I) { in isCompatibleSignature()
/freebsd/contrib/llvm-project/llvm/tools/llvm-dwarfdump/
H A DStatistics.cpp101 uint64_t NumParams = 0; member
457 FnStats.NumParams++; in collectStatsForDie()
1008 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