-
Notifications
You must be signed in to change notification settings - Fork 78
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
Support stack_
for primitives that allocate
#3471
Conversation
I see why we might want this, but was this change motivated by a concrete use? In addition, a return mode of poly isn’t always right — for example, |
OK — I found the Slack thread that provides more context (and that already suggests not to use the “poly” criterion). But I still think that we should just have a |
dcc5810
to
b775384
Compare
stack_
supports all primitives that returns poly return mode[@alloc_poly]
for primitives to indicate allocation
As discussed offline, we now introduce a new attribute
which indicates that the This change needs to be noted upon release: users might need to update their Updated |
1f8e34c
to
bc59dfc
Compare
This is currently blocked by some miscompilation issue on arm64 and GI regalloc (shown in CI). AFAIK @xclerc is looking. |
bc59dfc
to
84ce878
Compare
Per offline discussion with @goldfirere , this is now implemented differently and no longer requires additional user annotations. When user writes
|
[@alloc_poly]
for primitives to indicate allocationstack_
for primitives that allocate
84ce878
to
45e31af
Compare
5772934
to
c97634a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Thanks
3bc16d4
to
a7f0ee4
Compare
This PR allows writing
stack_ (ref "hello")
.See my comments below for details.