Home
last modified time | relevance | path

Searched refs:NumArgs (Results 1 – 25 of 107) sorted by relevance

12345

/external/clang/include/clang/Sema/
DParsedTemplate.h175 unsigned NumArgs; member
185 Allocate(unsigned NumArgs, SmallVectorImpl<TemplateIdAnnotation*> &List) { in Allocate()
188 sizeof(ParsedTemplateArgument) * NumArgs); in Allocate()
189 TemplateId->NumArgs = NumArgs; in Allocate()
196 for (unsigned I = 0; I != NumArgs; ++I) in Allocate()
DAttributeList.h97 unsigned NumArgs : 15; variable
153 + NumArgs)[index]; in getAvailabilitySlot()
157 + NumArgs)[index]; in getAvailabilitySlot()
177 return *reinterpret_cast<TypeTagForDatatypeData*>(getArgsBuffer()+NumArgs); in getTypeTagForDatatypeDataSlot()
182 + NumArgs); in getTypeTagForDatatypeDataSlot()
220 ScopeLoc(scopeLoc), EllipsisLoc(ellipsisLoc), NumArgs(numArgs), in AttributeList()
238 ScopeLoc(scopeLoc), EllipsisLoc(), NumArgs(1), SyntaxUsed(syntaxUsed), in AttributeList()
259 ScopeLoc(scopeLoc), EllipsisLoc(), NumArgs(3), SyntaxUsed(syntaxUsed), in AttributeList()
277 ScopeLoc(scopeLoc), EllipsisLoc(), NumArgs(1), SyntaxUsed(syntaxUsed), in AttributeList()
295 ScopeLoc(scopeLoc), EllipsisLoc(), NumArgs(0), SyntaxUsed(syntaxUsed), in AttributeList()
[all …]
/external/clang/lib/AST/
DTemplateBase.cpp93 unsigned NumArgs) { in CreatePackCopy() argument
94 if (NumArgs == 0) in CreatePackCopy()
97 TemplateArgument *Storage = new (Context) TemplateArgument [NumArgs]; in CreatePackCopy()
98 std::copy(Args, Args + NumArgs, Storage); in CreatePackCopy()
99 return TemplateArgument(Storage, NumArgs); in CreatePackCopy()
295 ID.AddInteger(Args.NumArgs); in Profile()
296 for (unsigned I = 0; I != Args.NumArgs; ++I) in Profile()
321 if (Args.NumArgs != Other.Args.NumArgs) return false; in structurallyEquals()
322 for (unsigned I = 0, E = Args.NumArgs; I != E; ++I) in structurallyEquals()
DDeclTemplate.cpp672 unsigned NumArgs) { in CreateCopy() argument
674 + NumArgs * sizeof(TemplateArgument); in CreateCopy()
679 std::uninitialized_copy(Args, Args + NumArgs, StoredArgs); in CreateCopy()
680 return new (Mem) TemplateArgumentList(StoredArgs, NumArgs, true); in CreateCopy()
716 unsigned NumArgs, in ClassTemplateSpecializationDecl() argument
723 TemplateArgs(TemplateArgumentList::CreateCopy(Context, Args, NumArgs)), in ClassTemplateSpecializationDecl()
740 unsigned NumArgs, in Create() argument
745 SpecializedTemplate, Args, NumArgs, PrevDecl); in Create()
830 unsigned NumArgs, in ClassTemplatePartialSpecializationDecl() argument
837 Args, NumArgs, PrevDecl), in ClassTemplatePartialSpecializationDecl()
[all …]
DCommentParser.cpp295 unsigned NumArgs) { in parseBlockCommandArgs() argument
298 new (Allocator.Allocate<Argument>(NumArgs)) Argument[NumArgs]; in parseBlockCommandArgs()
301 while (ParsedArgs < NumArgs && Retokenizer.lexWord(Arg)) { in parseBlockCommandArgs()
354 if (PC || TPC || Info->NumArgs > 0) { in parseBlockCommand()
364 parseBlockCommandArgs(BC, Retokenizer, Info->NumArgs); in parseBlockCommand()
DType.cpp1448 unsigned NumArgs, const TemplateArgument *Args, in DependentTemplateSpecializationType() argument
1453 NNS(NNS), Name(Name), NumArgs(NumArgs) { in DependentTemplateSpecializationType()
1456 for (unsigned I = 0; I != NumArgs; ++I) { in DependentTemplateSpecializationType()
1470 unsigned NumArgs, in Profile() argument
1475 for (unsigned Idx = 0; Idx < NumArgs; ++Idx) in Profile()
1998 const TemplateArgument *Args, unsigned NumArgs, in TemplateSpecializationType() argument
2006 Template(T), NumArgs(NumArgs), TypeAlias(!AliasedType.isNull()) { in TemplateSpecializationType()
2016 for (unsigned Arg = 0; Arg < NumArgs; ++Arg) { in TemplateSpecializationType()
2046 unsigned NumArgs, in Profile() argument
2049 for (unsigned Idx = 0; Idx < NumArgs; ++Idx) in Profile()
/external/clang/lib/StaticAnalyzer/Checkers/
DNonNullParamChecker.cpp53 unsigned NumArgs = Call.getNumArgs(); in checkPreCall() local
54 llvm::SmallBitVector AttrNonNull(NumArgs); in checkPreCall()
57 AttrNonNull.set(0, NumArgs); in checkPreCall()
61 if (Val >= NumArgs) in checkPreCall()
72 for (unsigned idx = 0; idx < NumArgs; ++idx) { in checkPreCall()
DObjCSelfInitChecker.cpp247 unsigned NumArgs = CE.getNumArgs(); in checkPreCall() local
253 for (unsigned i = 0; i < NumArgs; ++i) { in checkPreCall()
280 unsigned NumArgs = CE.getNumArgs(); in checkPostCall() local
281 for (unsigned i = 0; i < NumArgs; ++i) { in checkPostCall()
/external/llvm/include/llvm/Analysis/
DTargetTransformInfoImpl.h120 unsigned getCallCost(FunctionType *FTy, int NumArgs) { in getCallCost() argument
127 if (NumArgs < 0) in getCallCost()
130 NumArgs = FTy->getNumParams(); in getCallCost()
132 return TTI::TCC_Basic * (NumArgs + 1); in getCallCost()
360 unsigned getCallCost(const Function *F, int NumArgs) { in getCallCost() argument
363 if (NumArgs < 0) in getCallCost()
366 NumArgs = F->arg_size(); in getCallCost()
379 return static_cast<T *>(this)->getCallCost(F->getFunctionType(), NumArgs); in getCallCost()
DTargetTransformInfo.h150 unsigned getCallCost(FunctionType *FTy, int NumArgs = -1) const;
156 unsigned getCallCost(const Function *F, int NumArgs = -1) const;
525 virtual unsigned getCallCost(FunctionType *FTy, int NumArgs) = 0;
526 virtual unsigned getCallCost(const Function *F, int NumArgs) = 0;
615 unsigned getCallCost(FunctionType *FTy, int NumArgs) override { in getCallCost() argument
616 return Impl.getCallCost(FTy, NumArgs); in getCallCost()
618 unsigned getCallCost(const Function *F, int NumArgs) override { in getCallCost() argument
619 return Impl.getCallCost(F, NumArgs); in getCallCost()
/external/clang/lib/FrontendTool/
DExecuteCompilerInvocation.cpp197 unsigned NumArgs = Clang->getFrontendOpts().LLVMArgs.size(); in ExecuteCompilerInvocation() local
198 auto Args = llvm::make_unique<const char*[]>(NumArgs + 2); in ExecuteCompilerInvocation()
200 for (unsigned i = 0; i != NumArgs; ++i) in ExecuteCompilerInvocation()
202 Args[NumArgs + 1] = nullptr; in ExecuteCompilerInvocation()
203 llvm::cl::ParseCommandLineOptions(NumArgs + 1, Args.get()); in ExecuteCompilerInvocation()
/external/clang/include/clang/AST/
DTemplateBase.h97 unsigned NumArgs; member
201 TemplateArgument(const TemplateArgument *Args, unsigned NumArgs) { in TemplateArgument() argument
204 this->Args.NumArgs = NumArgs; in TemplateArgument()
215 unsigned NumArgs);
326 return Args.Args + Args.NumArgs; in pack_end()
339 return Args.NumArgs; in pack_size()
345 return llvm::makeArrayRef(Args.Args, Args.NumArgs); in getPackAsArray()
DExprCXX.h1089 unsigned NumArgs : 16; variable
1112 : Expr(SC, Empty), Constructor(nullptr), NumArgs(0), Elidable(false), in CXXConstructExpr()
1121 NumArgs(0), Elidable(false), HadMultipleCandidates(false), in CXXConstructExpr()
1190 arg_iterator arg_end() { return Args + NumArgs; } in arg_end()
1192 const_arg_iterator arg_end() const { return Args + NumArgs; } in arg_end()
1198 unsigned getNumArgs() const { return NumArgs; } in getNumArgs()
1202 assert(Arg < NumArgs && "Arg access out of range!"); in getArg()
1206 assert(Arg < NumArgs && "Arg access out of range!"); in getArg()
1212 assert(Arg < NumArgs && "Arg access out of range!"); in setArg()
1228 return child_range(&Args[0], &Args[0]+NumArgs); in children()
[all …]
DExprObjC.h898 unsigned NumArgs : NumArgsBitWidth;
902 NumArgs = Num;
938 ObjCMessageExpr(EmptyShell Empty, unsigned NumArgs)
941 setNumArgs(NumArgs);
1023 unsigned NumArgs,
1153 unsigned NumArgs,
1304 unsigned getNumArgs() const { return NumArgs; }
1317 assert(Arg < NumArgs && "Arg access out of range!");
1321 assert(Arg < NumArgs && "Arg access out of range!");
1326 assert(Arg < NumArgs && "Arg access out of range!");
[all …]
DDeclTemplate.h164 TemplateArgumentList(const TemplateArgument *Args, unsigned NumArgs, in TemplateArgumentList() argument
166 : Arguments(Args, Owned), NumArguments(NumArgs) { } in TemplateArgumentList()
177 unsigned NumArgs);
184 const TemplateArgument *Args, unsigned NumArgs) in TemplateArgumentList() argument
185 : Arguments(Args, false), NumArguments(NumArgs) { } in TemplateArgumentList()
469 unsigned NumArgs; member
511 return d.NumArgs; in getNumTemplateArgs()
1440 unsigned NumArgs,
1451 unsigned NumArgs,
1677 unsigned NumArgs,
[all …]
/external/compiler-rt/lib/ubsan/
Dubsan_diag.h177 unsigned NumArgs; variable
184 CHECK(NumArgs != MaxArgs); in AddArg()
185 Args[NumArgs++] = A; in AddArg()
201 : Loc(Loc), Level(Level), Message(Message), NumArgs(0), NumRanges(0) {} in Diag()
/external/clang/include/clang/Basic/
DDiagnostic.h867 mutable unsigned NumArgs; variable
884 : DiagObj(nullptr), NumArgs(0), IsActive(false), IsForceEmit(false) {} in DiagnosticBuilder()
887 : DiagObj(diagObj), NumArgs(0), IsActive(true), IsForceEmit(false) { in DiagnosticBuilder()
897 DiagObj->NumDiagArgs = NumArgs; in FlushCounts()
943 NumArgs = D.NumArgs; in DiagnosticBuilder()
973 assert(NumArgs < DiagnosticsEngine::MaxArguments && in AddString()
975 DiagObj->DiagArgumentsKind[NumArgs] = DiagnosticsEngine::ak_std_string; in AddString()
976 DiagObj->DiagArgumentsStr[NumArgs++] = S; in AddString()
981 assert(NumArgs < DiagnosticsEngine::MaxArguments && in AddTaggedVal()
983 DiagObj->DiagArgumentsKind[NumArgs] = Kind; in AddTaggedVal()
[all …]
/external/clang/include/clang/Lex/
DMacroInfo.h163 void setArgumentList(IdentifierInfo* const *List, unsigned NumArgs, in setArgumentList() argument
167 if (NumArgs == 0) return; in setArgumentList()
169 NumArguments = NumArgs; in setArgumentList()
170 ArgumentList = PPAllocator.Allocate<IdentifierInfo*>(NumArgs); in setArgumentList()
171 for (unsigned i = 0; i != NumArgs; ++i) in setArgumentList()
/external/clang/lib/Sema/
DAttributeList.cpp39 return (sizeof(AttributeList) + NumArgs * sizeof(ArgsUnion)); in allocated_size()
148 unsigned NumArgs : 4; member
171 return getInfo(*this).NumArgs; in getMinArgs()
DSemaTemplateDeduction.cpp109 const TemplateArgument *Args, unsigned NumArgs,
770 const QualType *Args, unsigned NumArgs, in DeduceTemplateArguments() argument
776 if (NumParams != NumArgs && in DeduceTemplateArguments()
778 !(NumArgs && isa<PackExpansionType>(Args[NumArgs - 1]))) in DeduceTemplateArguments()
795 if (ArgIdx >= NumArgs) in DeduceTemplateArguments()
835 for (; ArgIdx < NumArgs; ++ArgIdx) { in DeduceTemplateArguments()
855 if (ArgIdx < NumArgs) in DeduceTemplateArguments()
1771 unsigned &NumArgs) { in hasTemplateArgumentForDeduction() argument
1772 if (ArgIdx == NumArgs) in hasTemplateArgumentForDeduction()
1779 assert(ArgIdx == NumArgs - 1 && "Pack not at the end of argument list?"); in hasTemplateArgumentForDeduction()
[all …]
/external/clang/tools/driver/
Dcc1as_main.cpp481 unsigned NumArgs = Asm.LLVMArgs.size(); in cc1as_main() local
482 const char **Args = new const char*[NumArgs + 2]; in cc1as_main()
484 for (unsigned i = 0; i != NumArgs; ++i) in cc1as_main()
486 Args[NumArgs + 1] = nullptr; in cc1as_main()
487 llvm::cl::ParseCommandLineOptions(NumArgs + 1, Args); in cc1as_main()
/external/clang/include/clang/CodeGen/
DCGFunctionInfo.h374 unsigned NumArgs; variable
405 const_arg_iterator arg_end() const { return getArgsBuffer() + 1 + NumArgs; } in arg_end()
407 arg_iterator arg_end() { return getArgsBuffer() + 1 + NumArgs; } in arg_end()
409 unsigned arg_size() const { return NumArgs; } in arg_size()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExternalFunctions.cpp186 const unsigned NumArgs = F->arg_size(); in ffiInvoke() local
190 if (ArgVals.size() > NumArgs && F->isVarArg()) { in ffiInvoke()
197 std::vector<ffi_type*> args(NumArgs); in ffiInvoke()
209 SmallVector<void*, 16> values(NumArgs); in ffiInvoke()
221 if (ffi_prep_cif(&cif, FFI_DEFAULT_ABI, NumArgs, rtype, &args[0]) == FFI_OK) { in ffiInvoke()
/external/llvm/lib/CodeGen/SelectionDAG/
DFastISel.cpp676 unsigned NumArgs, const Value *Callee, in lowerCallOperands() argument
679 Args.reserve(NumArgs); in lowerCallOperands()
684 for (unsigned ArgI = ArgIdx, ArgE = ArgIdx + NumArgs, AttrI = ArgIdx + 1; in lowerCallOperands()
699 CLI.setCallee(CI->getCallingConv(), RetTy, Callee, std::move(Args), NumArgs); in lowerCallOperands()
721 unsigned NumArgs = NumArgsVal->getZExtValue(); in selectPatchpoint() local
726 assert(I->getNumArgOperands() >= NumMetaOpers + NumArgs && in selectPatchpoint()
730 unsigned NumCallArgs = IsAnyRegCC ? 0 : NumArgs; in selectPatchpoint()
779 unsigned NumCallRegArgs = IsAnyRegCC ? NumArgs : CLI.OutRegs.size(); in selectPatchpoint()
788 for (unsigned i = NumMetaOpers, e = NumMetaOpers + NumArgs; i != e; ++i) { in selectPatchpoint()
801 if (!addStackMapLiveVars(Ops, I, NumMetaOpers + NumArgs)) in selectPatchpoint()
[all …]
/external/llvm/lib/ExecutionEngine/
DExecutionEngineBindings.cpp255 unsigned NumArgs, in LLVMRunFunction() argument
260 ArgVec.reserve(NumArgs); in LLVMRunFunction()
261 for (unsigned I = 0; I != NumArgs; ++I) in LLVMRunFunction()

12345