BugFix: equivalent_node_Bound() was too greedy, reduced to a safe minimum (now mostly...
[libfirm] / ir / ir / ircons_t.h
index 80353cb..4a7a8b8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
  */
 void init_cons(uninitialized_local_variable_func_t *func);
 
+/**
+ * Creates a new Anchor node.
+ */
+ir_node *new_Anchor(ir_graph *irg);
+
 /* inline functions */
 
 static INLINE ir_node *
 _new_d_Bad(void) {
-  return current_ir_graph->anchors[anchor_bad];
+       return get_irg_bad(current_ir_graph);
 }
 
 static INLINE ir_node *
 _new_d_NoMem(void) {
-  return current_ir_graph->anchors[anchor_no_mem];
+       return get_irg_no_mem(current_ir_graph);
 }