get_irn_MacroBlock() added
[libfirm] / ir / ir / ircons_t.h
index da7c228..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.
  *
  * PURPOSE.
  */
 
-/*
- * Project:     libFIRM
- * File name:   ir/ir/ircons_t.h
- * Purpose:     Various irnode constructors.  Automatic construction
- *              of SSA representation.
- * Author:      Martin Trapp, Christian Schaefer
- * Modified by: Michael Beck
- * Created:
- * CVS-ID:      $Id$
- * Copyright:   (c) 1998-2003 Universität Karlsruhe
+/**
+ * @file
+ * @brief     Various irnode constructors.  Automatic construction
+ *            of SSA representation. Private Header
+ * @author    Martin Trapp, Christian Schaefer, Michael Beck
+ * @version   $Id$
  */
-#ifndef _IRCONS_T_H_
-#define _IRCONS_T_H_
+#ifndef FIRM_IR_IRCONS_T_H
+#define FIRM_IR_IRCONS_T_H
 
 #include "ircons.h"
-# include "irgraph_t.h"
+#include "irgraph_t.h"
 
 /**
  * Initializes the graph construction.
  */
 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);
 }
 
 
 #define new_d_Bad()               _new_d_Bad()
 #define new_d_NoMem()             _new_d_NoMem()
 
-#endif /* _IRCONS_T_H_ */
+#endif