Home
last modified time | relevance | path

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

12

/external/llvm/include/llvm/IR/
DCallSite.h121 ValTy *getArgument(unsigned ArgNo) const { in getArgument() argument
122 assert(arg_begin() + ArgNo < arg_end() && "Argument # out of range!"); in getArgument()
123 return *(arg_begin() + ArgNo); in getArgument()
126 void setArgument(unsigned ArgNo, Value* newVal) { in setArgument() argument
128 assert(arg_begin() + ArgNo < arg_end() && "Argument # out of range!"); in setArgument()
129 getInstruction()->setOperand(ArgNo, newVal); in setArgument()
408 bool isByValArgument(unsigned ArgNo) const { in isByValArgument() argument
409 return paramHasAttr(ArgNo + 1, Attribute::ByVal); in isByValArgument()
413 bool isInAllocaArgument(unsigned ArgNo) const { in isInAllocaArgument() argument
414 return paramHasAttr(ArgNo + 1, Attribute::InAlloca); in isInAllocaArgument()
[all …]
/external/llvm/lib/ExecutionEngine/Interpreter/
DExternalFunctions.cpp198 const unsigned ArgNo = A->getArgNo(); in ffiInvoke() local
199 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke()
200 args[ArgNo] = ffiTypeFor(ArgTy); in ffiInvoke()
210 const unsigned ArgNo = A->getArgNo(); in ffiInvoke() local
211 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke()
212 values[ArgNo] = ffiValueFor(ArgTy, ArgVals[ArgNo], ArgDataPtr); in ffiInvoke()
328 unsigned ArgNo = 2; in lle_X_sprintf() local
364 sprintf(Buffer, FmtBuf, uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf()
380 sprintf(Buffer, FmtBuf, Args[ArgNo++].IntVal.getZExtValue()); in lle_X_sprintf()
382 sprintf(Buffer, FmtBuf,uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf()
[all …]
/external/clang/lib/Lex/
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()
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()
233 int ArgNo = II ? Macro->getArgumentNum(II) : -1; in ExpandFunctionArguments() local
234 if (ArgNo == -1) { in ExpandFunctionArguments()
258 Macro, ArgNo, PP)) in ExpandFunctionArguments()
269 const Token *ArgTok = ActualArgs->getUnexpArgument(ArgNo); in ExpandFunctionArguments()
271 ResultArgToks = &ActualArgs->getPreExpArgument(ArgNo, Macro, PP)[0]; in ExpandFunctionArguments()
315 const Token *ArgToks = ActualArgs->getUnexpArgument(ArgNo); in ExpandFunctionArguments()
[all …]
/external/clang/lib/Basic/
DDiagnostic.cpp721 unsigned ArgNo = *DiagStr++ - '0'; in FormatDiagnostic() local
724 unsigned ArgNo2 = ArgNo; in FormatDiagnostic()
726 DiagnosticsEngine::ArgumentKind Kind = getArgKind(ArgNo); in FormatDiagnostic()
745 const char ArgStr1[] = { '%', static_cast<char>('0' + ArgNo) }; in FormatDiagnostic()
759 const std::string &S = getArgStdStr(ArgNo); in FormatDiagnostic()
765 const char *S = getArgCStr(ArgNo); in FormatDiagnostic()
777 int Val = getArgSInt(ArgNo); in FormatDiagnostic()
796 unsigned Val = getArgUInt(ArgNo); in FormatDiagnostic()
815 tok::TokenKind Kind = static_cast<tok::TokenKind>(getRawArg(ArgNo)); in FormatDiagnostic()
837 const IdentifierInfo *II = getArgIdentifier(ArgNo); in FormatDiagnostic()
[all …]
/external/llvm/lib/Analysis/
DAliasAnalysis.cpp333 unsigned ArgNo = 0; in callCapturesBefore() local
336 CI != CE; ++CI, ++ArgNo) { in callCapturesBefore()
341 (!CS.doesNotCapture(ArgNo) && !CS.isByValArgument(ArgNo))) in callCapturesBefore()
350 if (CS.doesNotAccessMemory(ArgNo)) in callCapturesBefore()
352 if (CS.onlyReadsMemory(ArgNo)) { in callCapturesBefore()
DBasicAliasAnalysis.cpp705 unsigned ArgNo = 0; in getModRefInfo() local
707 CI != CE; ++CI, ++ArgNo) { in getModRefInfo()
712 (!CS.doesNotCapture(ArgNo) && !CS.isByValArgument(ArgNo))) in getModRefInfo()
/external/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp311 unsigned ArgNo = 0; in processCallSite() local
316 if (Type && !CS.paramHasAttr(ArgNo + 1, Attribute::NonNull) && in processCallSite()
320 Indices.push_back(ArgNo + 1); in processCallSite()
321 ArgNo++; in processCallSite()
324 assert(ArgNo == CS.arg_size() && "sanity check"); in processCallSite()
DMemCpyOptimizer.cpp344 bool processByValArgument(CallSite CS, unsigned ArgNo);
1070 bool MemCpyOpt::processByValArgument(CallSite CS, unsigned ArgNo) { in processByValArgument() argument
1073 Value *ByValArg = CS.getArgument(ArgNo); in processByValArgument()
1097 unsigned ByValAlign = CS.getParamAlignment(ArgNo+1); in processByValArgument()
1136 CS.setArgument(ArgNo, TmpCast); in processByValArgument()
DTailRecursionElimination.cpp489 unsigned ArgNo = 0; in isDynamicConstant() local
492 ++ArgNo; in isDynamicConstant()
497 if (CI->getArgOperand(ArgNo) == Arg) in isDynamicConstant()
/external/clang/lib/CodeGen/
DCGCall.cpp1156 bool hasPaddingArg(unsigned ArgNo) const { in hasPaddingArg()
1157 assert(ArgNo < ArgInfo.size()); in hasPaddingArg()
1158 return ArgInfo[ArgNo].PaddingArgIndex != InvalidIndex; in hasPaddingArg()
1160 unsigned getPaddingArgNo(unsigned ArgNo) const { in getPaddingArgNo()
1161 assert(hasPaddingArg(ArgNo)); in getPaddingArgNo()
1162 return ArgInfo[ArgNo].PaddingArgIndex; in getPaddingArgNo()
1167 std::pair<unsigned, unsigned> getIRArgs(unsigned ArgNo) const { in getIRArgs()
1168 assert(ArgNo < ArgInfo.size()); in getIRArgs()
1169 return std::make_pair(ArgInfo[ArgNo].FirstArgIndex, in getIRArgs()
1170 ArgInfo[ArgNo].NumberOfArgs); in getIRArgs()
[all …]
DCGDebugInfo.h332 unsigned ArgNo, CGBuilderTy &Builder);
337 llvm::Value *Arg, unsigned ArgNo,
381 llvm::Optional<unsigned> ArgNo, CGBuilderTy &Builder);
DCGDebugInfo.cpp2923 llvm::Optional<unsigned> ArgNo, in EmitDeclare() argument
2962 if (isa<ImplicitParamDecl>(VD) && ArgNo && *ArgNo == 1) in EmitDeclare()
2987 auto *D = ArgNo in EmitDeclare()
2989 *ArgNo, Unit, Line, Ty) in EmitDeclare()
3035 ArgNo in EmitDeclare()
3036 ? DBuilder.createParameterVariable(Scope, Name, *ArgNo, Unit, Line, in EmitDeclare()
3132 unsigned ArgNo, in EmitDeclareOfArgVariable() argument
3135 EmitDeclare(VD, AI, ArgNo, Builder); in EmitDeclareOfArgVariable()
3150 unsigned ArgNo, in EmitDeclareOfBlockLiteralArgVariable() argument
3278 scope, Arg->getName(), ArgNo, tunit, line, type, in EmitDeclareOfBlockLiteralArgVariable()
/external/llvm/utils/TableGen/
DCodeGenTarget.cpp593 unsigned ArgNo = Property->getValueAsInt("ArgNo"); in CodeGenIntrinsic() local
594 ArgumentAttributes.push_back(std::make_pair(ArgNo, NoCapture)); in CodeGenIntrinsic()
596 unsigned ArgNo = Property->getValueAsInt("ArgNo"); in CodeGenIntrinsic() local
597 ArgumentAttributes.push_back(std::make_pair(ArgNo, ReadOnly)); in CodeGenIntrinsic()
599 unsigned ArgNo = Property->getValueAsInt("ArgNo"); in CodeGenIntrinsic() local
600 ArgumentAttributes.push_back(std::make_pair(ArgNo, ReadNone)); in CodeGenIntrinsic()
DIntrinsicEmitter.cpp343 unsigned ArgNo = ArgCodes.size(); in EncodeFixedType() local
347 return Sig.push_back((ArgNo << 3) | Tmp); in EncodeFixedType()
/external/clang/lib/ASTMatchers/Dynamic/
DMarshallers.h122 virtual void getArgKinds(ast_type_traits::ASTNodeKind ThisKind, unsigned ArgNo,
191 void getArgKinds(ast_type_traits::ASTNodeKind ThisKind, unsigned ArgNo,
193 Kinds.push_back(ArgKinds[ArgNo]);
345 void getArgKinds(ast_type_traits::ASTNodeKind ThisKind, unsigned ArgNo,
539 void getArgKinds(ast_type_traits::ASTNodeKind ThisKind, unsigned ArgNo,
543 O->getArgKinds(ThisKind, ArgNo, Kinds);
597 void getArgKinds(ast_type_traits::ASTNodeKind ThisKind, unsigned ArgNo,
/external/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp264 unsigned ArgNo = PtrArg->getArgNo(); in PromoteArguments() local
267 .removeAttribute(F->getContext(), ArgNo + 1, Attribute::StructRet) in PromoteArguments()
268 .addAttribute(F->getContext(), ArgNo + 1, Attribute::NoAlias)); in PromoteArguments()
273 .removeAttribute(F->getContext(), ArgNo + 1, in PromoteArguments()
275 .addAttribute(F->getContext(), ArgNo + 1, Attribute::NoAlias)); in PromoteArguments()
348 unsigned ArgNo = Arg->getArgNo(); in AllCallersPassInValidPointerForArgument() local
356 if (!isDereferenceablePointer(CS.getArgument(ArgNo), DL)) in AllCallersPassInValidPointerForArgument()
DDeadArgumentElimination.cpp367 unsigned ArgNo = UnusedArgs[I]; in RemoveDeadArgumentsFromCallers() local
369 Value *Arg = CS.getArgument(ArgNo); in RemoveDeadArgumentsFromCallers()
370 CS.setArgument(ArgNo, UndefValue::get(Arg->getType())); in RemoveDeadArgumentsFromCallers()
487 unsigned ArgNo = CS.getArgumentNo(U); in SurveyUse() local
489 if (ArgNo >= F->getFunctionType()->getNumParams()) in SurveyUse()
493 assert(CS.getArgument(ArgNo) in SurveyUse()
499 RetOrArg Use = CreateArg(F, ArgNo); in SurveyUse()
/external/clang/include/clang/Lex/
DMacroArgs.h93 const Token &getStringifiedArgument(unsigned ArgNo, Preprocessor &PP,
/external/llvm/bindings/go/llvm/
DDIBuilderBindings.cpp99 unsigned ArgNo, LLVMMetadataRef File, unsigned Line, LLVMMetadataRef Ty, in LLVMDIBuilderCreateParameterVariable() argument
103 unwrap<DIScope>(Scope), Name, ArgNo, unwrap<DIFile>(File), Line, in LLVMDIBuilderCreateParameterVariable()
DDIBuilderBindings.h67 LLVMDIBuilderRef D, LLVMMetadataRef Scope, const char *Name, unsigned ArgNo,
Ddibuilder.go255 ArgNo int member
266 C.unsigned(v.ArgNo),
/external/llvm/lib/IR/
DDIBuilder.cpp609 DIScope *Scope, StringRef Name, unsigned ArgNo, DIFile *File, in createLocalVariable() argument
619 File, LineNo, DITypeRef::get(Ty), ArgNo, Flags); in createLocalVariable()
641 DIScope *Scope, StringRef Name, unsigned ArgNo, DIFile *File, in createParameterVariable() argument
643 assert(ArgNo && "Expected non-zero argument number for parameter"); in createParameterVariable()
644 return createLocalVariable(VMContext, PreservedVariables, Scope, Name, ArgNo, in createParameterVariable()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp95 unsigned ArgNo = CS.getArgumentNo(&U); in isOnlyCopiedFromConstantGlobal() local
96 if (CS.isInAllocaArgument(ArgNo)) in isOnlyCopiedFromConstantGlobal()
103 (CS.getInstruction()->use_empty() || CS.doesNotCapture(ArgNo))) in isOnlyCopiedFromConstantGlobal()
108 if (CS.isByValArgument(ArgNo)) in isOnlyCopiedFromConstantGlobal()
/external/llvm/lib/Transforms/Utils/
DInlineFunction.cpp1153 unsigned ArgNo = 0; in InlineFunction() local
1155 E = CalledFunc->arg_end(); I != E; ++I, ++AI, ++ArgNo) { in InlineFunction()
1162 if (CS.isByValArgument(ArgNo)) { in InlineFunction()
1164 CalledFunc->getParamAlignment(ArgNo+1)); in InlineFunction()

12