libFirm
analyze_irg_args.h File Reference

read/write analyze of graph argument, which have mode reference More...

#include "irgraph.h"
#include "firm_types.h"
#include "typerep.h"
#include "begin.h"
#include "end.h"

Go to the source code of this file.

Functions

ptr_access_kind get_method_param_access (ir_entity *ent, size_t pos)
 Returns for a method with pointer parameter if they will be read or written.
void analyze_irg_args (ir_graph *irg)
 Analyze how pointer arguments of a given ir graph are accessed.
unsigned get_method_param_weight (ir_entity *ent, size_t pos)
 Returns for a method the 'weight' that every parameter has on optimization possibility.
void analyze_irg_args_weight (ir_graph *irg)
 Analyze the parameters of a given ir graph.

Detailed Description

read/write analyze of graph argument, which have mode reference

Author
Beyhan Veliev

Definition in file analyze_irg_args.h.

Function Documentation

void analyze_irg_args ( ir_graph irg)

Analyze how pointer arguments of a given ir graph are accessed.

Parameters
irgThe ir graph to analyze.
void analyze_irg_args_weight ( ir_graph irg)

Analyze the parameters of a given ir graph.

Parameters
irgThe ir graph to analyze.
ptr_access_kind get_method_param_access ( ir_entity ent,
size_t  pos 
)

Returns for a method with pointer parameter if they will be read or written.

Parameters
entThe entity that represent this method.
posThe position of method's parameter for that we need information.

If the pos'th parameter is NOT of a pointer type, ptr_access_none is returned;

unsigned get_method_param_weight ( ir_entity ent,
size_t  pos 
)

Returns for a method the 'weight' that every parameter has on optimization possibility.

Higher values allows higher optimization with procedure cloning.

The values are calculation on demand only.