Choose target ISA in `@code_llvm` and `@code_native`
#52.949 geöffnet am 17. Jan. 2024
Repository-Metriken
- Stars
- (48.709 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 20T 6h) (157 gemergte PRs in 30 T)
Beschreibung
@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 :slightly_smiling_face: