-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for global variables in nback.llvm #127
Comments
@heshanpadmasiri The link you gave is the C++ API. What is the C API? |
C API |
I think we should follow the C API and add methods to Module corresponding to those two functions. Be careful about types: I believe if you add a global |
@heshanpadmasiri You shouldn't rely on iteration order over a map. I fixed this. I also cleaned up getIntrinsicDeclaration and tweaked a few other things. Please try to follow my style. 2b3629c |
This is to support #91.
@jclark for this I am thinking of adding a new function
getOrInsertGlobal(string name, Type ty) returns Value
similar togetOrInsertGlobal
in C apiThe text was updated successfully, but these errors were encountered: