Repository navigation
Conversation
stellaraccident
left a comment
Collaborator
There was a problem hiding this comment.
Comments on first commit
stellaraccident
left a comment
Collaborator
There was a problem hiding this comment.
Comments on second commit
stellaraccident
approved these changes
Mar 25, 2020
stellaraccident
left a comment
Collaborator
There was a problem hiding this comment.
Quite a few comments that would aid readability but nothing material. Feel free to address in this train or the next.
benvanik
force-pushed
the
benvanik-dynamic-shapes
branch
3 times, most recently
from
March 26, 2020 04:12
84b3c49 to
1af5e09
Compare
benvanik
force-pushed
the
benvanik-dynamic-shapes
branch
3 times, most recently
from
March 26, 2020 19:19
b6fddd5 to
73e35cf
Compare
This will allow many of the tuple types to be converted to attributes to make working with them much easier and allow easier optimizations as now instead of SSA values representing constants they are now actual attributes.
This will allow lookup tables to be used to avoid conditions/branches.
This moves to an initialization-time compilation of all executables and adds executable/descriptor set layout caching. This can be extended in the future to batch compilation, however now at least we have one place to profile to get total launch time metrics even if we aren't doing fancy asynchronous compilation.
…ions. These can be used for other arbitrary arguments in the future (such as runtime-computed/system-provided limits, etc).
They are converted to i32 during VM lowering.
benvanik
force-pushed
the
benvanik-dynamic-shapes
branch
from
March 26, 2020 20:59
73e35cf to
bee5056
Compare
benvanik
force-pushed
the
benvanik-dynamic-shapes
branch
from
March 26, 2020 22:20
bee5056 to
7f51637
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 implements some new VM/tblgen support to enable more advanced marshaling (such as lists of tuples, strings, etc). These features are used to emit nice layout type ops and a much nicer centralized layout/executable caching scheme. Finally, the layouts are extended to support push constants and marshal primitive types to executables.
This also switches i32->index almost everywhere, as it was the only way to make all of the new code dealing with shape dimensions and offsets and descriptor set info work.