* @param irg the IR graph
* @param n the IR node
*/
-int node_is_in_irgs_storage(ir_graph *irg, ir_node *n);
+int node_is_in_irgs_storage(const ir_graph *irg, const ir_node *n);
/*-------------------------------------------------------------------*/
/* inline functions for graphs */
* @return The node with that index or NULL, if there is no node with that index.
* @note The node you got might be dead.
*/
-static inline ir_node *_get_idx_irn(ir_graph *irg, unsigned idx)
+static inline ir_node *_get_idx_irn(const ir_graph *irg, unsigned idx)
{
assert(idx < (unsigned) ARR_LEN(irg->idx_irn_map));
return irg->idx_irn_map[idx];