Displaying 1 result from an estimated 1 matches for "d61515fb".
2019 Feb 26
2
How to implement function pointer?
Hi, I'm learning to use llvm api to generate IR code, I got two good
tutorials, https://llvm.org/docs/tutorial/ and
https://www.ibm.com/developerworks/library/os-createcompilerllvm1/index.html,
but non of those showed how to implement a function pointer(or at least
there is but I didn't find out).
For example I got a c style code like this:
int foo(int i) {
return ++i;
}
int