Lines Matching refs:Function
116 /// CallExprAST - Expression class for function calls.
126 /// PrototypeAST - This class represents the "prototype" for a function,
128 /// of arguments the function takes).
136 Function *Codegen();
139 /// FunctionAST - This class represents a function definition itself.
147 Function *Codegen();
297 return ErrorP("Expected function name in prototype");
359 // Look this variable up in the function.
384 Function *CalleeF = TheModule->getFunction(Callee);
386 return ErrorV("Unknown function referenced");
401 Function *PrototypeAST::Codegen() {
402 // Make the function type: double(double,double) etc.
408 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule);
419 ErrorF("redefinition of function");
425 ErrorF("redefinition of function with different # args");
432 for (Function::arg_iterator AI = F->arg_begin(); Idx != Args.size();
443 Function *FunctionAST::Codegen() {
446 Function *TheFunction = Proto->Codegen();
455 // Finish off the function.
464 // Error reading body, remove function.
475 if (Function *LF = F->Codegen()) {
476 fprintf(stderr, "Read function definition:");
487 if (Function *F = P->Codegen()) {
498 // Evaluate a top-level expression into an anonymous function.
500 if (Function *LF = F->Codegen()) {