instr_replace_reg_resize

Function instr_replace_reg_resize 

Source
pub unsafe extern "C" fn instr_replace_reg_resize(
    instr: *mut instr_t,
    old_reg: reg_id_t,
    new_reg: reg_id_t,
) -> bool_
Expand description

Replaces all instances of \p old_reg (or any size variant) in \p instr’s operands with \p new_reg. Resizes \p new_reg to match sub-full-size uses of \p old_reg. Returns whether it replaced anything.