Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:Args

248 CodeGenTypes::arrangeCXXConstructorCall(const CallArgList &args,
254 for (CallArgList::const_iterator i = args.begin(), e = args.end(); i != e;
376 const CallArgList &args,
379 assert(args.size() >= numExtraRequiredArgs);
395 .isNoProtoCallVariadic(args,
397 required = RequiredArgs(args.size());
400 return CGT.arrangeFreeFunctionCall(fnType->getReturnType(), args,
409 args,
411 return arrangeFreeFunctionLikeCall(*this, CGM, args, fnType, 0);
417 CodeGenTypes::arrangeBlockFunctionCall(const CallArgList &args,
419 return arrangeFreeFunctionLikeCall(*this, CGM, args, fnType, 1);
424 const CallArgList &args,
429 for (CallArgList::const_iterator i = args.begin(), e = args.end();
438 CodeGenTypes::arrangeCXXMethodCall(const CallArgList &args,
443 for (CallArgList::const_iterator i = args.begin(), e = args.end();
453 QualType resultType, const FunctionArgList &args,
457 for (FunctionArgList::const_iterator i = args.begin(), e = args.end();
462 (isVariadic ? RequiredArgs(args.size()) : RequiredArgs::All);
1338 const FunctionArgList &Args) {
1390 ArgVals.reserve(Args.size());
1396 assert(FI.arg_size() == Args.size() &&
1400 for (FunctionArgList::const_iterator i = Args.begin(), e = Args.end();
1621 for (int I = Args.size() - 1; I >= 0; --I)
1622 EmitParmDecl(*Args[I], ArgVals[I].getPointer(), ArgVals[I].getInt(),
1625 for (unsigned I = 0, E = Args.size(); I != E; ++I)
1626 EmitParmDecl(*Args[I], ArgVals[I].getPointer(), ArgVals[I].getInt(),
1964 void CodeGenFunction::EmitDelegateCallArg(CallArgList &args,
1980 return args.add(RValue::getAggregate(local), type);
1984 return args.add(RValue::get(Builder.CreateLoad(local)), type);
1997 args.add(RV, type);
2001 args.add(convertTempToRValue(local, type, loc), type);
2079 const CallArgList &args) {
2080 for (const auto &I : args.writebacks())
2106 static void emitWritebackArg(CodeGenFunction &CGF, CallArgList &args,
2133 args.add(RValue::get(llvm::ConstantPointerNull::get(destType)),
2227 args.addWriteback(srcLV, temp, valueToUse);
2228 args.add(RValue::get(finalArgument), CRE->getType());
2259 void CodeGenFunction::EmitCallArgs(CallArgList &Args,
2271 // Insert a stack save if we're going to need any inalloca args.
2278 Args.allocateArgumentMemory(*this);
2282 size_t CallArgsStart = Args.size();
2285 EmitCallArg(Args, *Arg, ArgTypes[I]);
2292 std::reverse(Args.begin() + CallArgsStart, Args.end());
2299 EmitCallArg(Args, *Arg, ArgTypes[I]);
2324 void CodeGenFunction::EmitCallArg(CallArgList &args, const Expr *E,
2330 return emitWritebackArg(*this, args, CRE);
2338 return args.add(EmitReferenceBindingToExpr(E), type);
2351 if (args.isUsingInAlloca())
2365 args.add(RV, type);
2374 args.addArgCleanupDeactivation(EHStack.getInnermostEHScope(), IsActive);
2384 args.add(L.asAggregateRValue(), type, /*NeedsCopy*/true);
2391 args.add(RValue::getAggregate(tmp), type);
2396 args.add(EmitAnyExprToTemp(E), type);
2419 ArrayRef<llvm::Value*> args,
2421 llvm::CallInst *call = EmitRuntimeCall(callee, args, name);
2438 ArrayRef<llvm::Value*> args,
2440 llvm::CallInst *call = Builder.CreateCall(callee, args, name);
2447 ArrayRef<llvm::Value*> args) {
2453 args);
2457 llvm::CallInst *call = Builder.CreateCall(callee, args);
2476 ArrayRef<llvm::Value*> args,
2478 llvm::CallSite callSite = EmitCallOrInvoke(callee, args, name);
2493 ArrayRef<llvm::Value *> Args,
2499 Inst = Builder.CreateCall(Callee, Args, Name);
2502 Inst = Builder.CreateInvoke(Callee, ContBB, InvokeDest, Args, Name);
2524 SmallVectorImpl<llvm::Value *> &Args,
2533 ExpandTypeToArgs(EltTy, EltRV, Args, IRFuncTy);
2555 ExpandTypeToArgs(LargestFD->getType(), FldRV, Args, IRFuncTy);
2560 ExpandTypeToArgs(FD->getType(), FldRV, Args, IRFuncTy);
2565 Args.push_back(CV.first);
2566 Args.push_back(CV.second);
2573 if (Args.size() < IRFuncTy->getNumParams() &&
2574 V->getType() != IRFuncTy->getParamType(Args.size()))
2575 V = Builder.CreateBitCast(V, IRFuncTy->getParamType(Args.size()));
2577 Args.push_back(V);
2603 SmallVector<llvm::Value*, 16> Args;
2642 Args.push_back(SRetPtr);
2672 Args.push_back(llvm::UndefValue::get(PaddingType));
2712 Args.push_back(AI);
2714 LValue argLV = MakeAddrLValue(Args.back(), I->Ty, TypeAlign);
2742 Args.push_back(AI);
2749 Args.push_back(Addr);
2777 Args.push_back(V);
2833 Args.push_back(LI);
2840 Args.push_back(CreateCoercedLoad(SrcPtr, ArgInfo.getCoerceToType(),
2844 checkArgMatches(Args.back(), IRArgNo, IRFuncTy);
2851 ExpandTypeToArgs(I->Ty, RV, Args, IRFuncTy);
2852 IRArgNo = Args.size();
2858 std::swap(Args[0], Args[1]);
2890 Args.push_back(Arg);
2909 ActualFT->getNumParams() == Args.size() &&
2940 CS = Builder.CreateCall(Callee, Args);
2943 CS = Builder.CreateInvoke(Callee, Cont, InvokeDest, Args);