-
Notifications
You must be signed in to change notification settings - Fork 9
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 LLVM.jl-like context state handling. #17
Conversation
Thanks for the PR!
I added context as a field to MModule and PassManager so that the context is not GCed when only keeping a reference to the module/pass manager but this does not seem needed with your method. |
I've found a few places where I'd forgotten to remove the context argument. Since I haven't tested all functions, it's possible I might've overlooked a few additional spots but I think this is about ready for review and merging for now if this context handling is wanted? |
Argh silly github. |
Can you rebase? |
* functions in Pass.jl have not yet been properly adapted. * I might've been a bit too enthousiastic with removing contexts: MModule and PassManager might still need to keep theirs. * The way code_mlir in brutus.jl now uses context might need a closer look.
408ca33
to
ffe0454
Compare
Codecov ReportAttention: ❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
📢 Thoughts on this report? Let us know!. |
re: #11
The conversion to different style of context handling hasn't yet been pulled through completely.