* Replaces the old in array by a new one that will contain the ins given in
* the parameters. Conserves the block predecessor. It copies the array passed.
* This function is necessary to adjust in arrays of blocks, calls and phis.
- * Assumes that current_ir_graph is set to the graph containing "node".
* "in" must contain all predecessors except the block that are required for
* the nodes opcode. */
FIRM_API void set_irn_in(ir_node *node, int arity, ir_node *in[]);
FIRM_API ir_visited_t get_irn_visited(const ir_node *node);
/** Sets the visited counter of a node. */
FIRM_API void set_irn_visited(ir_node *node, ir_visited_t visited);
-/** Sets visited to get_irg_visited(current_ir_graph). */
+/** Sets visited to get_irg_visited(get_irn_irg(node)). */
FIRM_API void mark_irn_visited(ir_node *node);
-/** Returns 1 if visited >= get_irg_visited(current_ir_graph). */
+/** Returns 1 if visited >= get_irg_visited(get_irn_irg(node)). */
FIRM_API int irn_visited(const ir_node *node);
-/** Returns 1 if visited >= get_irg_visited(current_ir_graph). Marks the node
+/** Returns 1 if visited >= get_irg_visited(get_irn_irg(node)). Marks the node
* visited, if it was not. */
FIRM_API int irn_visited_else_mark(ir_node *node);
/** Sets the full callee array.
*
- * The passed array is copied. Assumes current_ir_graph set properly! */
+ * The passed array is copied. */
FIRM_API void set_Call_callee_arr(ir_node *node, size_t n, ir_entity **arr);
/** Frees callee array of call node @p node */
FIRM_API void remove_Call_callee_arr(ir_node *node);
* @param load the load to replace
* @param c the constant
*
- * @return in the modes match or can be transformed using a reinterpret cast
- * returns a copy of the constant (possibly Conv'ed) on the
- * current_ir_graph
+ * @return if the modes match or can be transformed using a reinterpret cast
+ * returns a copy of the constant (possibly Conv'ed) in the graph where
+ * the load is.
*/
FIRM_API ir_node *can_replace_load_by_const(const ir_node *load, ir_node *c);
/**
* Walks over the graph starting at node. Walks also if graph is in state
- * "outs_inconsistent". Assumes current_ir_graph is set properly.
+ * "outs_inconsistent".
*/
FIRM_API void irg_out_walk(ir_node *node, irg_walk_func *pre,
irg_walk_func *post, void *env);
/** Accessing the type information.
*
* These routines only work properly if the ir_graph is in state
- * ir_typeinfo_consistent or ir_typeinfo_inconsistent. They
- * assume current_ir_graph set properly.
+ * ir_typeinfo_consistent or ir_typeinfo_inconsistent.
*/
FIRM_API ir_type *get_irn_typeinfo_type(const ir_node *n);
/** Sets type information of procedure graph node @p node to type @p type. */
/**
* Tests the modes of checknode and its predecessors.
- * checknode must be in current_ir_graph.
*
* @return NON-zero on success
*/
* Every call or instruction is reported to its mapper function,
* which is responsible for rebuilding the graph.
*
- * current_ir_graph is always set.
- *
* @param list an array of intrinsic map records
* @param length the length of the array
* @param part_block_used set to true if part_block() must be using during lowering
*
* The array type represents rectangular multi dimensional arrays.
* The constants representing the bounds must be allocated to
- * get_const_code_irg() by setting current_ir_graph accordingly.
+ * get_const_code_irg().
*
* - n_dimensions: Number of array dimensions.
* - *lower_bound: Lower bounds of dimensions. Usually all 0.