Repository navigation
Replacing iree_vm_variant_list_t with iree_vm_list_t and improving the C++ ref<T> wrapper - #2558
Merged
Merged
Conversation
benvanik
force-pushed
the
benvanik-cleanup-variant-list
branch
4 times, most recently
from
July 17, 2020 06:27
b52d3f6 to
3316a92
Compare
benvanik
marked this pull request as ready for review
July 17, 2020 06:40
benvanik
force-pushed
the
benvanik-cleanup-variant-list
branch
2 times, most recently
from
July 17, 2020 16:05
9318bb9 to
3b597f3
Compare
ScottTodd
approved these changes
Jul 20, 2020
ScottTodd
left a comment
Member
There was a problem hiding this comment.
Thanks for keeping the chain of commits so clean!
These make it easier (though not yet easy enough) to access ref elements.
Though this (in theory) grows the ref<T> size by a word, that's fine. This avoids a bunch of additional code that would have been required to convert into and out-of the C handles.
benvanik
force-pushed
the
benvanik-cleanup-variant-list
branch
from
July 20, 2020 18:57
3b597f3 to
e55a734
Compare
benvanik
force-pushed
the
benvanik-cleanup-variant-list
branch
from
July 20, 2020 19:27
e55a734 to
280b771
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This extends iree_vm_list_t to be a superset of iree_vm_variant_list_t and swaps it into place. Now we only have a single list type that can be used for both the VM
vm.list.*ops and interacting with the API. This also enables better variadic outputs from the VM as now it can return lists within lists.Future changes will add more utilities to work with vm::ref (such as dereferencing an opaque ref) and convert more usage of raw VM types to use vm::ref.