-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 export ADT value in Python #3299
Conversation
What will be the mechanism for assigning a tag to a constructor? (Forgive me if I've missed it) |
@slyubomirsky a brute force approach would be to search through all constructors and compare tag to implement I added a new function in |
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.
LGTM
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.
LGTM
I'm not sure if we should use a global constructor mapping upon further thought. Many implementations of tags only number the constructors for a given type. I think it might make more sense to add an optional debugging field if we want to track the constructors. |
@jroesch agree it's better to have local tag scope for each type. I'll change it back. Do you mean add debug constructor field to |
a25ed43
to
878da97
Compare
@jroesch @slyubomirsky Addressed comments. Please take another look. Thanks. |
LGTM, thanks |
@slyubomirsky Can you approve it in addition to saying LGTM? @MarisaKirisame @icemelon9 @zhiics @slyubomirsky Can it be merged ASAP? I'm constantly getting |
* Support export ADT value in Python * Cache original functions * Cleanup * Cleanup
* Support export ADT value in Python * Cache original functions * Cleanup * Cleanup
optimize
functions in prelude the same as entry func.ConstructorValueNode
's tag and add optional constructor tag.cc: @jroesch @MarisaKirisame @icemelon9 @zhiics @slyubomirsky @tqchen