-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 julia pass pipeline to opt #46191
Conversation
c109c55
to
1b5213e
Compare
Should probably update the devdocs: https://github.com/JuliaLang/julia/blob/master/doc/src/devdocs/llvm.md#debugging-llvm-transformations-in-isolation= |
This seems great, thanks. Once this is all merged, I'll run it and send it over to the Alive2 folks. |
4981f50
to
690e882
Compare
1b5213e
to
48f4435
Compare
@maleadt while I'm handling the NewPM migration right now, what kind of C interface would GPUCompiler like for its own NewPM migration? I know there's still an issue with the PassBuilder's target-specific extension point passes, but ignoring that I can probably add in the relevant method calls. |
I haven't seriously looked at the NewPM yet, so wouldn't know. It looks like there's even no C API yet (Rust, e.g,. does all of the NewPM handling in C++)? Lacking that, I don't think we should already add any accessors here. I'll try to take a better look before 1.9 freezes. |
283d735
to
78dabb2
Compare
8238948
to
affe262
Compare
a8c3db1
to
1e562cd
Compare
1e562cd
to
86ac297
Compare
affe262
to
d17e11b
Compare
d17e11b
to
bf1e0de
Compare
bf1e0de
to
285c4da
Compare
* Use NewPM for optimization unless ASAN is in effect * Disable NewPM by default * Add julia pass pipeline to opt * Update llvm devdocs
We can now run the julia pipeline as a module pass in NewPM with this changeset. Useful commands are as follows:
usr/tools/opt --load-pass-plugin=libjulia-codegen.so --passes='julia<level=2;lower_intrinsics;no_dump_native;no_external_use;no_llvm_only>'
The options above are the defaults for the command, and may be optionally specified or specified with a
no_
prefix to set them to false.Depends on #46176
cc @Keno for #46181