Skip to main content

instr_uses_reg

Function instr_uses_reg 

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

Assumes that \p reg is a DR_REG_ constant. Returns true iff at least one of \p instr’s operands references a register that overlaps \p reg.

Returns false for multi-byte nops with an operand using reg.