X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fanalyze_irg_args.h;h=6819221799d5b060c87a356e24e6bd963ba0c936;hb=b84d550997d07bfcc4d828e8fbb5742098e050e4;hp=dda9e6fcc3c361c67f30f4cc0c792a3bf12e6447;hpb=ff250a974bfc97f7a9acf86ad77bbfaed855cb04;p=libfirm diff --git a/ir/ana/analyze_irg_args.h b/ir/ana/analyze_irg_args.h index dda9e6fcc..681922179 100644 --- a/ir/ana/analyze_irg_args.h +++ b/ir/ana/analyze_irg_args.h @@ -35,4 +35,20 @@ ptr_access_kind get_method_param_access(entity *ent, int pos); */ void analyze_irg_args(ir_graph *irg); +/** + * 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. + */ +float get_method_param_weight(entity *ent, int pos); + +/** + * Analyze the parameters of a given ir graph. + * + * @param irg The ir graph to analyze. + */ +void analyze_irg_args_weight(ir_graph *irg); + #endif /*_ANALYZE_IRG_ARGS_H_ */