Home | History | Annotate | Download | only in Fibonacci

Lines Matching refs:Function

11 // with function Fibonacci and execute it with the JIT.
14 // consisting of one function as follow:
22 // function and return result to a driver, i.e. to a "host program".
39 static Function *CreateFibFunction(Module *M, LLVMContext &Context) {
40 // Create the fib function and insert it into module M. This function is said
42 Function *FibF =
43 cast<Function>(M->getOrInsertFunction("fib", Type::getInt32Ty(Context),
47 // Add a basic block to the function.
54 // Get pointer to the integer argument of the add1 function...
98 // Create some module to put our function into it.
101 // We are about to create the "fib" function:
102 Function *FibF = CreateFibFunction(M.get(), Context);
120 errs() << argv[0] << ": Error constructing function!\n";
128 // Call the Fibonacci function with argument n: