Function spirt::spv::print::inst_operands
source · pub fn inst_operands<ID>(
opcode: Opcode,
imms: impl IntoIterator<Item = Imm>,
ids: impl IntoIterator<Item = ID>
) -> impl Iterator<Item = TokensForOperand<ID>>
Expand description
Group (ordered according to opcode
) imms
and ids
into logical operands
(i.e. long immediates are unflattened) and produce one TokensForOperand
by
printing each of them.