Skip to content
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

Granular @fastmath flags #49890

Open
mikmoore opened this issue May 19, 2023 · 2 comments
Open

Granular @fastmath flags #49890

mikmoore opened this issue May 19, 2023 · 2 comments
Labels
feature Indicates new feature / enhancement requests good first issue Indicates a good issue for first-time contributors to Julia help wanted Indicates that a maintainer wants help on an issue or pull request

Comments

@mikmoore
Copy link
Contributor

mikmoore commented May 19, 2023

@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.

@giordano
Copy link
Contributor

For the record, tangentially related to #49387 and #49405 (comment)

@vchuravy vchuravy added help wanted Indicates that a maintainer wants help on an issue or pull request good first issue Indicates a good issue for first-time contributors to Julia feature Indicates new feature / enhancement requests labels May 19, 2023
@giordano giordano changed the title Grainular @fastmath flags Granular @fastmath flags May 21, 2023
@longemen3000
Copy link
Contributor

longemen3000 commented Aug 7, 2023

maybe something like the @assume_effects macro?

@fastmath :contract :reassoc Expr #for applying those flags to the expr
@fastmath Expr #default behaviour, all flags on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Indicates new feature / enhancement requests good first issue Indicates a good issue for first-time contributors to Julia help wanted Indicates that a maintainer wants help on an issue or pull request
Projects
None yet
Development

No branches or pull requests

4 participants