Home
last modified time | relevance | path

Searched refs:ArgIdx (Results 1 – 25 of 54) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryLocation.cpp161 unsigned ArgIdx, in getForArgument() argument
164 const Value *Arg = Call->getArgOperand(ArgIdx); in getForArgument()
180 assert((ArgIdx == 0 || ArgIdx == 1) && in getForArgument()
190 assert(ArgIdx == 1 && "Invalid argument index"); in getForArgument()
198 assert(ArgIdx == 0 && "Invalid argument index"); in getForArgument()
205 assert(ArgIdx == 1 && "Invalid argument index"); in getForArgument()
215 if (ArgIdx == 0) in getForArgument()
217 assert(ArgIdx == 2 && "Invalid argument index"); in getForArgument()
225 assert(ArgIdx == 0 && "Invalid argument index"); in getForArgument()
233 assert(ArgIdx == 0 && "Invalid argument index"); in getForArgument()
[all …]
H A DAliasAnalysis.cpp172 ModRefInfo AAResults::getArgModRefInfo(const CallBase *Call, unsigned ArgIdx) { in getArgModRefInfo() argument
176 Result &= AA->getArgModRefInfo(Call, ArgIdx); in getArgModRefInfo()
247 unsigned ArgIdx = I.index(); in getModRefInfo() local
248 MemoryLocation ArgLoc = MemoryLocation::getForArgument(Call, ArgIdx, TLI); in getModRefInfo()
251 AllArgsMask |= getArgModRefInfo(Call, ArgIdx); in getModRefInfo()
H A DAliasSetTracker.cpp415 int ArgIdx = IdxArgPair.index(); in add() local
420 MemoryLocation::getForArgument(Call, ArgIdx, nullptr); in add()
421 ModRefInfo ArgMask = AA.getArgModRefInfo(Call, ArgIdx); in add()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVMetadata.cpp18 static MDString *getOCLKernelArgAttribute(const Function &F, unsigned ArgIdx, in getOCLKernelArgAttribute() argument
26 if (Node && ArgIdx < Node->getNumOperands()) in getOCLKernelArgAttribute()
27 return cast<MDString>(Node->getOperand(ArgIdx)); in getOCLKernelArgAttribute()
38 unsigned MDArgIdx = ArgIdx + 1; in getOCLKernelArgAttribute()
71 MDString *getOCLKernelArgAccessQual(const Function &F, unsigned ArgIdx) { in getOCLKernelArgAccessQual() argument
75 return getOCLKernelArgAttribute(F, ArgIdx, "kernel_arg_access_qual"); in getOCLKernelArgAccessQual()
78 MDString *getOCLKernelArgTypeQual(const Function &F, unsigned ArgIdx) { in getOCLKernelArgTypeQual() argument
82 return getOCLKernelArgAttribute(F, ArgIdx, "kernel_arg_type_qual"); in getOCLKernelArgTypeQual()
H A DSPIRVMetadata.h26 MDString *getOCLKernelArgAccessQual(const Function &F, unsigned ArgIdx);
27 MDString *getOCLKernelArgTypeQual(const Function &F, unsigned ArgIdx);
H A DSPIRVCallLowering.cpp166 getArgAccessQual(const Function &F, unsigned ArgIdx) { in getArgAccessQual() argument
170 MDString *ArgAttribute = getOCLKernelArgAccessQual(F, ArgIdx); in getArgAccessQual()
182 getKernelArgTypeQual(const Function &F, unsigned ArgIdx) { in getKernelArgTypeQual() argument
183 MDString *ArgAttribute = getOCLKernelArgTypeQual(F, ArgIdx); in getKernelArgTypeQual()
189 static SPIRVType *getArgSPIRVType(const Function &F, unsigned ArgIdx, in getArgSPIRVType() argument
195 getArgAccessQual(F, ArgIdx); in getArgSPIRVType()
197 Type *OriginalArgType = getOriginalFunctionType(F)->getParamType(ArgIdx); in getArgSPIRVType()
204 Argument *Arg = F.getArg(ArgIdx); in getArgSPIRVType()
H A DSPIRVBuiltins.h58 unsigned ArgIdx, LLVMContext &Ctx);
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedCallArgsChecker.cpp80 unsigned ArgIdx = isa<CXXOperatorCallExpr>(CE) && isa_and_nonnull<CXXMethodDecl>(F); in visitCallExpr() local
101 P < F->param_end() && ArgIdx < CE->getNumArgs(); ++P, ++ArgIdx) { in visitCallExpr()
115 const auto *Arg = CE->getArg(ArgIdx); in visitCallExpr()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateDeduction.cpp1202 unsigned ArgIdx = 0, ParamIdx = 0; in DeduceTemplateArguments() local
1211 if (ArgIdx >= NumArgs) in DeduceTemplateArguments()
1214 if (isa<PackExpansionType>(Args[ArgIdx])) { in DeduceTemplateArguments()
1224 Args[ArgIdx].getUnqualifiedType(), Info, Deduced, TDF, in DeduceTemplateArguments()
1230 ++ArgIdx; in DeduceTemplateArguments()
1247 for (; ArgIdx < NumArgs && PackScope.hasNextElement(); ++ArgIdx) { in DeduceTemplateArguments()
1251 Args[ArgIdx].getUnqualifiedType(), Info, Deduced, TDF, in DeduceTemplateArguments()
1278 for (unsigned I = 0; I != *NumExpansions && ArgIdx < NumArgs; in DeduceTemplateArguments()
1279 ++I, ++ArgIdx) in DeduceTemplateArguments()
1297 if (PartialOrdering && ArgIdx + 1 == NumArgs && in DeduceTemplateArguments()
[all …]
H A DSemaOverload.cpp3013 for (unsigned ArgIdx = 0, NumArgs = FromFunctionType->getNumParams(); in isObjCPointerConversion() local
3014 ArgIdx != NumArgs; ++ArgIdx) { in isObjCPointerConversion()
3015 QualType FromArgType = FromFunctionType->getParamType(ArgIdx); in isObjCPointerConversion()
3016 QualType ToArgType = ToFunctionType->getParamType(ArgIdx); in isObjCPointerConversion()
3107 for (unsigned ArgIdx = 0, NumArgs = FromFunctionType->getNumParams(); in IsBlockPointerConversion() local
3108 ArgIdx != NumArgs; ++ArgIdx) { in IsBlockPointerConversion()
3110 QualType FromArgType = FromFunctionType->getParamType(ArgIdx); in IsBlockPointerConversion()
3111 QualType ToArgType = ToFunctionType->getParamType(ArgIdx); in IsBlockPointerConversion()
6997 for (unsigned ArgIdx = 0; ArgIdx < Args.size(); ++ArgIdx) { in AddOverloadCandidate() local
6999 PO == OverloadCandidateParamOrder::Reversed ? 1 - ArgIdx : ArgIdx; in AddOverloadCandidate()
[all …]
H A DSemaOpenCL.cpp416 const Expr *ArgIdx = Call->getArg(Idx); in checkPipePacketType() local
419 const PointerType *ArgTy = ArgIdx->getType()->getAs<PointerType>(); in checkPipePacketType()
427 << ArgIdx->getType() << ArgIdx->getSourceRange(); in checkPipePacketType()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600OpenCLImageTypeLoweringPass.cpp110 AccessQualFromMD(MDNode *KernelMDNode, unsigned ArgIdx) { in AccessQualFromMD() argument
112 return cast<MDString>(ArgAQNode->getOperand(ArgIdx + 1))->getString(); in AccessQualFromMD()
116 ArgTypeFromMD(MDNode *KernelMDNode, unsigned ArgIdx) { in ArgTypeFromMD() argument
118 return cast<MDString>(ArgTypeNode->getOperand(ArgIdx + 1))->getString(); in ArgTypeFromMD()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DAliasAnalysis.h439 ModRefInfo getArgModRefInfo(const CallBase *Call, unsigned ArgIdx);
661 ModRefInfo getArgModRefInfo(const CallBase *Call, unsigned ArgIdx) {
662 return AA.getArgModRefInfo(Call, ArgIdx);
738 unsigned ArgIdx) = 0;
785 ModRefInfo getArgModRefInfo(const CallBase *Call, unsigned ArgIdx) override {
786 return Result.getArgModRefInfo(Call, ArgIdx);
840 ModRefInfo getArgModRefInfo(const CallBase *Call, unsigned ArgIdx) {
H A DMemoryLocation.h279 static MemoryLocation getForArgument(const CallBase *Call, unsigned ArgIdx,
281 static MemoryLocation getForArgument(const CallBase *Call, unsigned ArgIdx, in getForArgument() argument
283 return getForArgument(Call, ArgIdx, &TLI); in getForArgument()
H A DBasicAliasAnalysis.h91 ModRefInfo getArgModRefInfo(const CallBase *Call, unsigned ArgIdx);
/freebsd/contrib/llvm-project/clang/include/clang-c/
H A DDocumentation.h297 unsigned ArgIdx);
367 unsigned ArgIdx);
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMIGChecker.cpp209 unsigned ArgIdx = *ArgIdxPtr; in checkPostCall() local
210 SVal Arg = Call.getArgSVal(ArgIdx); in checkPostCall()
H A DGenericTaintChecker.cpp229 bool contains(ArgIdxTy ArgIdx) const { in contains()
230 if (llvm::is_contained(DiscreteArgs, ArgIdx)) in contains()
233 return VariadicIndex && ArgIdx >= *VariadicIndex; in contains()
301 static const Expr *GetArgExpr(ArgIdxTy ArgIdx, const CallEvent &Call) { in GetArgExpr() argument
302 return ArgIdx == ReturnValueIndex ? Call.getOriginExpr() in GetArgExpr()
303 : Call.getArgExpr(ArgIdx); in GetArgExpr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DAMDGPUEmitPrintf.cpp188 unsigned ArgIdx = 1; in locateCStrings() local
199 ArgIdx += Spec.count('*'); in locateCStrings()
201 BV.set(ArgIdx); in locateCStrings()
204 ++ArgIdx; in locateCStrings()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DIROutliner.cpp1816 for (unsigned ArgIdx = 0; ArgIdx < Region.ExtractedFunction->arg_size(); in replaceArgumentUses() local
1817 ArgIdx++) { in replaceArgumentUses()
1818 assert(Region.ExtractedArgToAgg.contains(ArgIdx) && in replaceArgumentUses()
1820 unsigned AggArgIdx = Region.ExtractedArgToAgg.find(ArgIdx)->second; in replaceArgumentUses()
1822 Argument *Arg = Region.ExtractedFunction->getArg(ArgIdx); in replaceArgumentUses()
1825 if (ArgIdx < Region.NumExtractedInputs) { in replaceArgumentUses()
1830 Value *V = Region.Call->getArgOperand(ArgIdx); in replaceArgumentUses()
2686 for (unsigned ArgIdx = Region.NumExtractedInputs; in updateOutputMapping() local
2687 ArgIdx < Region.Call->arg_size(); ArgIdx++) { in updateOutputMapping()
2688 if (Operand == Region.Call->getArgOperand(ArgIdx)) { in updateOutputMapping()
[all …]
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DNeonEmitter.cpp1505 for (unsigned ArgIdx = 0; ArgIdx < DI->getNumArgs() - 1; ++ArgIdx) { in emitDagCast() local
1514 if (!DI->getArgNameStr(ArgIdx).empty()) { in emitDagCast()
1516 DI->getArgNameStr(ArgIdx))) != Intr.Variables.end(), in emitDagCast()
1519 Intr.Variables[std::string(DI->getArgNameStr(ArgIdx))].getType(); in emitDagCast()
1521 StringInit *SI = dyn_cast<StringInit>(DI->getArg(ArgIdx)); in emitDagCast()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp1646 size_t ArgIdx = 0; in coerceArguments() local
1648 assert(ArgIdx < FnArgs.size()); in coerceArguments()
1649 if (paramTy != FnArgs[ArgIdx]->getType()) in coerceArguments()
1651 Builder.CreateBitOrPointerCast(FnArgs[ArgIdx], paramTy)); in coerceArguments()
1653 CallArgs.push_back(FnArgs[ArgIdx]); in coerceArguments()
1654 ++ArgIdx; in coerceArguments()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMFastISel.cpp2348 unsigned ArgIdx = ArgI - CI->arg_begin(); in SelectCall() local
2349 if (CI->paramHasAttr(ArgIdx, Attribute::SExt)) in SelectCall()
2351 if (CI->paramHasAttr(ArgIdx, Attribute::ZExt)) in SelectCall()
2355 if (CI->paramHasAttr(ArgIdx, Attribute::InReg) || in SelectCall()
2356 CI->paramHasAttr(ArgIdx, Attribute::StructRet) || in SelectCall()
2357 CI->paramHasAttr(ArgIdx, Attribute::SwiftSelf) || in SelectCall()
2358 CI->paramHasAttr(ArgIdx, Attribute::SwiftError) || in SelectCall()
2359 CI->paramHasAttr(ArgIdx, Attribute::Nest) || in SelectCall()
2360 CI->paramHasAttr(ArgIdx, Attribute::ByVal)) in SelectCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kISelLowering.h225 unsigned ArgIdx) const;
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmtPrinter.cpp1934 for (unsigned ArgIdx = 1; ArgIdx < Node->getNumArgs(); ++ArgIdx) { in VisitCXXOperatorCallExpr() local
1935 if (ArgIdx > 1) in VisitCXXOperatorCallExpr()
1937 if (!isa<CXXDefaultArgExpr>(Node->getArg(ArgIdx))) in VisitCXXOperatorCallExpr()
1938 PrintExpr(Node->getArg(ArgIdx)); in VisitCXXOperatorCallExpr()

123