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
Choose target ISA in @code_llvm
and @code_native
#52949
Comments
I'm not even sure that the ISAs need to be smaller, we should never execute this code. In essence one would need to pass the features to the LLVM module we codegen into. |
Oh, that'd be lovely as we wouldn't depend on the current host, that was a limitation mentioned by @vchuravy on slack. |
That limitation only applies to |
Ah, I got mixed up about it then! |
So In Line 2213 in d384a36
|
Thanks! Just to check if I understood correctly, one strategy to accomplish this is to add a field to |
Yeah that's what I would try. |
Thanks! I added the "good fist issue" label, sounds like a fun task for someone who wants to get started with the compiler 🙂 |
Only for |
So first thing I would do is familiarize myself with the chain from |
Ohk sure @gbaraldi , Thankyou. |
@vchuravy mentioned on slack that it should be possible to teach
@code_llvm
and@code_native
to generate code for a different ISA (but within same architecture) than the target chosen at startup with-C
(native
by default), with the only caveat that it'd work only for ISAs that are equal to or smaller than the current one.A nice use case for this would be to able to choose the target in Compiler Explorer, whose julia backend at the moment only generates code for whatever is the native CPU currently being used.
It'd be nice to have pointers of where one would need to look at, in case they were interested in tackling the issue 🙂
The text was updated successfully, but these errors were encountered: