libFirm 1.20
Basic Block Execution Frequency

Typedefs

typedef struct ir_exec_freq ir_exec_freq
 Execution Frequency Analysis Results.

Functions

ir_exec_freqcreate_execfreq (ir_graph *irg)
 Creates execfreq structure (to be used with set_execfreq)
void set_execfreq (ir_exec_freq *ef, const ir_node *block, double freq)
 Sets execution frequency of a basic block.
ir_exec_freqcompute_execfreq (ir_graph *irg, double loop_weight)
 Creates execfreq structure and initialize with estimated frequencies.
void free_execfreq (ir_exec_freq *ef)
 Frees memory occupied by execution frequency structure ef.
double get_block_execfreq (const ir_exec_freq *ef, const ir_node *block)
 Returns execution frequency of block block.
unsigned long get_block_execfreq_ulong (const ir_exec_freq *ef, const ir_node *block)
 Returns execution frequency of block block, scaled into the range of an unsigned long type.

Typedef Documentation

typedef struct ir_exec_freq ir_exec_freq

Execution Frequency Analysis Results.

Definition at line 101 of file firm_types.h.


Function Documentation

ir_exec_freq* compute_execfreq ( ir_graph irg,
double  loop_weight 
)

Creates execfreq structure and initialize with estimated frequencies.

ir_exec_freq* create_execfreq ( ir_graph irg)

Creates execfreq structure (to be used with set_execfreq)

void free_execfreq ( ir_exec_freq ef)

Frees memory occupied by execution frequency structure ef.

double get_block_execfreq ( const ir_exec_freq ef,
const ir_node block 
)

Returns execution frequency of block block.

unsigned long get_block_execfreq_ulong ( const ir_exec_freq ef,
const ir_node block 
)

Returns execution frequency of block block, scaled into the range of an unsigned long type.

void set_execfreq ( ir_exec_freq ef,
const ir_node block,
double  freq 
)

Sets execution frequency of a basic block.