Home
last modified time | relevance | path

Searched refs:ArgIndex (Results 1 – 17 of 17) sorted by relevance

/external/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp672 unsigned ArgIndex = 1; in DoPromotion() local
674 ++I, ++ArgIndex) { in DoPromotion()
684 AttributeSet attrs = PAL.getParamAttributes(ArgIndex); in DoPromotion()
685 if (attrs.hasAttributes(ArgIndex)) { in DoPromotion()
686 AttrBuilder B(attrs, ArgIndex); in DoPromotion()
729 for (const auto &ArgIndex : ArgIndices) { in DoPromotion() local
733 ArgIndex.second)); in DoPromotion()
794 ArgIndex = 1; in DoPromotion()
796 I != E; ++I, ++AI, ++ArgIndex) in DoPromotion()
800 if (CallPAL.hasAttributes(ArgIndex)) { in DoPromotion()
[all …]
/external/clang/lib/Analysis/
DThreadSafetyCommon.cpp670 unsigned ArgIndex = CurrentBlockInfo->ProcessedPredecessors; in makePhiNodeVar() local
671 assert(ArgIndex > 0 && ArgIndex < NPreds); in makePhiNodeVar()
680 Ph->values()[ArgIndex] = E; in makePhiNodeVar()
688 for (unsigned PIdx = 0; PIdx < ArgIndex; ++PIdx) in makePhiNodeVar()
691 Ph->values()[ArgIndex] = E; in makePhiNodeVar()
773 unsigned ArgIndex = BBInfo[Blk->getBlockID()].ProcessedPredecessors; in mergePhiNodesBackEdge() local
774 assert(ArgIndex > 0 && ArgIndex < BB->numPredecessors()); in mergePhiNodesBackEdge()
779 assert(Ph->values()[ArgIndex] == nullptr && "Wrong index for back edge."); in mergePhiNodesBackEdge()
783 Ph->values()[ArgIndex] = E; in mergePhiNodesBackEdge()
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DArgumentPromotion.cpp527 unsigned ArgIndex = 1; in DoPromotion() local
529 ++I, ++ArgIndex) { in DoPromotion()
540 if (Attributes attrs = PAL.getParamAttributes(ArgIndex)) in DoPromotion()
654 ArgIndex = 1; in DoPromotion()
656 I != E; ++I, ++AI, ++ArgIndex) in DoPromotion()
660 if (Attributes Attrs = CallPAL.getParamAttributes(ArgIndex)) in DoPromotion()
722 for (; AI != CS.arg_end(); ++AI, ++ArgIndex) { in DoPromotion()
724 if (Attributes Attrs = CallPAL.getParamAttributes(ArgIndex)) in DoPromotion()
/external/clang/lib/StaticAnalyzer/Core/
DPathDiagnostic.cpp1134 unsigned ArgIndex = 0; in getMessage() local
1136 E = CE->arg_end(); I != E; ++I, ++ArgIndex){ in getMessage()
1142 return getMessageForArg(*I, ArgIndex); in getMessage()
1150 return getMessageForArg(*I, ArgIndex); in getMessage()
1166 unsigned ArgIndex) { in getMessageForArg() argument
1168 ++ArgIndex; in getMessageForArg()
1173 os << Msg << " via " << ArgIndex << llvm::getOrdinalSuffix(ArgIndex) in getMessageForArg()
/external/spirv-llvm/lib/SPIRV/
DOCLTypeToSPIRV.cpp162 auto ArgIndex = getArgIndex(CI, &I); in adaptFunction() local
165 addAdaptedType(getArg(CF, ArgIndex), Loc->second); in adaptFunction()
/external/compiler-rt/lib/ubsan/
Dubsan_handlers.h145 int ArgIndex; member
Dubsan_handlers.cc510 "never be null") << Data->ArgIndex; in handleNonNullArg()
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/
DExecution.cpp845 GenericValue ArgIndex; in visitCallSite() local
846 ArgIndex.UIntPairVal.first = ECStack.size() - 1; in visitCallSite()
847 ArgIndex.UIntPairVal.second = 0; in visitCallSite()
848 SetValue(CS.getInstruction(), ArgIndex, SF); in visitCallSite()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h3209 unsigned ArgIndex = cxxOperatorCallExpr(callee(cxxMethodDecl())) in AST_POLYMORPHIC_MATCHER_P2() local
3215 for (; ArgIndex < Node.getNumArgs(); ++ArgIndex) { in AST_POLYMORPHIC_MATCHER_P2()
3217 if (ArgMatcher.matches(*(Node.getArg(ArgIndex)->IgnoreParenCasts()), in AST_POLYMORPHIC_MATCHER_P2()
/external/clang/lib/StaticAnalyzer/Checkers/
DMallocChecker.cpp491 unsigned ArgIndex) override { in getMessageForArg() argument
493 ++ArgIndex; in getMessageForArg()
498 os << "Reallocation of " << ArgIndex << llvm::getOrdinalSuffix(ArgIndex) in getMessageForArg()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp1074 GenericValue ArgIndex; in visitCallSite() local
1075 ArgIndex.UIntPairVal.first = ECStack.size() - 1; in visitCallSite()
1076 ArgIndex.UIntPairVal.second = 0; in visitCallSite()
1077 SetValue(CS.getInstruction(), ArgIndex, SF); in visitCallSite()
/external/clang/lib/Sema/
DSemaChecking.cpp2075 for (unsigned ArgIndex = 0, ArgIndexEnd = NonNullArgs.size(); in CheckNonNullArguments() local
2076 ArgIndex != ArgIndexEnd; ++ArgIndex) { in CheckNonNullArguments()
2077 if (NonNullArgs[ArgIndex]) in CheckNonNullArguments()
2078 CheckNonNullArgument(S, Args[ArgIndex], CallSiteLoc); in CheckNonNullArguments()
2624 static bool checkBuiltinArgument(Sema &S, CallExpr *E, unsigned ArgIndex) { in checkBuiltinArgument() argument
2628 ParmVarDecl *Param = Fn->getParamDecl(ArgIndex); in checkBuiltinArgument()
2637 E->setArg(ArgIndex, Arg.get()); in checkBuiltinArgument()
3961 unsigned ArgIndex = FA->getFormatIdx(); in checkFormatStringExpr() local
3964 --ArgIndex; in checkFormatStringExpr()
3965 const Expr *Arg = CE->getArg(ArgIndex - 1); in checkFormatStringExpr()
[all …]
DSemaDeclAttr.cpp922 for (unsigned ArgIndex = 0; ArgIndex < Attr.getNumArgs(); ++ArgIndex) { in handleCallableWhenAttr() local
927 if (Attr.isArgIdent(ArgIndex)) { in handleCallableWhenAttr()
928 IdentifierLoc *Ident = Attr.getArgAsIdent(ArgIndex); in handleCallableWhenAttr()
932 if (!S.checkStringLiteralArgumentAttr(Attr, ArgIndex, StateString, &Loc)) in handleCallableWhenAttr()
DSemaDeclCXX.cpp766 unsigned ArgIndex = 0; in CheckConstexprParameterTypes() local
770 i != e; ++i, ++ArgIndex) { in CheckConstexprParameterTypes()
771 const ParmVarDecl *PD = FD->getParamDecl(ArgIndex); in CheckConstexprParameterTypes()
776 ArgIndex+1, PD->getSourceRange(), in CheckConstexprParameterTypes()
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/
DPathDiagnostic.h492 virtual std::string getMessageForArg(const Expr *ArgE, unsigned ArgIndex);
/external/clang/lib/AST/
DExprConstant.cpp1273 unsigned ArgIndex = 0; in describeCall() local
1292 E = Frame->Callee->param_end(); I != E; ++I, ++ArgIndex) { in describeCall()
1293 if (ArgIndex > (unsigned)IsMemberCall) in describeCall()
1297 const APValue &Arg = Frame->Arguments[ArgIndex]; in describeCall()
1300 if (ArgIndex == 0 && IsMemberCall) in describeCall()
/external/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp953 unsigned ArgIndex = Ins[I].OrigArgIndex; in LowerFormalArguments() local
955 while (I + 1 != E && Ins[I + 1].OrigArgIndex == ArgIndex) { in LowerFormalArguments()
1089 unsigned ArgIndex = Outs[I].OrigArgIndex; in LowerCall() local
1091 while (I + 1 != E && Outs[I + 1].OrigArgIndex == ArgIndex) { in LowerCall()