remove the unused 'ident' type, remove tpo_max add tpo_last
[libfirm] / include / libfirm / irmemory.h
index 9a0ded3..62e19dc 100644 (file)
@@ -80,9 +80,9 @@ typedef enum {
  * Called by get_alias_relation().
  */
 typedef ir_alias_relation (*DISAMBIGUATOR_FUNC)(
-       ir_graph *irg,
-       ir_node *adr1, ir_mode *mode1,
-       ir_node *adr2, ir_mode *mode2);
+       const ir_graph *irg,
+       const ir_node *adr1, const ir_mode *mode1,
+       const ir_node *adr2, const ir_mode *mode2);
 
 /**
  * Classify a base pointer.
@@ -91,7 +91,7 @@ typedef ir_alias_relation (*DISAMBIGUATOR_FUNC)(
  * @param irn  the node representing the base address
  * @param ent  the base entity of the base address iff any
  */
-ir_storage_class_class_t classify_pointer(ir_graph *irg, ir_node *irn, ir_entity *ent);
+ir_storage_class_class_t classify_pointer(const ir_graph *irg, const ir_node *irn, const ir_entity *ent);
 
 /**
  * Returns a human readable name for an alias relation.
@@ -133,9 +133,9 @@ const char *get_ir_alias_relation_name(ir_alias_relation rel);
  * interrogated to detect the alias relation.
  */
 ir_alias_relation get_alias_relation(
-       ir_graph *irg,
-       ir_node *adr1, ir_mode *mode1,
-       ir_node *adr2, ir_mode *mode2);
+       const ir_graph *irg,
+       const ir_node *adr1, const ir_mode *mode1,
+       const ir_node *adr2, const ir_mode *mode2);
 
 /**
  * Set a source language specific memory disambiguator function.
@@ -162,9 +162,9 @@ void mem_disambig_init(void);
  * @see get_alias_relation()
  */
 ir_alias_relation get_alias_relation_ex(
-       ir_graph *irg,
-       ir_node *adr1, ir_mode *mode1,
-       ir_node *adr2, ir_mode *mode2);
+       const ir_graph *irg,
+       const ir_node *adr1, const ir_mode *mode1,
+       const ir_node *adr2, const ir_mode *mode2);
 
 /**
  * Free the relation cache.
@@ -220,20 +220,20 @@ void assure_irp_globals_entity_usage_computed(void);
  *
  * @param irg  the graph
  */
-unsigned get_irg_memory_disambiguator_options(ir_graph *irg);
+unsigned get_irg_memory_disambiguator_options(const ir_graph *irg);
 
 /**
  * Set the memory disambiguator options for a graph.
  *
  * @param irg      the graph
- * @param option   a set of options
+ * @param options  a set of options
  */
 void set_irg_memory_disambiguator_options(ir_graph *irg, unsigned options);
 
 /**
  * Set the global disambiguator options for all graphs not having local options.
  *
- * @param option   a set of options
+ * @param options  a set of options
  */
 void set_irp_memory_disambiguator_options(unsigned options);
 
@@ -244,4 +244,13 @@ void set_irp_memory_disambiguator_options(unsigned options);
  */
 void mark_private_methods(void);
 
+/**
+ * Creates an ir_prog pass for mark_private_methods().
+ *
+ * @param name     the name of this pass or NULL
+ *
+ * @return  the newly created ir_prog pass
+ */
+ir_prog_pass_t *mark_private_methods_pass(const char *name);
+
 #endif /* FIRM_ANA_IRMEMORY_H */