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
effects: add new @consistent_overlay
macro
#54322
base: master
Are you sure you want to change the base?
Conversation
could we also add a weaker version of this effect that only requires the overlay to return an egal answer when the regular function returns an answer? (e.g. for things like NaNMath) |
That sounds exactly like the requirements for |
If I'm reading this right, it wouldn't be valid to use this extension for |
Ah, did you mean |
146a43a
to
c675f21
Compare
I'm ok with this, but it seems a bit weird to put this on |
c675f21
to
6b294ec
Compare
:consistent_overlay
override@consistent_overlay
macro
I agree. I've created a new |
This PR serves to replace #51080 and close #52940.
It extends the
:nonoverlayed
toUInt8
and introduces theCONSISTENT_OVERLAY
effect bit, allowing for concrete evaluation of overlay methods using the original non-overlayed counterparts when applied. Additionally, this PR adds a new effect override called:consistent_overlay
.I've also included a relatively accurate description of
:consistent_overlay
, as pointed out in #51080. Quoting from the newly added docstrings:Still, the explanation might not be comprehensive enough. I welcome any feedback.
EDIT: Now this feature is implemented with a new macro
@consistent_overlay
instead of extending the override set of@assume_effects
.