Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:Args

260 CodeGenTypes::arrangeCXXConstructorCall(const CallArgList &args,
266 for (const auto &Arg : args)
405 const CallArgList &args,
409 assert(args.size() >= numExtraRequiredArgs);
425 .isNoProtoCallVariadic(args,
427 required = RequiredArgs(args.size());
432 for (const auto &arg : args)
444 CodeGenTypes::arrangeFreeFunctionCall(const CallArgList &args,
447 return arrangeFreeFunctionLikeCall(*this, CGM, args, fnType,
454 CodeGenTypes::arrangeBlockFunctionCall(const CallArgList &args,
456 return arrangeFreeFunctionLikeCall(*this, CGM, args, fnType, 1,
462 const CallArgList &args,
467 for (const auto &Arg : args)
476 CodeGenTypes::arrangeCXXMethodCall(const CallArgList &args,
481 for (const auto &Arg : args)
491 QualType resultType, const FunctionArgList &args,
495 for (auto Arg : args)
499 (isVariadic ? RequiredArgs(args.size()) : RequiredArgs::All);
1816 const FunctionArgList &Args) {
1841 for (auto &Arg : Fn->args()) {
1870 ArgVals.reserve(Args.size());
1876 assert(FI.arg_size() == Args.size() &&
1880 for (FunctionArgList::const_iterator i = Args.begin(), e = Args.end();
2136 for (int I = Args.size() - 1; I >= 0; --I)
2137 EmitParmDecl(*Args[I], ArgVals[I], I + 1);
2139 for (unsigned I = 0, E = Args.size(); I != E; ++I)
2140 EmitParmDecl(*Args[I], ArgVals[I], I + 1);
2530 void CodeGenFunction::EmitDelegateCallArg(CallArgList &args,
2546 return args.add(RValue::getAggregate(local), type);
2550 return args.add(RValue::get(Builder.CreateLoad(local)), type);
2556 args.add(convertTempToRValue(local, type, loc), type);
2634 const CallArgList &args) {
2635 for (const auto &I : args.writebacks())
2662 static void emitWritebackArg(CodeGenFunction &CGF, CallArgList &args,
2689 args.add(RValue::get(llvm::ConstantPointerNull::get(destType)),
2785 args.addWriteback(srcLV, temp, valueToUse);
2786 args.add(RValue::get(finalArgument), CRE->getType());
2831 CallArgList &Args, ArrayRef<QualType> ArgTypes,
2847 Args.add(RValue::get(V), SizeTy);
2853 // Insert a stack save if we're going to need any inalloca args.
2860 Args.allocateArgumentMemory(*this);
2864 size_t CallArgsStart = Args.size();
2867 EmitCallArg(Args, *Arg, ArgTypes[I]);
2868 EmitNonNullArgCheck(Args.back().RV, ArgTypes[I], (*Arg)->getExprLoc(),
2875 std::reverse(Args.begin() + CallArgsStart, Args.end());
2882 EmitCallArg(Args, *Arg, ArgTypes[I]);
2883 EmitNonNullArgCheck(Args.back().RV, ArgTypes[I], (*Arg)->getExprLoc(),
2921 void CodeGenFunction::EmitCallArg(CallArgList &args, const Expr *E,
2928 return emitWritebackArg(*this, args, CRE);
2936 return args.add(EmitReferenceBindingToExpr(E), type);
2949 if (args.isUsingInAlloca())
2963 args.add(RV, type);
2973 args.addArgCleanupDeactivation(EHStack.getInnermostEHScope(), IsActive);
2983 args.add(L.asAggregateRValue(), type, /*NeedsCopy*/true);
2989 args.add(RValue::getAggregate(tmp), type);
2994 args.add(EmitAnyExprToTemp(E), type);
3035 ArrayRef<llvm::Value*> args,
3037 llvm::CallInst *call = EmitRuntimeCall(callee, args, name);
3054 ArrayRef<llvm::Value*> args,
3056 llvm::CallInst *call = Builder.CreateCall(callee, args, name);
3081 ArrayRef<llvm::Value*> args) {
3090 args,
3095 llvm::CallInst *call = Builder.CreateCall(callee, args, BundleList);
3113 ArrayRef<llvm::Value*> args,
3115 llvm::CallSite callSite = EmitCallOrInvoke(callee, args, name);
3124 ArrayRef<llvm::Value *> Args,
3130 Inst = Builder.CreateCall(Callee, Args, Name);
3133 Inst = Builder.CreateInvoke(Callee, ContBB, InvokeDest, Args, Name);