irop_flag_highlevel flag added to Confirm and Cast
[libfirm] / ir / ir / iropt_dbg.h
index 7f0926b..5d81fd0 100644 (file)
  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
  */
 
+#ifndef _IROPT_DBG_H_
+#define _IROPT_DBG_H_
+
+#include "dbginfo_t.h"
+#include "irhooks.h"
 
 /* This file contains makros that generate the calls to
    update the debug information after a transformation. */
 /**
  * Merge the debug info due to an algebraic_simplification
  */
-#define DBG_OPT_CSTEVAL(oldn, n)                                       \
+#define DBG_OPT_CSTEVAL(oldn, n)                                  \
   do {                                                                 \
-         hook_merge_nodes(&n, 1, &oldn, 1, HOOK_OPT_CONST_EVAL);       \
+         hook_merge_nodes(&n, 1, &oldn, 1, HOOK_OPT_CONST_EVAL);         \
           __dbg_info_merge_pair(n, oldn, dbg_const_eval);              \
   } while(0)
 
-#define DBG_OPT_ALGSIM1(oldn, a, b, n)                                \
-  do {                                                                \
+#define DBG_OPT_ALGSIM0(oldn, n)                                  \
+  do {                                                            \
+    hook_merge_nodes(&n, 1, &oldn, 1, HOOK_OPT_ALGSIM);              \
+    __dbg_info_merge_pair(n, oldn, dbg_algebraic_simplification); \
+  } while(0)
+
+#define DBG_OPT_ALGSIM1(oldn, a, b, n)                          \
+  do {                                                          \
          ir_node *ons[3];                                            \
          ons[0] = oldn;                                              \
          ons[1] = a;                                                 \
     hook_merge_nodes(&n, 1, &oldn, 1, HOOK_OPT_POLY_CALL);     \
     __dbg_info_merge_pair(n, oldn, dbg_rem_poly_call);          \
   } while(0)
+
+#endif /* _IROPT_DBG_H_ */