X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firopt_dbg.h;h=df2fa6367e8b1a4b392852ce3c0c044c7b9b60ca;hb=80d22a2b8ed15af53c7134a3025da89ccb1923ca;hp=93f84a1b023fe54e05b670304834d94ef365644d;hpb=3cee490008f49f2c1051e97f61502b19ac8b0329;p=libfirm diff --git a/include/libfirm/iropt_dbg.h b/include/libfirm/iropt_dbg.h index 93f84a1b0..df2fa6367 100644 --- a/include/libfirm/iropt_dbg.h +++ b/include/libfirm/iropt_dbg.h @@ -73,8 +73,8 @@ * @param proj2 the second ProjX predecessor * @param n the new Block */ -#define DBG_OPT_IFSIM1(oldn, proj1, proj2, n) \ - do { \ +#define DBG_OPT_IFSIM1(oldn, proj1, proj2, n) \ + do { \ ir_node *ons[4]; \ ons[0] = oldn; \ ons[1] = proj1; \ @@ -89,24 +89,24 @@ * @param oldn the old Cond * @param n the new Jmp */ -#define DBG_OPT_IFSIM2(oldn, n) \ - do { \ +#define DBG_OPT_IFSIM2(oldn, n) \ + do { \ hook_merge_nodes(&n, 1, &oldn, 1, HOOK_OPT_IFSIM); \ __dbg_info_merge_pair(n, oldn, dbg_if_simplification); \ } while(0) /** * Merge the debug info due to an algebraic_simplification. - * A node could be avaluated into a Constant. + * A node could be evaluated into a Constant. * * @param oldn the node * @param n the new constant holding the value */ #define DBG_OPT_CSTEVAL(oldn, n) \ - do { \ - hook_merge_nodes(&n, 1, &oldn, 1, HOOK_OPT_CONST_EVAL); \ - __dbg_info_merge_pair(n, oldn, dbg_const_eval); \ - } while(0) + do { \ + hook_merge_nodes(&n, 1, &oldn, 1, HOOK_OPT_CONST_EVAL); \ + __dbg_info_merge_pair(n, oldn, dbg_const_eval); \ + } while(0) /** * Merge the debug info due to an algebraic_simplification. @@ -115,11 +115,11 @@ * @param n the new node replacing oldn * @param flag firm statistics option */ -#define DBG_OPT_ALGSIM0(oldn, n, flag) \ - do { \ - hook_merge_nodes(&n, 1, &oldn, 1, flag); \ - __dbg_info_merge_pair(n, oldn, dbg_algebraic_simplification); \ - } while(0) +#define DBG_OPT_ALGSIM0(oldn, n, flag) \ + do { \ + hook_merge_nodes(&n, 1, &oldn, 1, flag); \ + __dbg_info_merge_pair(n, oldn, dbg_algebraic_simplification); \ + } while(0) /** * Merge the debug info due to an algebraic_simplification. @@ -390,4 +390,42 @@ hook_merge_nodes(NULL, 0, &n, 1, HOOK_OPT_CONFIRM_E); \ } while(0) +/** + * Merge the debug info due to a GVN-PRE result. + * + * @param oldn the old node + * @param n the new node replacing oldn + * @param flag firm statistics option + */ +#define DBG_OPT_GVN_PRE(oldn, n, flag) \ + do { \ + hook_merge_nodes(&n, 1, &oldn, 1, flag); \ + __dbg_info_merge_pair(n, oldn, dbg_gvn_pre); \ + } while(0) + +/** + * Merge the debug info due to a combo result. + * + * @param oldn the old node + * @param n the new node replacing oldn + * @param flag firm statistics option + */ +#define DBG_OPT_COMBO(oldn, n, flag) \ + do { \ + hook_merge_nodes(&n, 1, &oldn, 1, flag); \ + __dbg_info_merge_pair(n, oldn, dbg_combo); \ + } while(0) + +/** + * Merge the debug info due to a cond eval result. + * + * @param oldn the old control flow node + * @param n the new control flow node replacing oldn + */ +#define DBG_OPT_COND_EVAL(oldn, n) \ + do { \ + hook_merge_nodes(&n, 1, &oldn, 1, FS_OPT_COND_EVAL); \ + __dbg_info_merge_pair(n, oldn, dbg_cond_eval); \ + } while(0) + #endif