Home
last modified time | relevance | path

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

12

/external/llvm/include/llvm/IR/
DCallSite.h113 ValTy *getArgument(unsigned ArgNo) const { in getArgument() argument
114 assert(arg_begin() + ArgNo < arg_end() && "Argument # out of range!"); in getArgument()
115 return *(arg_begin() + ArgNo); in getArgument()
118 void setArgument(unsigned ArgNo, Value* newVal) { in setArgument() argument
120 assert(arg_begin() + ArgNo < arg_end() && "Argument # out of range!"); in setArgument()
121 getInstruction()->setOperand(ArgNo, newVal); in setArgument()
270 bool doesNotCapture(unsigned ArgNo) const { in doesNotCapture() argument
271 return paramHasAttr(ArgNo + 1, Attribute::NoCapture); in doesNotCapture()
275 bool isByValArgument(unsigned ArgNo) const { in isByValArgument() argument
276 return paramHasAttr(ArgNo + 1, Attribute::ByVal); in isByValArgument()
[all …]
DDIBuilder.h541 unsigned ArgNo = 0);
559 unsigned ArgNo = 0);
DIntrinsics.td55 int ArgNo = argNo;
61 int ArgNo = argNo;
67 int ArgNo = argNo;
/external/llvm/lib/ExecutionEngine/Interpreter/
DExternalFunctions.cpp200 const unsigned ArgNo = A->getArgNo(); in ffiInvoke() local
201 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke()
202 args[ArgNo] = ffiTypeFor(ArgTy); in ffiInvoke()
212 const unsigned ArgNo = A->getArgNo(); in ffiInvoke() local
213 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke()
214 values[ArgNo] = ffiValueFor(ArgTy, ArgVals[ArgNo], ArgDataPtr); in ffiInvoke()
336 unsigned ArgNo = 2; in lle_X_sprintf() local
372 sprintf(Buffer, FmtBuf, uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf()
388 sprintf(Buffer, FmtBuf, Args[ArgNo++].IntVal.getZExtValue()); in lle_X_sprintf()
390 sprintf(Buffer, FmtBuf,uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf()
[all …]
/external/clang/lib/Lex/
DTokenLexer.cpp189 int ArgNo = Macro->getArgumentNum(Tokens[i+1].getIdentifierInfo()); in ExpandFunctionArguments() local
190 assert(ArgNo != -1 && "Token following # is not an argument?"); in ExpandFunctionArguments()
199 Res = ActualArgs->getStringifiedArgument(ArgNo, PP, in ExpandFunctionArguments()
204 Res = MacroArgs::StringifyArgument(ActualArgs->getUnexpArgument(ArgNo), in ExpandFunctionArguments()
232 int ArgNo = II ? Macro->getArgumentNum(II) : -1; in ExpandFunctionArguments() local
233 if (ArgNo == -1) { in ExpandFunctionArguments()
257 Macro, ArgNo, PP)) in ExpandFunctionArguments()
268 const Token *ArgTok = ActualArgs->getUnexpArgument(ArgNo); in ExpandFunctionArguments()
270 ResultArgToks = &ActualArgs->getPreExpArgument(ArgNo, Macro, PP)[0]; in ExpandFunctionArguments()
314 const Token *ArgToks = ActualArgs->getUnexpArgument(ArgNo); in ExpandFunctionArguments()
[all …]
DMacroArgs.cpp297 const Token &MacroArgs::getStringifiedArgument(unsigned ArgNo, in getStringifiedArgument() argument
301 assert(ArgNo < NumUnexpArgTokens && "Invalid argument number!"); in getStringifiedArgument()
307 if (StringifiedArgs[ArgNo].isNot(tok::string_literal)) in getStringifiedArgument()
308 StringifiedArgs[ArgNo] = StringifyArgument(getUnexpArgument(ArgNo), PP, in getStringifiedArgument()
312 return StringifiedArgs[ArgNo]; in getStringifiedArgument()
/external/clang/lib/Basic/
DDiagnostic.cpp691 unsigned ArgNo = *DiagStr++ - '0'; in FormatDiagnostic() local
694 unsigned ArgNo2 = ArgNo; in FormatDiagnostic()
696 DiagnosticsEngine::ArgumentKind Kind = getArgKind(ArgNo); in FormatDiagnostic()
715 const char ArgStr1[] = { '%', static_cast<char>('0' + ArgNo) }; in FormatDiagnostic()
729 const std::string &S = getArgStdStr(ArgNo); in FormatDiagnostic()
735 const char *S = getArgCStr(ArgNo); in FormatDiagnostic()
747 int Val = getArgSInt(ArgNo); in FormatDiagnostic()
766 unsigned Val = getArgUInt(ArgNo); in FormatDiagnostic()
785 tok::TokenKind Kind = static_cast<tok::TokenKind>(getRawArg(ArgNo)); in FormatDiagnostic()
807 const IdentifierInfo *II = getArgIdentifier(ArgNo); in FormatDiagnostic()
[all …]
/external/llvm/lib/Analysis/
DAliasAnalysis.cpp457 unsigned ArgNo = 0; in callCapturesBefore() local
460 CI != CE; ++CI, ++ArgNo) { in callCapturesBefore()
465 (!CS.doesNotCapture(ArgNo) && !CS.isByValArgument(ArgNo))) in callCapturesBefore()
475 if (CS.doesNotAccessMemory(ArgNo)) in callCapturesBefore()
477 if (CS.onlyReadsMemory(ArgNo)) { in callCapturesBefore()
DBasicAliasAnalysis.cpp829 unsigned ArgNo = 0; in getModRefInfo() local
831 CI != CE; ++CI, ++ArgNo) { in getModRefInfo()
836 (!CS.doesNotCapture(ArgNo) && !CS.isByValArgument(ArgNo))) in getModRefInfo()
/external/llvm/utils/TableGen/
DCodeGenTarget.cpp584 unsigned ArgNo = Property->getValueAsInt("ArgNo"); in CodeGenIntrinsic() local
585 ArgumentAttributes.push_back(std::make_pair(ArgNo, NoCapture)); in CodeGenIntrinsic()
587 unsigned ArgNo = Property->getValueAsInt("ArgNo"); in CodeGenIntrinsic() local
588 ArgumentAttributes.push_back(std::make_pair(ArgNo, ReadOnly)); in CodeGenIntrinsic()
590 unsigned ArgNo = Property->getValueAsInt("ArgNo"); in CodeGenIntrinsic() local
591 ArgumentAttributes.push_back(std::make_pair(ArgNo, ReadNone)); in CodeGenIntrinsic()
DIntrinsicEmitter.cpp325 unsigned ArgNo = ArgCodes.size(); in EncodeFixedType() local
329 return Sig.push_back((ArgNo << 2) | Tmp); in EncodeFixedType()
/external/clang/lib/ASTMatchers/Dynamic/
DMarshallers.h141 virtual void getArgKinds(ast_type_traits::ASTNodeKind ThisKind, unsigned ArgNo,
215 void getArgKinds(ast_type_traits::ASTNodeKind ThisKind, unsigned ArgNo,
217 Kinds.push_back(ArgKinds[ArgNo]);
367 void getArgKinds(ast_type_traits::ASTNodeKind ThisKind, unsigned ArgNo,
560 void getArgKinds(ast_type_traits::ASTNodeKind ThisKind, unsigned ArgNo,
564 O->getArgKinds(ThisKind, ArgNo, Kinds);
617 void getArgKinds(ast_type_traits::ASTNodeKind ThisKind, unsigned ArgNo,
/external/llvm/lib/Transforms/IPO/
DDeadArgumentElimination.cpp363 unsigned ArgNo = UnusedArgs[I]; in RemoveDeadArgumentsFromCallers() local
365 Value *Arg = CS.getArgument(ArgNo); in RemoveDeadArgumentsFromCallers()
366 CS.setArgument(ArgNo, UndefValue::get(Arg->getType())); in RemoveDeadArgumentsFromCallers()
450 unsigned ArgNo = CS.getArgumentNo(U); in SurveyUse() local
452 if (ArgNo >= F->getFunctionType()->getNumParams()) in SurveyUse()
456 assert(CS.getArgument(ArgNo) in SurveyUse()
462 RetOrArg Use = CreateArg(F, ArgNo); in SurveyUse()
DArgumentPromotion.cpp230 unsigned ArgNo = Arg->getArgNo(); in AllCallersPassInValidPointerForArgument() local
238 if (!CS.getArgument(ArgNo)->isDereferenceablePointer(DL)) in AllCallersPassInValidPointerForArgument()
/external/clang/include/clang/Lex/
DMacroArgs.h92 const Token &getStringifiedArgument(unsigned ArgNo, Preprocessor &PP,
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp92 unsigned ArgNo = CS.getArgumentNo(&U); in isOnlyCopiedFromConstantGlobal() local
93 if (CS.isInAllocaArgument(ArgNo)) in isOnlyCopiedFromConstantGlobal()
100 (CS.getInstruction()->use_empty() || CS.doesNotCapture(ArgNo))) in isOnlyCopiedFromConstantGlobal()
105 if (CS.isByValArgument(ArgNo)) in isOnlyCopiedFromConstantGlobal()
/external/llvm/lib/Transforms/Scalar/
DMemCpyOptimizer.cpp349 bool processByValArgument(CallSite CS, unsigned ArgNo);
932 bool MemCpyOpt::processByValArgument(CallSite CS, unsigned ArgNo) { in processByValArgument() argument
936 Value *ByValArg = CS.getArgument(ArgNo); in processByValArgument()
961 unsigned ByValAlign = CS.getParamAlignment(ArgNo+1); in processByValArgument()
995 CS.setArgument(ArgNo, TmpCast); in processByValArgument()
DTailRecursionElimination.cpp485 unsigned ArgNo = 0; in isDynamicConstant() local
488 ++ArgNo; in isDynamicConstant()
493 if (CI->getArgOperand(ArgNo) == Arg) in isDynamicConstant()
/external/llvm/lib/Transforms/Utils/
DInlineFunction.cpp610 unsigned ArgNo = 0; in InlineFunction() local
612 E = CalledFunc->arg_end(); I != E; ++I, ++AI, ++ArgNo) { in InlineFunction()
619 if (CS.isByValArgument(ArgNo)) { in InlineFunction()
621 CalledFunc->getParamAlignment(ArgNo+1)); in InlineFunction()
/external/clang/lib/CodeGen/
DCGDebugInfo.h263 unsigned ArgNo, CGBuilderTy &Builder);
308 llvm::Value *AI, unsigned ArgNo, CGBuilderTy &Builder);
DCGCall.cpp1398 unsigned ArgNo = 1; in EmitFunctionProlog() local
1401 i != e; ++i, ++info_it, ++ArgNo) { in EmitFunctionProlog()
1612 if (ArgNo == 1 && SwapThisWithSRet) in EmitFunctionProlog()
2514 static void checkArgMatches(llvm::Value *Elt, unsigned &ArgNo, in checkArgMatches() argument
2516 if (ArgNo < FTy->getNumParams()) in checkArgMatches()
2517 assert(Elt->getType() == FTy->getParamType(ArgNo)); in checkArgMatches()
2520 ++ArgNo; in checkArgMatches()
DCGDebugInfo.cpp2713 unsigned ArgNo, CGBuilderTy &Builder) { in EmitDeclare() argument
2750 if (isa<ImplicitParamDecl>(VD) && ArgNo == 1) in EmitDeclare()
2781 addr, ArgNo); in EmitDeclare()
2808 ArgNo); in EmitDeclare()
2823 CGM.getLangOpts().Optimize, Flags, ArgNo); in EmitDeclare()
2922 unsigned ArgNo, in EmitDeclareOfArgVariable() argument
2925 EmitDeclare(VD, llvm::dwarf::DW_TAG_arg_variable, AI, ArgNo, Builder); in EmitDeclareOfArgVariable()
/external/llvm/lib/IR/
DDIBuilder.cpp1041 unsigned ArgNo) { in createLocalVariable() argument
1050 ConstantInt::get(Type::getInt32Ty(VMContext), (LineNo | (ArgNo << 24))), in createLocalVariable()
1077 unsigned ArgNo) { in createComplexVariable() argument
1085 (LineNo | (ArgNo << 24))), in createComplexVariable()
/external/llvm/lib/CodeGen/AsmPrinter/
DDwarfDebug.cpp1127 unsigned ArgNo = DV.getArgNumber(); in addCurrentFnArgument() local
1128 if (ArgNo == 0) in addCurrentFnArgument()
1136 if (ArgNo > Size) in addCurrentFnArgument()
1137 CurrentFnArguments.resize(ArgNo * 2); in addCurrentFnArgument()
1138 CurrentFnArguments[ArgNo - 1] = Var; in addCurrentFnArgument()
/external/llvm/lib/Target/PowerPC/
DPPCISelLowering.cpp2483 for (unsigned ArgNo = 0, e = Ins.size(); ArgNo != e; ++ArgNo) { in LowerFormalArguments_64SVR4() local
2486 EVT ObjectVT = Ins[ArgNo].VT; in LowerFormalArguments_64SVR4()
2489 ISD::ArgFlagsTy Flags = Ins[ArgNo].Flags; in LowerFormalArguments_64SVR4()
2490 std::advance(FuncArg, Ins[ArgNo].OrigArgIndex - CurArgIdx); in LowerFormalArguments_64SVR4()
2491 CurArgIdx = Ins[ArgNo].OrigArgIndex; in LowerFormalArguments_64SVR4()
2764 for (unsigned ArgNo = 0, e = Ins.size(); ArgNo != e; in LowerFormalArguments_Darwin() local
2765 ++ArgNo) { in LowerFormalArguments_Darwin()
2766 EVT ObjectVT = Ins[ArgNo].VT; in LowerFormalArguments_Darwin()
2767 ISD::ArgFlagsTy Flags = Ins[ArgNo].Flags; in LowerFormalArguments_Darwin()
2813 for (unsigned ArgNo = 0, e = Ins.size(); ArgNo != e; ++ArgNo) { in LowerFormalArguments_Darwin() local
[all …]

12