Skip to main content

instr_reg_in_src

Function instr_reg_in_src 

Source
pub unsafe extern "C" fn instr_reg_in_src(
    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 source operands references \p reg.

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

\note Use instr_reads_from_reg() to also consider addressing registers in destination operands.