opnd_replace_reg

Function opnd_replace_reg 

Source
pub unsafe extern "C" fn opnd_replace_reg(
    opnd: *mut opnd_t,
    old_reg: reg_id_t,
    new_reg: reg_id_t,
) -> bool_
Expand description

Assumes that both \p old_reg and \p new_reg are DR_REG_ constants. Replaces all occurrences of \p old_reg in \p *opnd with \p new_reg. Only replaces exact matches (use opnd_replace_reg_resize() to match size variants). Returns whether it replaced anything.