Home | History | Annotate | Download | only in HowToUseJIT

Lines Matching refs:Function

26 // function and return result to a driver, i.e. to a "host program".
32 // conflict of temporary function name with some real
33 // existing function name?
58 // Create some module to put our function into it.
61 // Create the add1 function entry and insert this entry into module M. The
62 // function will have a return type of "int" and take an argument of "int".
64 Function *Add1F =
65 cast<Function>(M->getOrInsertFunction("add1", Type::getInt32Ty(Context),
69 // Add a basic block to the function. As before, it automatically inserts
80 // Get pointers to the integer argument of the add1 function...
91 // Now, function add1 is ready.
94 // Now we're going to create function `foo', which returns an int and takes no
96 Function *FooF =
97 cast<Function>(M->getOrInsertFunction("foo", Type::getInt32Ty(Context),
100 // Add a basic block to the FooF function.
123 // Call the `foo' function with no arguments: