reg_info_t *
SIM_instruction_get_reg_info(instruction_id_t ii,
int n);
The reg_info_t is defined like this:
struct reg_info {
register_type_t type; /* register type */
register_id_t id; /* register id */
unsigned input:1; /* used as input */
unsigned output:1; /* used as output */
};
The register_id_t refers to the different registers of the architecture in question. Only registers that are targets for register renaming are reported by this function.