X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbestat.h;h=8d4f78cf41824c97b1c1e9b1cec574e10efc8779;hb=1db02a4692443f95545ede1cabff8c828e33442b;hp=7d26efb93cf25fbe7c942add5ed3c50f4583528d;hpb=7a178059678ff6c6094a7cd8fac5644367417102;p=libfirm diff --git a/ir/be/bestat.h b/ir/be/bestat.h index 7d26efb93..8d4f78cf4 100644 --- a/ir/be/bestat.h +++ b/ir/be/bestat.h @@ -33,16 +33,18 @@ #include "bestatevent.h" #include "bearch.h" -enum be_stat_tag_t { - BE_STAT_PHIS, /**< phi count (excluding mem-phis) */ - BE_STAT_MEM_PHIS, /**< memory-phi count */ - BE_STAT_COPIES, /**< copies */ - BE_STAT_PERMS, /**< perms */ - BE_STAT_SPILLS, /**< spills (also folded spills) */ - BE_STAT_RELOADS, /**< reloads (also folded reloads) */ - BE_STAT_REMATS, /**< rematerialized nodes */ +typedef enum be_stat_tag_t { + BE_STAT_FIRST, + BE_STAT_PHIS = BE_STAT_FIRST, /**< phi count (excluding mem-phis) */ + BE_STAT_MEM_PHIS, /**< memory-phi count */ + BE_STAT_COPIES, /**< copies */ + BE_STAT_PERMS, /**< perms */ + BE_STAT_SPILLS, /**< spills (also folded spills) */ + BE_STAT_RELOADS, /**< reloads (also folded reloads) */ + BE_STAT_REMATS, /**< rematerialized nodes */ BE_STAT_COUNT -}; +} be_stat_tag_t; +ENUM_COUNTABLE(be_stat_tag_t) typedef unsigned long be_node_stats_t[BE_STAT_COUNT]; /**