Home
last modified time | relevance | path

Searched refs:ArgNo (Results 1 – 25 of 75) sorted by relevance

123

/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DStdLibraryFunctionsChecker.cpp91 typedef uint32_t ArgNo; typedef in __anondd300ad00111::StdLibraryFunctionsChecker
92 static const ArgNo Ret;
235 ArgNo OtherArgN;
312 BufferSizeConstraint(ArgNo Buffer, ArgNo BufSize) in BufferSizeConstraint()
314 BufferSizeConstraint(ArgNo Buffer, ArgNo BufSize, ArgNo BufSizeMultiplier) in BufferSizeConstraint()
2084 BufferSize(/*Buffer=*/ArgNo(1), /*BufSize=*/ArgNo(2))) in initFunctionSummaries()
2264 BufferSize(/*Buffer=*/ArgNo(3), /*BufSize=*/ArgNo(4))) in initFunctionSummaries()
2316 BufferSize(/*Buffer=*/ArgNo(0), /*BufSize=*/ArgNo(1))) in initFunctionSummaries()
2320 BufferSize(/*Buffer=*/ArgNo(2), /*BufSize=*/ArgNo(3))) in initFunctionSummaries()
2324 BufferSize(/*Buffer=*/ArgNo(4), /*BufSize=*/ArgNo(5))) in initFunctionSummaries()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DAttributes.h562 Attribute Attr = getAttribute(ArgNo, Kind);
563 auto Attrs = removeAttribute(C, ArgNo, Kind);
642 return hasAttribute(ArgNo + FirstArgIndex, Kind);
647 return hasAttribute(ArgNo + FirstArgIndex, Kind);
651 bool hasParamAttrs(unsigned ArgNo) const {
652 return hasAttributes(ArgNo + FirstArgIndex);
698 Type *getParamByValType(unsigned ArgNo) const;
701 Type *getParamStructRetType(unsigned ArgNo) const;
704 Type *getParamByRefType(unsigned ArgNo) const;
710 Type *getParamInAllocaType(unsigned ArgNo) const;
[all …]
H A DFunction.h417 void addParamAttr(unsigned ArgNo, Attribute Attr);
442 void removeParamUndefImplyingAttrs(unsigned ArgNo);
487 unsigned getParamAlignment(unsigned ArgNo) const { in getParamAlignment() argument
488 if (const auto MA = getParamAlign(ArgNo)) in getParamAlignment()
493 MaybeAlign getParamAlign(unsigned ArgNo) const { in getParamAlign() argument
494 return AttributeSets.getParamAlignment(ArgNo); in getParamAlign()
502 Type *getParamByValType(unsigned ArgNo) const { in getParamByValType() argument
503 return AttributeSets.getParamByValType(ArgNo); in getParamByValType()
512 Type *getParamInAllocaType(unsigned ArgNo) const { in getParamInAllocaType() argument
517 Type *getParamByRefType(unsigned ArgNo) const { in getParamByRefType() argument
[all …]
H A DAbstractCallSite.h169 int getCallArgOperandNo(unsigned ArgNo) const { in getCallArgOperandNo() argument
171 return ArgNo; in getCallArgOperandNo()
173 return CI.ParameterEncoding[ArgNo + 1]; in getCallArgOperandNo()
183 Value *getCallArgOperand(unsigned ArgNo) const { in getCallArgOperand() argument
185 return CB->getArgOperand(ArgNo); in getCallArgOperand()
187 return CI.ParameterEncoding[ArgNo + 1] >= 0 in getCallArgOperand()
188 ? CB->getArgOperand(CI.ParameterEncoding[ArgNo + 1]) in getCallArgOperand()
H A DInstrTypes.h1651 bool isByValArgument(unsigned ArgNo) const {
1652 return paramHasAttr(ArgNo, Attribute::ByVal);
1656 bool isInAllocaArgument(unsigned ArgNo) const {
1657 return paramHasAttr(ArgNo, Attribute::InAlloca);
1663 return paramHasAttr(ArgNo, Attribute::ByVal) ||
1671 bool isPassingUndefUB(unsigned ArgNo) const {
1709 MaybeAlign getParamAlign(unsigned ArgNo) const {
1710 return Attrs.getParamAlignment(ArgNo);
1714 return Attrs.getParamStackAlignment(ArgNo);
1718 Type *getParamByValType(unsigned ArgNo) const {
[all …]
H A DArgument.h31 unsigned ArgNo; variable
39 unsigned ArgNo = 0);
49 return ArgNo; in getArgNo()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExternalFunctions.cpp211 const unsigned ArgNo = A->getArgNo(); in ffiInvoke() local
212 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke()
213 args[ArgNo] = ffiTypeFor(ArgTy); in ffiInvoke()
223 const unsigned ArgNo = A->getArgNo(); in ffiInvoke() local
224 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke()
225 values[ArgNo] = ffiValueFor(ArgTy, ArgVals[ArgNo], ArgDataPtr); in ffiInvoke()
341 unsigned ArgNo = 2; in lle_X_sprintf() local
398 sprintf(Buffer, FmtBuf, Args[ArgNo++].DoubleVal); break; in lle_X_sprintf()
400 sprintf(Buffer, FmtBuf, (void*)GVTOP(Args[ArgNo++])); break; in lle_X_sprintf()
402 sprintf(Buffer, FmtBuf, (char*)GVTOP(Args[ArgNo++])); break; in lle_X_sprintf()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DCallSiteSplitting.cpp89 unsigned ArgNo = 0; in addNonNullAttribute() local
92 CB.addParamAttr(ArgNo, Attribute::NonNull); in addNonNullAttribute()
93 ++ArgNo; in addNonNullAttribute()
99 unsigned ArgNo = 0; in setConstantInArgument() local
104 CB.removeParamAttr(ArgNo, Attribute::NonNull); in setConstantInArgument()
105 CB.setArgOperand(ArgNo, ConstValue); in setConstantInArgument()
107 ++ArgNo; in setConstantInArgument()
114 unsigned ArgNo = 0; in isCondRelevantToAnyCallArgument() local
117 if (isa<Constant>(*I) || CB.paramHasAttr(ArgNo, Attribute::NonNull)) in isCondRelevantToAnyCallArgument()
340 unsigned ArgNo = 0; in splitCallSite() local
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUHSAMetadataStreamer.cpp291 auto ArgNo = Arg.getArgNo(); in emitKernelArg() local
296 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg()
303 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg()
308 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg()
317 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg()
323 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg()
685 auto ArgNo = Arg.getArgNo(); in emitKernelArg() local
690 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg()
697 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg()
702 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg()
[all …]
H A DAMDGPUAliasAnalysis.cpp157 unsigned ArgNo = Arg->getArgNo(); in pointsToConstantMemory() local
165 if (F->hasParamAttribute(ArgNo, Attribute::NoAlias) && in pointsToConstantMemory()
166 (F->hasParamAttribute(ArgNo, Attribute::ReadNone) || in pointsToConstantMemory()
167 F->hasParamAttribute(ArgNo, Attribute::ReadOnly))) { in pointsToConstantMemory()
/freebsd-13.1/contrib/llvm-project/llvm/utils/TableGen/
H A DCodeGenTarget.cpp883 unsigned ArgNo = R->getValueAsInt("ArgNo"); in setProperty() local
886 unsigned ArgNo = R->getValueAsInt("ArgNo"); in setProperty() local
887 ArgumentAttributes.emplace_back(ArgNo, NoAlias, 0); in setProperty()
889 unsigned ArgNo = R->getValueAsInt("ArgNo"); in setProperty() local
892 unsigned ArgNo = R->getValueAsInt("ArgNo"); in setProperty() local
895 unsigned ArgNo = R->getValueAsInt("ArgNo"); in setProperty() local
898 unsigned ArgNo = R->getValueAsInt("ArgNo"); in setProperty() local
901 unsigned ArgNo = R->getValueAsInt("ArgNo"); in setProperty() local
904 unsigned ArgNo = R->getValueAsInt("ArgNo"); in setProperty() local
905 ArgumentAttributes.emplace_back(ArgNo, ImmArg, 0); in setProperty()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp479 for (unsigned ArgNo = 0; ArgNo < CalleeParamNum; ++ArgNo) { in promoteCall() local
480 auto *Arg = CB.getArgOperand(ArgNo); in promoteCall()
481 Type *FormalTy = CalleeType->getParamType(ArgNo); in promoteCall()
485 CB.setArgOperand(ArgNo, Cast); in promoteCall()
488 AttrBuilder ArgAttrs(CallerPAL.getParamAttributes(ArgNo)); in promoteCall()
494 ArgAttrs.addByValAttr(Callee->getParamByValType(ArgNo)); in promoteCall()
499 NewArgAttrs.push_back(CallerPAL.getParamAttributes(ArgNo)); in promoteCall()
H A DBuildLibCalls.cpp109 F.addParamAttr(ArgNo, Attribute::NoCapture); in setDoesNotCapture()
115 if (F.hasParamAttribute(ArgNo, Attribute::NoAlias)) in setDoesNotAlias()
117 F.addParamAttr(ArgNo, Attribute::NoAlias); in setDoesNotAlias()
125 F.addParamAttr(ArgNo, Attribute::ReadOnly); in setOnlyReadsMemory()
133 F.addParamAttr(ArgNo, Attribute::WriteOnly); in setOnlyWritesMemory()
139 if (F.hasParamAttribute(ArgNo, Attribute::SExt)) in setSignExtendedArg()
141 F.addParamAttr(ArgNo, Attribute::SExt); in setSignExtendedArg()
158 for (unsigned ArgNo = 0; ArgNo < F.arg_size(); ++ArgNo) { in setArgsNoUndef() local
160 F.addParamAttr(ArgNo, Attribute::NoUndef); in setArgsNoUndef()
171 F.addParamAttr(ArgNo, Attribute::NoUndef); in setArgNoUndef()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp137 unsigned ArgNo = 0; in doPromotion() local
139 ++I, ++ArgNo) { in doPromotion()
151 ArgAttrVec.push_back(PAL.getParamAttributes(ArgNo)); in doPromotion()
255 ArgNo = 0; in doPromotion()
257 ++I, ++AI, ++ArgNo) in doPromotion()
326 for (; AI != CB.arg_end(); ++AI, ++ArgNo) { in doPromotion()
485 unsigned ArgNo = Arg->getArgNo(); in allCallersPassValidPointerForArgument() local
933 unsigned ArgNo = PtrArg->getArgNo(); in promoteArguments() local
934 F->removeParamAttr(ArgNo, Attribute::StructRet); in promoteArguments()
935 F->addParamAttr(ArgNo, Attribute::NoAlias); in promoteArguments()
[all …]
H A DDeadArgumentElimination.cpp190 for (unsigned ArgNo = 0; ArgNo < NumArgs; ++ArgNo) in DeleteDeadVarargs() local
191 ArgAttrs.push_back(PAL.getParamAttributes(ArgNo)); in DeleteDeadVarargs()
313 unsigned ArgNo = UnusedArgs[I]; in RemoveDeadArgumentsFromCallers() local
315 Value *Arg = CB->getArgOperand(ArgNo); in RemoveDeadArgumentsFromCallers()
316 CB->setArgOperand(ArgNo, UndefValue::get(Arg->getType())); in RemoveDeadArgumentsFromCallers()
317 CB->removeParamAttrs(ArgNo, UBImplyingAttributes); in RemoveDeadArgumentsFromCallers()
442 unsigned ArgNo = CB->getArgOperandNo(U); in SurveyUse() local
444 if (ArgNo >= F->getFunctionType()->getNumParams()) in SurveyUse()
448 assert(CB->getArgOperand(ArgNo) == CB->getOperand(U->getOperandNo()) && in SurveyUse()
453 RetOrArg Use = CreateArg(F, ArgNo); in SurveyUse()
H A DFunctionSpecialization.cpp511 unsigned ArgNo = Arg.getArgNo(); in rewriteCallSites() local
522 if ((CS->getFunction() == Clone && CS->getArgOperand(ArgNo) == &Arg) || in rewriteCallSites()
523 CS->getArgOperand(ArgNo) == C) { in rewriteCallSites()
H A DAttributorAttributes.cpp587 int ArgNo = Pos.getCallSiteArgNo(); in getArgumentStateFromCallBaseContext() local
588 assert(ArgNo >= 0 && "Invalid Arg No!"); in getArgumentStateFromCallBaseContext()
1387 if (ArgNo == 0) { in updateImpl()
1390 } else if (ArgNo == 1) { in updateImpl()
2130 unsigned ArgNo = CB->getArgOperandNo(U); in getKnownNonNullAndDerefBytesForUse() local
4711 int ArgNo = IRP.getCalleeArgNo(); in determineFunctionCaptureCapabilities() local
4712 if (F.doesNotThrow() && ArgNo >= 0) { in determineFunctionCaptureCapabilities()
4715 if (u == unsigned(ArgNo)) in determineFunctionCaptureCapabilities()
6450 unsigned ArgNo = Arg->getArgNo(); in updateImpl() local
6478 if (CBArgNo != int(ArgNo)) in updateImpl()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Lex/
H A DTokenLexer.cpp371 assert((ArgNo != -1 || VCtx.isVAOptToken(Tokens[I + 1])) && in ExpandFunctionArguments()
374 if (ArgNo == -1) { in ExpandFunctionArguments()
387 const Token *UnexpArg = ActualArgs->getUnexpArgument(ArgNo); in ExpandFunctionArguments()
417 int ArgNo = II ? Macro->getParameterNum(II) : -1; in ExpandFunctionArguments() local
418 if (ArgNo == -1) { in ExpandFunctionArguments()
442 Macro, ArgNo, PP)) in ExpandFunctionArguments()
453 const Token *ArgTok = ActualArgs->getUnexpArgument(ArgNo); in ExpandFunctionArguments()
455 ResultArgToks = &ActualArgs->getPreExpArgument(ArgNo, PP)[0]; in ExpandFunctionArguments()
512 const Token *ArgToks = ActualArgs->getUnexpArgument(ArgNo); in ExpandFunctionArguments()
522 (unsigned)ArgNo == Macro->getNumParams()-1 && in ExpandFunctionArguments()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Basic/
H A DDiagnostic.cpp868 unsigned ArgNo = *DiagStr++ - '0'; in FormatDiagnostic() local
871 unsigned ArgNo2 = ArgNo; in FormatDiagnostic()
873 DiagnosticsEngine::ArgumentKind Kind = getArgKind(ArgNo); in FormatDiagnostic()
909 const std::string &S = getArgStdStr(ArgNo); in FormatDiagnostic()
915 const char *S = getArgCStr(ArgNo); in FormatDiagnostic()
927 int Val = getArgSInt(ArgNo); in FormatDiagnostic()
946 unsigned Val = getArgUInt(ArgNo); in FormatDiagnostic()
987 const IdentifierInfo *II = getArgIdentifier(ArgNo); in FormatDiagnostic()
1008 getDiags()->ConvertArgToString(Kind, getRawArg(ArgNo), in FormatDiagnostic()
1017 TDT.FromType = getRawArg(ArgNo); in FormatDiagnostic()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DFunction.cpp89 : Value(Ty, Value::ArgumentVal), Parent(Par), ArgNo(ArgNo) { in Argument()
552 PAL = PAL.addParamAttribute(getContext(), ArgNo, Kind); in addParamAttr()
556 void Function::addParamAttr(unsigned ArgNo, Attribute Attr) { in addParamAttr() argument
558 PAL = PAL.addParamAttribute(getContext(), ArgNo, Attr); in addParamAttr()
564 PAL = PAL.addParamAttributes(getContext(), ArgNo, Attrs); in addParamAttrs()
588 PAL = PAL.removeParamAttribute(getContext(), ArgNo, Kind); in removeParamAttr()
592 void Function::removeParamAttr(unsigned ArgNo, StringRef Kind) { in removeParamAttr() argument
594 PAL = PAL.removeParamAttribute(getContext(), ArgNo, Kind); in removeParamAttr()
600 PAL = PAL.removeParamAttributes(getContext(), ArgNo, Attrs); in removeParamAttrs()
612 PAL = PAL.addDereferenceableParamAttr(getContext(), ArgNo, Bytes); in addDereferenceableParamAttr()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCall.cpp1445 assert(hasPaddingArg(ArgNo)); in getPaddingArgNo()
1474 unsigned ArgNo = 0; in construct() local
1477 ++I, ++ArgNo) { in construct()
1482 auto &IRArgs = ArgInfo[ArgNo]; in construct()
1641 unsigned ArgNo = 0; in GetFunctionType() local
2362 unsigned ArgNo = 0; in ConstructAttributeList() local
2365 I != E; ++I, ++ArgNo) { in ConstructAttributeList()
2527 assert(ArgNo == FI.arg_size()); in ConstructAttributeList()
2576 if (NNAttr->isNonNull(ArgNo)) in getNonNullAttr()
2649 unsigned ArgNo = 0; in EmitFunctionProlog() local
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DAliasAnalysis.cpp739 unsigned ArgNo = 0; in callCapturesBefore() local
744 CI != CE; ++CI, ++ArgNo) { in callCapturesBefore()
749 (!Call->doesNotCapture(ArgNo) && ArgNo < Call->getNumArgOperands() && in callCapturesBefore()
750 !Call->isByValArgument(ArgNo))) in callCapturesBefore()
764 if (Call->doesNotAccessMemory(ArgNo)) in callCapturesBefore()
766 if (Call->onlyReadsMemory(ArgNo)) { in callCapturesBefore()
H A DLint.cpp234 unsigned ArgNo = 0; in visitCallBase() local
235 for (auto BI = I.arg_begin(); BI != AE; ++BI, ++ArgNo) { in visitCallBase()
238 if (PAL.hasParamAttribute(ArgNo, Attribute::ByVal)) in visitCallBase()
241 if (Formal->onlyReadsMemory() && I.onlyReadsMemory(ArgNo)) in visitCallBase()
267 unsigned ArgNo = 0; in visitCallBase() local
271 if (PAL.hasParamAttribute(ArgNo++, Attribute::ByVal)) in visitCallBase()
/freebsd-13.1/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DMarshallers.h333 virtual void getArgKinds(ASTNodeKind ThisKind, unsigned ArgNo,
403 void getArgKinds(ASTNodeKind ThisKind, unsigned ArgNo,
405 Kinds.push_back(ArgKinds[ArgNo]);
567 void getArgKinds(ASTNodeKind ThisKind, unsigned ArgNo,
776 void getArgKinds(ASTNodeKind ThisKind, unsigned ArgNo,
780 O->getArgKinds(ThisKind, ArgNo, Kinds);
809 void getArgKinds(ASTNodeKind ThisKind, unsigned ArgNo,
811 assert(ArgNo < 2);
909 void getArgKinds(ASTNodeKind ThisKind, unsigned ArgNo,
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemorySSA.h1092 return Access == Other.Access && (!Access || ArgNo == Other.ArgNo);
1104 return MP->getIncomingBlock(ArgNo);
1112 return MP->getIncomingValue(ArgNo);
1120 if (++ArgNo >= MP->getNumIncomingValues()) {
1121 ArgNo = 0;
1132 unsigned ArgNo = 0;

123