Home
last modified time | relevance | path

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

123

/external/llvm/lib/Analysis/
DMemoryLocation.cpp94 unsigned ArgIdx, in getForArgument() argument
98 const Value *Arg = CS.getArgument(ArgIdx); in getForArgument()
110 assert((ArgIdx == 0 || ArgIdx == 1) && in getForArgument()
119 assert(ArgIdx == 1 && "Invalid argument index"); in getForArgument()
124 assert(ArgIdx == 2 && "Invalid argument index"); in getForArgument()
129 assert(ArgIdx == 0 && "Invalid argument index"); in getForArgument()
135 assert(ArgIdx == 0 && "Invalid argument index"); in getForArgument()
148 assert((ArgIdx == 0 || ArgIdx == 1) && in getForArgument()
150 if (ArgIdx == 1) in getForArgument()
157 return MemoryLocation(CS.getArgument(ArgIdx), UnknownSize, AATags); in getForArgument()
DCFLSteensAliasAnalysis.cpp345 unsigned ArgIdx) { in getArgModRefInfo() argument
355 [ArgIdx](const ExternalAttribute &ExtAttr) { in getArgModRefInfo()
356 return ExtAttr.IValue.Index == ArgIdx + 1; in getArgModRefInfo()
360 [ArgIdx](const ExternalRelation &ExtRelation) { in getArgModRefInfo()
361 return ExtRelation.To.Index == ArgIdx + 1 || in getArgModRefInfo()
362 ExtRelation.From.Index == ArgIdx + 1; in getArgModRefInfo()
DAliasAnalysis.cpp95 ModRefInfo AAResults::getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx) { in getArgModRefInfo() argument
99 Result = ModRefInfo(Result & AA->getArgModRefInfo(CS, ArgIdx)); in getArgModRefInfo()
157 unsigned ArgIdx = std::distance(CS.arg_begin(), AI); in getModRefInfo() local
158 MemoryLocation ArgLoc = MemoryLocation::getForArgument(CS, ArgIdx, TLI); in getModRefInfo()
161 ModRefInfo ArgMask = getArgModRefInfo(CS, ArgIdx); in getModRefInfo()
DBasicAliasAnalysis.cpp611 static bool isWriteOnlyParam(ImmutableCallSite CS, unsigned ArgIdx, in isWriteOnlyParam() argument
613 if (CS.paramHasAttr(ArgIdx + 1, Attribute::WriteOnly)) in isWriteOnlyParam()
625 if (ArgIdx == 0) in isWriteOnlyParam()
636 unsigned ArgIdx) { in getArgModRefInfo() argument
639 if (isWriteOnlyParam(CS, ArgIdx, TLI)) in getArgModRefInfo()
642 if (CS.paramHasAttr(ArgIdx + 1, Attribute::ReadOnly)) in getArgModRefInfo()
645 if (CS.paramHasAttr(ArgIdx + 1, Attribute::ReadNone)) in getArgModRefInfo()
648 return AAResultBase::getArgModRefInfo(CS, ArgIdx); in getArgModRefInfo()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DMemoryLocation.cpp110 unsigned ArgIdx, in getForArgument() argument
114 const Value *Arg = CS.getArgument(ArgIdx); in getForArgument()
126 assert((ArgIdx == 0 || ArgIdx == 1) && in getForArgument()
135 assert(ArgIdx == 1 && "Invalid argument index"); in getForArgument()
140 assert(ArgIdx == 2 && "Invalid argument index"); in getForArgument()
145 assert(ArgIdx == 0 && "Invalid argument index"); in getForArgument()
151 assert(ArgIdx == 0 && "Invalid argument index"); in getForArgument()
164 assert((ArgIdx == 0 || ArgIdx == 1) && in getForArgument()
166 if (ArgIdx == 1) in getForArgument()
173 return MemoryLocation(CS.getArgument(ArgIdx), UnknownSize, AATags); in getForArgument()
DAliasAnalysis.cpp121 ModRefInfo AAResults::getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx) { in getArgModRefInfo() argument
125 Result = intersectModRef(Result, AA->getArgModRefInfo(CS, ArgIdx)); in getArgModRefInfo()
189 unsigned ArgIdx = std::distance(CS.arg_begin(), AI); in getModRefInfo() local
190 MemoryLocation ArgLoc = MemoryLocation::getForArgument(CS, ArgIdx, TLI); in getModRefInfo()
193 ModRefInfo ArgMask = getArgModRefInfo(CS, ArgIdx); in getModRefInfo()
DBasicAliasAnalysis.cpp701 static bool isWriteOnlyParam(ImmutableCallSite CS, unsigned ArgIdx, in isWriteOnlyParam() argument
703 if (CS.paramHasAttr(ArgIdx, Attribute::WriteOnly)) in isWriteOnlyParam()
715 if (ArgIdx == 0) in isWriteOnlyParam()
726 unsigned ArgIdx) { in getArgModRefInfo() argument
728 if (isWriteOnlyParam(CS, ArgIdx, TLI)) in getArgModRefInfo()
731 if (CS.paramHasAttr(ArgIdx, Attribute::ReadOnly)) in getArgModRefInfo()
734 if (CS.paramHasAttr(ArgIdx, Attribute::ReadNone)) in getArgModRefInfo()
737 return AAResultBase::getArgModRefInfo(CS, ArgIdx); in getArgModRefInfo()
/external/clang/lib/Sema/
DSemaTemplateDeduction.cpp782 unsigned ArgIdx = 0, ParamIdx = 0; in DeduceTemplateArguments() local
791 if (ArgIdx >= NumArgs) in DeduceTemplateArguments()
794 if (isa<PackExpansionType>(Args[ArgIdx])) { in DeduceTemplateArguments()
804 Params[ParamIdx], Args[ArgIdx], in DeduceTemplateArguments()
809 ++ArgIdx; in DeduceTemplateArguments()
831 for (; ArgIdx < NumArgs; ++ArgIdx) { in DeduceTemplateArguments()
837 Args[ArgIdx], Info, Deduced, in DeduceTemplateArguments()
851 if (ArgIdx < NumArgs) in DeduceTemplateArguments()
1792 unsigned &ArgIdx, in hasTemplateArgumentForDeduction() argument
1794 if (ArgIdx == NumArgs) in hasTemplateArgumentForDeduction()
[all …]
DSemaOverload.cpp2399 for (unsigned ArgIdx = 0, NumArgs = FromFunctionType->getNumParams(); in isObjCPointerConversion() local
2400 ArgIdx != NumArgs; ++ArgIdx) { in isObjCPointerConversion()
2401 QualType FromArgType = FromFunctionType->getParamType(ArgIdx); in isObjCPointerConversion()
2402 QualType ToArgType = ToFunctionType->getParamType(ArgIdx); in isObjCPointerConversion()
2560 for (unsigned ArgIdx = 0, NumArgs = FromFunctionType->getNumParams(); in IsBlockPointerConversion() local
2561 ArgIdx != NumArgs; ++ArgIdx) { in IsBlockPointerConversion()
2563 QualType FromArgType = FromFunctionType->getParamType(ArgIdx); in IsBlockPointerConversion()
2564 QualType ToArgType = ToFunctionType->getParamType(ArgIdx); in IsBlockPointerConversion()
5828 for (unsigned ArgIdx = 0; ArgIdx < Args.size(); ++ArgIdx) { in AddOverloadCandidate() local
5829 if (ArgIdx < NumParams) { in AddOverloadCandidate()
[all …]
/external/clang/tools/libclang/
DCXComment.cpp179 unsigned ArgIdx) { in clang_InlineCommandComment_getArgText() argument
181 if (!ICC || ArgIdx >= ICC->getNumArgs()) in clang_InlineCommandComment_getArgText()
184 return cxstring::createRef(ICC->getArgText(ArgIdx)); in clang_InlineCommandComment_getArgText()
245 unsigned ArgIdx) { in clang_BlockCommandComment_getArgText() argument
247 if (!BCC || ArgIdx >= BCC->getNumArgs()) in clang_BlockCommandComment_getArgText()
250 return cxstring::createRef(BCC->getArgText(ArgIdx)); in clang_BlockCommandComment_getArgText()
/external/llvm/include/llvm/Analysis/
DAliasAnalysis.h252 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx);
624 unsigned ArgIdx) = 0;
673 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx) override { in getArgModRefInfo() argument
674 return Result.getArgModRefInfo(CS, ArgIdx); in getArgModRefInfo()
747 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx) { in getArgModRefInfo() argument
748 return AAR ? AAR->getArgModRefInfo(CS, ArgIdx) : CurrentResult.getArgModRefInfo(CS, ArgIdx); in getArgModRefInfo()
797 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx) { in getArgModRefInfo() argument
DMemoryLocation.h92 static MemoryLocation getForArgument(ImmutableCallSite CS, unsigned ArgIdx,
DCFLSteensAliasAnalysis.h85 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx);
DBasicAliasAnalysis.h76 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DAliasAnalysis.h390 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx);
781 unsigned ArgIdx) = 0;
830 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx) override { in getArgModRefInfo() argument
831 return Result.getArgModRefInfo(CS, ArgIdx); in getArgModRefInfo()
904 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx) { in getArgModRefInfo() argument
905 return AAR ? AAR->getArgModRefInfo(CS, ArgIdx) : CurrentResult.getArgModRefInfo(CS, ArgIdx); in getArgModRefInfo()
954 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx) { in getArgModRefInfo() argument
DMemoryLocation.h111 static MemoryLocation getForArgument(ImmutableCallSite CS, unsigned ArgIdx,
DBasicAliasAnalysis.h95 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx);
/external/llvm/lib/Target/AMDGPU/
DAMDGPUOpenCLImageTypeLoweringPass.cpp108 AccessQualFromMD(MDNode *KernelMDNode, unsigned ArgIdx) { in AccessQualFromMD() argument
110 return cast<MDString>(ArgAQNode->getOperand(ArgIdx + 1))->getString(); in AccessQualFromMD()
114 ArgTypeFromMD(MDNode *KernelMDNode, unsigned ArgIdx) { in ArgTypeFromMD() argument
116 return cast<MDString>(ArgTypeNode->getOperand(ArgIdx + 1))->getString(); in ArgTypeFromMD()
DAMDGPUPromoteAlloca.cpp778 for (unsigned ArgIdx = 0, ArgEnd = Call->getNumArgOperands(); in handleAlloca() local
779 ArgIdx != ArgEnd; ++ArgIdx) { in handleAlloca()
780 ArgTypes.push_back(Call->getArgOperand(ArgIdx)->getType()); in handleAlloca()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DR600OpenCLImageTypeLoweringPass.cpp125 AccessQualFromMD(MDNode *KernelMDNode, unsigned ArgIdx) { in AccessQualFromMD() argument
127 return cast<MDString>(ArgAQNode->getOperand(ArgIdx + 1))->getString(); in AccessQualFromMD()
131 ArgTypeFromMD(MDNode *KernelMDNode, unsigned ArgIdx) { in ArgTypeFromMD() argument
133 return cast<MDString>(ArgTypeNode->getOperand(ArgIdx + 1))->getString(); in ArgTypeFromMD()
/external/clang/include/clang-c/
DDocumentation.h292 unsigned ArgIdx);
362 unsigned ArgIdx);
/external/swiftshader/third_party/LLVM/lib/VMCore/
DFunction.cpp69 unsigned ArgIdx = 0; in getArgNo() local
71 ++ArgIdx; in getArgNo()
73 return ArgIdx; in getArgNo()
/external/clang/utils/TableGen/
DNeonEmitter.cpp1521 for (unsigned ArgIdx = 0; ArgIdx < DI->getNumArgs() - 1; ++ArgIdx) { in emitDagCast() local
1530 if (DI->getArgName(ArgIdx).size()) { in emitDagCast()
1531 assert_with_loc(Intr.Variables.find(DI->getArgName(ArgIdx)) != in emitDagCast()
1534 castToType = Intr.Variables[DI->getArgName(ArgIdx)].getType(); in emitDagCast()
1536 StringInit *SI = dyn_cast<StringInit>(DI->getArg(ArgIdx)); in emitDagCast()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMFastISel.cpp2360 unsigned ArgIdx = i - CS.arg_begin(); in SelectCall() local
2361 if (CS.paramHasAttr(ArgIdx, Attribute::SExt)) in SelectCall()
2363 if (CS.paramHasAttr(ArgIdx, Attribute::ZExt)) in SelectCall()
2367 if (CS.paramHasAttr(ArgIdx, Attribute::InReg) || in SelectCall()
2368 CS.paramHasAttr(ArgIdx, Attribute::StructRet) || in SelectCall()
2369 CS.paramHasAttr(ArgIdx, Attribute::SwiftSelf) || in SelectCall()
2370 CS.paramHasAttr(ArgIdx, Attribute::SwiftError) || in SelectCall()
2371 CS.paramHasAttr(ArgIdx, Attribute::Nest) || in SelectCall()
2372 CS.paramHasAttr(ArgIdx, Attribute::ByVal)) in SelectCall()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DDwarfEHPrepare.cpp137 unsigned ArgIdx = II->getNumArgOperands() - 1; in HasCatchAllInSelector() local
138 GlobalVariable *GV = dyn_cast<GlobalVariable>(II->getArgOperand(ArgIdx)); in HasCatchAllInSelector()

123