Extended public backend API.
[libfirm] / include / libfirm / analyze_irg_args.h
index 84019eb..7e82d17 100644 (file)
@@ -21,7 +21,6 @@
  * @file
  * @brief     read/write analyze of graph argument, which have mode reference
  * @author    Beyhan Veliev
- * @version   $Id$
  */
 #ifndef FIRM_ANA_ANALYZE_IRG_ARGS_H
 #define FIRM_ANA_ANALYZE_IRG_ARGS_H
@@ -29,6 +28,7 @@
 #include "irgraph.h"
 #include "firm_types.h"
 #include "typerep.h"
+#include "begin.h"
 
 /**
  * Returns for a method with pointer parameter
@@ -41,7 +41,7 @@
  * If the pos'th parameter is NOT of a pointer type, ptr_access_none
  * is returned;
  */
-ptr_access_kind get_method_param_access(ir_entity *ent, int pos);
+FIRM_API ptr_access_kind get_method_param_access(ir_entity *ent, size_t pos);
 
 /**
  * Analyze how pointer arguments of a given
@@ -49,7 +49,7 @@ ptr_access_kind get_method_param_access(ir_entity *ent, int pos);
  *
  * @param irg   The ir graph to analyze.
  */
-void analyze_irg_args(ir_graph *irg);
+FIRM_API void analyze_irg_args(ir_graph *irg);
 
 /**
  * Returns for a method the 'weight' that every parameter
@@ -58,13 +58,15 @@ void analyze_irg_args(ir_graph *irg);
  *
  * The values are calculation on demand only.
  */
-unsigned get_method_param_weight(ir_entity *ent, int pos);
+FIRM_API unsigned get_method_param_weight(ir_entity *ent, size_t pos);
 
 /**
  * Analyze the parameters of a given ir graph.
  *
  * @param irg The ir graph to analyze.
  */
-void analyze_irg_args_weight(ir_graph *irg);
+FIRM_API void analyze_irg_args_weight(ir_graph *irg);
+
+#include "end.h"
 
 #endif