|
/*
|
|
Instruction list-keeping functions, aiding analysis
|
|
|
|
Julius Baxter, julius.baxter@orsoc.se
|
|
|
|
*/
|
|
|
#define IS_UNIQUE -1
|
#define IS_UNIQUE -1
|
|
|
|
|
// Function prototypes
|
// Function prototypes
|
//
|
//
|
// Reset the variables/counters
|
// Reset the variables/counters
|
void insn_lists_init(void);
|
void insn_lists_init(void);
|
// Check if an instruction is in the list already
|
// Check if an instruction is in the list already
|
int insn_lists_check(instruction insn,
|
int insn_lists_check(instruction insn,
|
instruction_properties *insn_props);
|
instruction_properties *insn_props);
|
// Add a new instruction to the list, return its index
|
// Add a new instruction to the list, return its index
|
int insn_lists_add_unique_insn(instruction insn,
|
int insn_lists_add_unique_insn(instruction insn,
|
instruction_properties *insn_props);
|
instruction_properties *insn_props);
|
// Report a new incidence of an instruction
|
// Report a new incidence of an instruction
|
void insn_lists_add(int index, instruction insn,
|
void insn_lists_add(int index, instruction insn,
|
instruction_properties *insn_props);
|
instruction_properties *insn_props);
|
|
|
// Free, clean up, anything we need to
|
// Free, clean up, anything we need to
|
void insn_lists_free(void);
|
void insn_lists_free(void);
|
|
|