Skip to content

Conversation

tlively
Copy link
Member

@tlively tlively commented Jun 14, 2024

Also update the parser so that implicit type uses are not matched with shared
function types.

tlively added 3 commits June 14, 2024 12:13
Since the BasicHeapTypes are in an enum, calling HeapType methods on them requires something like `HeapType(HeapType::func).someMethod()`. This is unnecessarily verbose, so add a new `HeapTypes` namespace that contains constexpr HeapType globals that can be used instead, shorting this to `HeapTypes::func.someMethod()`.
Also update the parser so that implicit type uses are not matched with shared function types.
@tlively tlively requested a review from kripken June 14, 2024 20:34
;; CHECK: (type $bot (sub final $mid (shared (struct (field i32) (field i32)))))
(type $bot (sub final $mid (shared (struct i32 i32))))

(type $func (shared (func)))
Copy link
Member

Choose a reason for hiding this comment

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

Can move this above to the CHECK.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll use a rec group to get more control over the ordering.

Base automatically changed from parser-refactor-typeidx to main June 14, 2024 21:47
@tlively tlively merged commit 881fe6a into main Jun 14, 2024
@tlively tlively deleted the threads-binary-shared-comptype branch June 14, 2024 21:54
@gkdn gkdn mentioned this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants