Home | History | Annotate | Download | only in Chapter7

Lines Matching refs:Args

155   std::vector<ExprAST*> Args;
157 CallExprAST(const std::string &callee, std::vector<ExprAST*> &args)
158 : Callee(callee), Args(args) {}
198 std::vector<std::string> Args;
202 PrototypeAST(const std::string &name, const std::vector<std::string> &args,
204 : Name(name), Args(args), isOperator(isoperator), Precedence(prec) {}
206 bool isUnaryOp() const { return isOperator && Args.size() == 1; }
207 bool isBinaryOp() const { return isOperator && Args.size() == 2; }
279 std::vector<ExprAST*> Args;
284 Args.push_back(Arg);
297 return new CallExprAST(IdName, Args);
698 if (CalleeF->arg_size() != Args.size())
702 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
703 ArgsV.push_back(Args[i]->Codegen());
908 std::vector<Type*> Doubles(Args.size(),
928 // If F took a different number of args, reject.
929 if (F->arg_size() != Args.size()) {
930 ErrorF("redefinition of function with different # args");
937 for (Function::arg_iterator AI = F->arg_begin(); Idx != Args.size();
939 AI->setName(Args[Idx]);
948 for (unsigned Idx = 0, e = Args.size(); Idx != e; ++Idx, ++AI) {
950 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]);
956 NamedValues[Args[Idx]] = Alloca;