JuliaLang/julia

Granular `@fastmath` flags

Aperta

#49.890 aperta il 19 mag 2023

 (3 commenti) (6 reazioni) (0 assegnatari)Julia (5773 fork)batch import
featuregood first issuehelp wanted

Metriche repository

Star
 (48.709 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

@fastmath is currently an all-or-nothing construct: one opts into every available flag (which is subject to change with new LLVM versions) by using this macro. There is no syntax to invoke a specific subset of the available flags.

A syntax for opt-in flags like @fastmath (;reassoc=true,contract=true,nsz=true) EXPR would be welcome for a more controlled @fastmath experience.

Guida contributor