Searched defs:ArgNo (Results 1 - 25 of 26) sorted by relevance

12

/external/clang/lib/Lex/
H A DMacroArgs.cpp297 const Token &MacroArgs::getStringifiedArgument(unsigned ArgNo, argument
301 assert(ArgNo < NumUnexpArgTokens && "Invalid argument number!");
307 if (StringifiedArgs[ArgNo].isNot(tok::string_literal))
308 StringifiedArgs[ArgNo] = StringifyArgument(getUnexpArgument(ArgNo), PP,
312 return StringifiedArgs[ArgNo];
H A DTokenLexer.cpp189 int ArgNo = Macro->getArgumentNum(Tokens[i+1].getIdentifierInfo()); local
190 assert(ArgNo != -1 && "Token following # is not an argument?");
199 Res = ActualArgs->getStringifiedArgument(ArgNo, PP,
204 Res = MacroArgs::StringifyArgument(ActualArgs->getUnexpArgument(ArgNo),
233 int ArgNo = II ? Macro->getArgumentNum(II) : -1; local
234 if (ArgNo == -1) {
258 Macro, ArgNo, PP))
269 const Token *ArgTok = ActualArgs->getUnexpArgument(ArgNo);
271 ResultArgToks = &ActualArgs->getPreExpArgument(ArgNo, Macro, PP)[0];
315 const Token *ArgToks = ActualArgs->getUnexpArgument(ArgNo);
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp311 unsigned ArgNo = 0; local
316 if (Type && !CS.paramHasAttr(ArgNo + 1, Attribute::NonNull) &&
320 Indices.push_back(ArgNo + 1);
321 ArgNo++;
324 assert(ArgNo == CS.arg_size() && "sanity check");
H A DTailRecursionElimination.cpp489 unsigned ArgNo = 0; local
492 ++ArgNo;
497 if (CI->getArgOperand(ArgNo) == Arg)
H A DMemCpyOptimizer.cpp344 bool processByValArgument(CallSite CS, unsigned ArgNo);
1070 bool MemCpyOpt::processByValArgument(CallSite CS, unsigned ArgNo) { argument
1073 Value *ByValArg = CS.getArgument(ArgNo);
1097 unsigned ByValAlign = CS.getParamAlignment(ArgNo+1);
1136 CS.setArgument(ArgNo, TmpCast);
/external/llvm/bindings/go/llvm/
H A DDIBuilderBindings.cpp99 unsigned ArgNo, LLVMMetadataRef File, unsigned Line, LLVMMetadataRef Ty,
103 unwrap<DIScope>(Scope), Name, ArgNo, unwrap<DIFile>(File), Line,
97 LLVMDIBuilderCreateParameterVariable( LLVMDIBuilderRef Dref, LLVMMetadataRef Scope, const char *Name, unsigned ArgNo, LLVMMetadataRef File, unsigned Line, LLVMMetadataRef Ty, int AlwaysPreserve, unsigned Flags) argument
/external/llvm/lib/Analysis/
H A DAliasAnalysis.cpp333 unsigned ArgNo = 0; local
336 CI != CE; ++CI, ++ArgNo) {
341 (!CS.doesNotCapture(ArgNo) && !CS.isByValArgument(ArgNo)))
350 if (CS.doesNotAccessMemory(ArgNo))
352 if (CS.onlyReadsMemory(ArgNo)) {
H A DInlineCost.cpp518 unsigned ArgNo = A->getArgNo(); local
519 return CandidateCS.paramHasAttr(ArgNo+1, Attr);
H A DBasicAliasAnalysis.cpp705 unsigned ArgNo = 0; local
707 CI != CE; ++CI, ++ArgNo) {
712 (!CS.doesNotCapture(ArgNo) && !CS.isByValArgument(ArgNo)))
/external/llvm/lib/ExecutionEngine/Interpreter/
H A DExternalFunctions.cpp198 const unsigned ArgNo = A->getArgNo(); local
199 Type *ArgTy = FTy->getParamType(ArgNo);
200 args[ArgNo] = ffiTypeFor(ArgTy);
210 const unsigned ArgNo = A->getArgNo(); local
211 Type *ArgTy = FTy->getParamType(ArgNo);
212 values[ArgNo] = ffiValueFor(ArgTy, ArgVals[ArgNo], ArgDataPtr);
328 unsigned ArgNo = 2; local
364 sprintf(Buffer, FmtBuf, uint32_t(Args[ArgNo++].IntVal.getZExtValue()));
380 sprintf(Buffer, FmtBuf, Args[ArgNo
[all...]
/external/llvm/utils/TableGen/
H A DCodeGenTarget.cpp593 unsigned ArgNo = Property->getValueAsInt("ArgNo"); local
594 ArgumentAttributes.push_back(std::make_pair(ArgNo, NoCapture));
596 unsigned ArgNo = Property->getValueAsInt("ArgNo"); local
597 ArgumentAttributes.push_back(std::make_pair(ArgNo, ReadOnly));
599 unsigned ArgNo = Property->getValueAsInt("ArgNo"); local
600 ArgumentAttributes.push_back(std::make_pair(ArgNo, ReadNone));
H A DIntrinsicEmitter.cpp343 unsigned ArgNo = ArgCodes.size(); local
346 // Encode what sort of argument it must be in the low 3 bits of the ArgNo.
347 return Sig.push_back((ArgNo << 3) | Tmp);
/external/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp264 unsigned ArgNo = PtrArg->getArgNo(); local
267 .removeAttribute(F->getContext(), ArgNo + 1, Attribute::StructRet)
268 .addAttribute(F->getContext(), ArgNo + 1, Attribute::NoAlias));
273 .removeAttribute(F->getContext(), ArgNo + 1,
275 .addAttribute(F->getContext(), ArgNo + 1, Attribute::NoAlias));
348 unsigned ArgNo = Arg->getArgNo(); local
356 if (!isDereferenceablePointer(CS.getArgument(ArgNo), DL))
989 // the argument specified by ArgNo.
H A DDeadArgumentElimination.cpp367 unsigned ArgNo = UnusedArgs[I]; local
369 Value *Arg = CS.getArgument(ArgNo);
370 CS.setArgument(ArgNo, UndefValue::get(Arg->getType()));
487 unsigned ArgNo = CS.getArgumentNo(U); local
489 if (ArgNo >= F->getFunctionType()->getNumParams())
493 assert(CS.getArgument(ArgNo)
499 RetOrArg Use = CreateArg(F, ArgNo);
H A DGlobalOpt.cpp2771 unsigned ArgNo = 0; local
2773 ++AI, ++ArgNo)
2774 setVal(&*AI, ActualArgs[ArgNo]);
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp95 unsigned ArgNo = CS.getArgumentNo(&U); local
96 if (CS.isInAllocaArgument(ArgNo))
103 (CS.getInstruction()->use_empty() || CS.doesNotCapture(ArgNo)))
108 if (CS.isByValArgument(ArgNo))
H A DInstCombineCalls.cpp1946 unsigned ArgNo = 0; local
1949 if (V->getType()->isPointerTy() && !CS.paramHasAttr(ArgNo+1, Attribute::NonNull) &&
1951 Indices.push_back(ArgNo + 1);
1952 ArgNo++;
1955 assert(ArgNo == CS.arg_size() && "sanity check");
/external/clang/lib/Basic/
H A DDiagnostic.cpp721 unsigned ArgNo = *DiagStr++ - '0'; local
724 unsigned ArgNo2 = ArgNo;
726 DiagnosticsEngine::ArgumentKind Kind = getArgKind(ArgNo);
745 const char ArgStr1[] = { '%', static_cast<char>('0' + ArgNo) };
759 const std::string &S = getArgStdStr(ArgNo);
765 const char *S = getArgCStr(ArgNo);
777 int Val = getArgSInt(ArgNo);
796 unsigned Val = getArgUInt(ArgNo);
815 tok::TokenKind Kind = static_cast<tok::TokenKind>(getRawArg(ArgNo));
837 const IdentifierInfo *II = getArgIdentifier(ArgNo);
[all...]
/external/clang/lib/CodeGen/
H A DCGDecl.cpp1739 unsigned ArgNo) {
1753 setBlockContextParameter(IPD, ArgNo, Arg.getDirectValue());
1857 DI->EmitDeclareOfArgVariable(&D, DeclPtr.getPointer(), ArgNo, Builder);
1738 EmitParmDecl(const VarDecl &D, ParamValue Arg, unsigned ArgNo) argument
H A DCGDebugInfo.cpp2923 llvm::Optional<unsigned> ArgNo,
2962 if (isa<ImplicitParamDecl>(VD) && ArgNo && *ArgNo == 1)
2987 auto *D = ArgNo
2989 *ArgNo, Unit, Line, Ty)
3035 ArgNo
3036 ? DBuilder.createParameterVariable(Scope, Name, *ArgNo, Unit, Line,
3132 unsigned ArgNo,
3135 EmitDeclare(VD, AI, ArgNo, Builder);
3150 unsigned ArgNo,
2922 EmitDeclare(const VarDecl *VD, llvm::Value *Storage, llvm::Optional<unsigned> ArgNo, CGBuilderTy &Builder) argument
3131 EmitDeclareOfArgVariable(const VarDecl *VD, llvm::Value *AI, unsigned ArgNo, CGBuilderTy &Builder) argument
3148 EmitDeclareOfBlockLiteralArgVariable(const CGBlockInfo &block, llvm::Value *Arg, unsigned ArgNo, llvm::Value *LocalAddr, CGBuilderTy &Builder) argument
[all...]
/external/llvm/lib/IR/
H A DDIBuilder.cpp609 DIScope *Scope, StringRef Name, unsigned ArgNo, DIFile *File,
619 File, LineNo, DITypeRef::get(Ty), ArgNo, Flags);
636 /* ArgNo */ 0, File, LineNo, Ty, AlwaysPreserve,
641 DIScope *Scope, StringRef Name, unsigned ArgNo, DIFile *File,
643 assert(ArgNo && "Expected non-zero argument number for parameter");
644 return createLocalVariable(VMContext, PreservedVariables, Scope, Name, ArgNo,
606 createLocalVariable( LLVMContext &VMContext, DenseMap<MDNode *, std::vector<TrackingMDNodeRef>> &PreservedVariables, DIScope *Scope, StringRef Name, unsigned ArgNo, DIFile *File, unsigned LineNo, DIType *Ty, bool AlwaysPreserve, unsigned Flags) argument
640 createParameterVariable( DIScope *Scope, StringRef Name, unsigned ArgNo, DIFile *File, unsigned LineNo, DIType *Ty, bool AlwaysPreserve, unsigned Flags) argument
/external/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp1153 unsigned ArgNo = 0; local
1155 E = CalledFunc->arg_end(); I != E; ++I, ++AI, ++ArgNo) {
1162 if (CS.isByValArgument(ArgNo)) {
1164 CalledFunc->getParamAlignment(ArgNo+1));
/external/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp2329 unsigned ArgNo = 0; // ArgNo - The argument of the CallInst. local
2347 OpInfo.CallOperandVal = const_cast<Value *>(CS.getArgument(ArgNo++));
2365 OpInfo.CallOperandVal = const_cast<Value *>(CS.getArgument(ArgNo++));
/external/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp2813 unsigned ArgNo = CS.getArgumentNo(ArgIt); variable
2814 bool IsByVal = CS.paramHasAttr(ArgNo + 1, Attribute::ByVal);
/external/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp3972 unsigned ArgNo = 0; local
3981 Value *OpVal = CS->getArgOperand(ArgNo++);
3984 ArgNo++;

Completed in 3830 milliseconds

12