instr_replace_src_opnd

Function instr_replace_src_opnd 

Source
pub unsafe extern "C" fn instr_replace_src_opnd(
    instr: *mut instr_t,
    old_opnd: opnd_t,
    new_opnd: opnd_t,
) -> bool_
Expand description

Replaces all instances of \p old_opnd in \p instr’s source operands with \p new_opnd (uses opnd_same() to detect sameness). Returns whether it replaced anything.