-
Notifications
You must be signed in to change notification settings - Fork 193
Conversation
Because GitHub doesn't understand dependent PRs, this just incorporates a bunch of commits that I think could be reviewed and landed separately. I'll sort these out tomorrow. |
c166082
to
33fde28
Compare
33fde28
to
7f855e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
src/back/msl/writer.rs
Outdated
writeln!(self.out, ")")?; | ||
self.put_unchecked_store(pointer, value, level.next(), context) | ||
} else { | ||
self.put_unchecked_store(pointer, value, level, context) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we could move this out of if/else
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a tiny bit concerned if at some point put_unchecked_store
implementation may decide to become multiple statements. Doing this in the "if (xx) y = z;" style will no longer work. Maybe we should anticipate this and use "{"/"}"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed this to always put the store in brackets. That did make it awkward to move the put_unchecked_store
out of the if
. Since this was "nit", I didn't worry about it - but if you think it would still look better to hoist out that call (and add plumbing to indent it properly), we can totally do that.
3b91528
to
0cc9a08
Compare
379a012
to
4baffc8
Compare
Rebased, and a lot simpler. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost ready to go, amazing work!
Just a few last notes
4baffc8
to
7f49425
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few uber-nits left, almost good to go!
No changes in behavior.
7f49425
to
80e794e
Compare
Fixes #1531.
Remaining work:
policy-mix.wgsl
tooanalyze_function
IndexInfo
?choose_checks
reuse a Vec to save allocationGuardedIndex
andback::spv
'sMaybeKnown