Note: an earlier version of this patch was authored by @pmatos.
Custom type-checking is used to workaround the fact that separate variants of the instruction are defined for externref and funcref.
Differential D123484
[WebAssembly] Implement ref.is_null MC layer support and codegen asb on Apr 11 2022, 12:20 AM. Authored by
Details Note: an earlier version of this patch was authored by @pmatos. Custom type-checking is used to workaround the fact that separate variants of the instruction are defined for externref and funcref.
Diff Detail
Event TimelineComment Actions A couple of weeks ago @asb pointed out we were missing an intrinsic for ref.is_null, so I got the work started. There's an issue with the polymorphic type for ref types, but I have seen this before and hopefully will get it fixed properly this time. Comment Actions Commandeered, completed implementation, and updated summary to explain current implementation approach. Comment Actions LGTM! (with single comment)
Comment Actions Address review comments:
Comment Actions Update based on review comments.
Comment Actions Thanks! I have one more question but don't want to hold this back with nitpicky things. (The review turnaround time due to time zone doesn't help either)
Comment Actions Thanks for such helpful and responsive reviews! I've left a comment about why I'm overriding the default naming (basically is.null vs is_null). |
Why do we need to specify names explicitly? Aren't these automatically named like these anyway?