You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that registers in destination operands that are memory references are still being read, hence they should be counted among the source register operands of an instruction.
The text was updated successfully, but these errors were encountered:
Currently we don't have a way to iterate over the register operands of an instr_t directly.
To do so, we have to:
instr_num_srcs()
) and dst (instr_num_dsts()
) operands;instr_get_src()
andinstr_get_dst()
);opnd_num_regs_used()
;reg_id_t
register withopnd_get_reg_used()
.We find this operation common enough to warrant its own APIs in core/ir/instr_shared.c to avoid code duplication.
Since we still want to distinguish between source register operands and destination register operands of an instr_t, we'd want the following 4 APIs:
Note that registers in destination operands that are memory references are still being read, hence they should be counted among the source register operands of an instruction.
The text was updated successfully, but these errors were encountered: