3 * File name: ir/ana/analyze_irg_args.h
4 * Purpose: rea/write analyze of graph argument, which have mode reference.
5 * Author: Beyhan Veliev
8 * Copyright: (c) 1998-2005 Universität Karlsruhe
9 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
11 #ifndef _ANALYZE_IRG_ARGS_H_
12 #define _ANALYZE_IRG_ARGS_H_
18 * Returns for a method with pointer parameter
19 * if they will be read or written.
21 * @param ent The entity that represent this method.
22 * @param pos The position of method's parameter for that
23 * we need information.
25 * If the pos'th parameter is NOT of a pointer type, ptr_access_none
28 ptr_access_kind get_method_param_access(entity *ent, int pos);
31 * Analyze how pointer arguments of a given
32 * ir graph are accessed.
34 * @param irg The ir graph to analyze.
36 void analyze_irg_args(ir_graph *irg);
38 #endif /*_ANALYZE_IRG_ARGS_H_ */