[][src]Function xed_sys::xed_agen

pub unsafe extern "C" fn xed_agen(
    xedd: *mut xed_decoded_inst_t,
    memop_index: c_uint,
    context: *mut c_void,
    out_address: *mut c_ulonglong
) -> xed_error_enum_t

Using the registered callbacks, compute the memory address for a specified memop in a decoded instruction. memop_index can have the value 0 for XED_OPERAND_MEM0, XED_OPERAND_AGEN, or 1 for XED_OPERAND_MEM1. Any other value results in an error being returned. The context parameter which is passed to the registered callbacks can be used to identify which thread's state is being referenced. The context parameter can also be used to specify which element of a vector register should be returned for gather an scatter operations. @ingroup AGEN