Repository navigation
Rename LaneIdx{2,4,8,16,32} to ImmLaneIdx{2,4,8,16,32} - #34
Conversation
This makes it clear everywhere that `ImmLaneIdx` is an immediate operand and also makes the nomenclature for immediate operands consistent (both `ImmByte` and `ImmLaneIdx` start with the prefix `Imm`) . See WebAssembly#33 .
|
So now I think this PR is incorrect, since some instructions like |
|
So looking at the binary encoding it appears that the extract_lanes / replace_lanes / ... all take immediate mode operands... so I think this PR is correct, but incomplete, in that the nomenclature should be made consistent for those other operations as well. |
|
So I've pushed another commit with new changes that:
|
|
This looks like a good clarification, thanks! When this is converted to formal spec text it will be less of an issue because the immediate args vs. stack args are specified separately. See for example set_local: https://webassembly.github.io/spec/core/exec/instructions.html#exec-set-local. The x is immediate and the expected stack structure is specified in the associated validation section. |
I've got your back :P |
I see, I should've noticed that you already opened it :) |
|
Thank you for your feedback @dtig , I hope I incorporated all of it correctly into the PR, let me know what you think! |
dtig
left a comment
There was a problem hiding this comment.
Thanks for incorporating feedback!
This makes it clear everywhere that
ImmLaneIdxis an immediate operand and also makes the nomenclature for immediate operands consistent (bothImmByteandImmLaneIdxstart with the prefixImm) .See #33 .