Lines Matching refs:Function
33 static Function* createAdd1(Module *M) {
34 // Create the add1 function entry and insert this entry into module M. The
35 // function will have a return type of "int" and take an argument of "int".
37 Function *Add1F =
38 cast<Function>(M->getOrInsertFunction("add1",
43 // Add a basic block to the function. As before, it automatically inserts
50 // Get pointers to the integer argument of the add1 function...
61 // Now, function add1 is ready.
65 static Function *CreateFibFunction(Module *M) {
66 // Create the fib function and insert it into module M. This function is said
68 Function *FibF =
69 cast<Function>(M->getOrInsertFunction("fib",
74 // Add a basic block to the function.
81 // Get pointer to the integer argument of the add1 function...
117 Function* F;
227 // Call the `foo' function with no arguments:
241 // Create some module to put our function into it.
244 Function* add1F = createAdd1( M );
245 Function* fibF = CreateFibFunction( M );