Skip to content

[custom-descriptors] ref.cast_desc #7630

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

Merged
merged 1 commit into from
May 29, 2025
Merged

[custom-descriptors] ref.cast_desc #7630

merged 1 commit into from
May 29, 2025

Conversation

tlively
Copy link
Member

@tlively tlively commented May 28, 2025

Add an optional desc child to RefCast for use in the new
ref.cast_desc instruction. Add support for parsing, printing, and
validating the new instruction. Fix a few minor issues left over from
adding the branching descriptor casts along the way.

Add an optional `desc` child to `RefCast` for use in the new
`ref.cast_desc` instruction. Add support for parsing, printing, and
validating the new instruction. Fix a few minor issues left over from
adding the branching descriptor casts along the way.
@tlively tlively requested a review from kripken May 28, 2025 23:39
@@ -208,7 +208,7 @@ class IRBuilder : public UnifiedExpressionVisitor<IRBuilder, Result<>> {
bool isReturn,
std::optional<std::uint8_t> inline_ = std::nullopt);
Result<> makeRefTest(Type type);
Result<> makeRefCast(Type type);
Result<> makeRefCast(Type type, bool isDesc);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we use bools like that elsewhere?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wait, sorry, I was reading the wrong code for context. This looks ok.

@tlively tlively merged commit b3a14c2 into main May 29, 2025
16 checks passed
@tlively tlively deleted the cast-desc branch May 29, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants