X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Fdbginfo.h;h=ce8441dfcef60030e53044a4fba5cbbc9340e53b;hb=a3c0f2167d6f2445ad566c493843418df1a64168;hp=317e821e036defb5cd8d962402804338c4595ba7;hpb=1ec30d95387eb392ba5a1adc7958ebd91383d59c;p=libfirm diff --git a/include/libfirm/dbginfo.h b/include/libfirm/dbginfo.h index 317e821e0..ce8441dfc 100644 --- a/include/libfirm/dbginfo.h +++ b/include/libfirm/dbginfo.h @@ -58,80 +58,35 @@ extern "C" { * but pointers to this type can be stored in Firm nodes. */ -/** - * Sets the debug information of a node. - * - * @param n The node. - * @param db The debug info. - */ -void set_irn_dbg_info(ir_node *n, dbg_info *db); - -/** - * Returns the debug information of an node. - * - * @param n The node. - */ -dbg_info *get_irn_dbg_info(const ir_node *n); - -/** - * Sets the debug information of an entity. - * - * @param ent The entity. - * @param db The debug info. - */ -void set_entity_dbg_info(ir_entity *ent, dbg_info *db); - -/** - * Returns the debug information of an entity. - * - * @param ent The entity. - */ -dbg_info *get_entity_dbg_info(const ir_entity *ent); - -/** - * Sets the debug information of a type. - * - * @param tp The type. - * @param db The debug info. - */ -void set_type_dbg_info(ir_type *tp, dbg_info *db); - -/** - * Returns the debug information of a type. - * - * @param tp The type. - */ -dbg_info *get_type_dbg_info(const ir_type *tp); - /** * An enumeration indicating the action performed by a transformation. */ typedef enum { - dbg_error = 0, - dbg_opt_ssa, /**< Optimization of the SSA representation, e.g. removal of superfluent Phi nodes. */ - dbg_opt_auxnode, /**< Removal of unnecessary auxiliary nodes. */ - dbg_const_eval, /**< A Firm subgraph was evaluated to a single constant. */ - dbg_opt_cse, /**< A Firm node was replaced due to common subexpression elimination. */ - dbg_straightening, /**< A Firm subgraph was replaced by a single, existing block. */ - dbg_if_simplification, /**< The control flow of an if is changed as either the - else, the then or both blocks are empty. */ - dbg_algebraic_simplification, /**< A Firm subgraph was replaced because of an algebraic - simplification. */ - dbg_write_after_write, /**< A Firm subgraph was replaced because of a write - after write optimization. */ - dbg_write_after_read, /**< A Firm subgraph was replaced because of a write - after read optimization. */ - dbg_read_after_write, /**< A Firm subgraph was replaced because of a read - after write optimization. */ - dbg_read_after_read, /**< A Firm subgraph was replaced because of a read - after read optimization. */ - dbg_read_a_const, /**< A Firm subgraph was replaced because of a read - a constant optimization. */ - dbg_rem_poly_call, /**< Remove polymorphic call. */ - dbg_dead_code, /**< Removing unreachable code, I.e. blocks that are never executed. */ - dbg_opt_confirm, /**< A Firm subgraph was replace because of a Confirmation. */ - dbg_backend, /**< A Firm subgraph was replaced because of a Backend transformation */ - dbg_max /**< Maximum value. */ + dbg_error = 0, + dbg_opt_ssa, /**< Optimization of the SSA representation, e.g. removal of superfluent Phi nodes. */ + dbg_opt_auxnode, /**< Removal of unnecessary auxiliary nodes. */ + dbg_const_eval, /**< A Firm subgraph was evaluated to a single constant. */ + dbg_opt_cse, /**< A Firm node was replaced due to common subexpression elimination. */ + dbg_straightening, /**< A Firm subgraph was replaced by a single, existing block. */ + dbg_if_simplification, /**< The control flow of an if is changed as either the + else, the then or both blocks are empty. */ + dbg_algebraic_simplification, /**< A Firm subgraph was replaced because of an algebraic + simplification. */ + dbg_write_after_write, /**< A Firm subgraph was replaced because of a write + after write optimization. */ + dbg_write_after_read, /**< A Firm subgraph was replaced because of a write + after read optimization. */ + dbg_read_after_write, /**< A Firm subgraph was replaced because of a read + after write optimization. */ + dbg_read_after_read, /**< A Firm subgraph was replaced because of a read + after read optimization. */ + dbg_read_a_const, /**< A Firm subgraph was replaced because of a read + a constant optimization. */ + dbg_rem_poly_call, /**< Remove polymorphic call. */ + dbg_dead_code, /**< Removing unreachable code, I.e. blocks that are never executed. */ + dbg_opt_confirm, /**< A Firm subgraph was replace because of a Confirmation. */ + dbg_backend, /**< A Firm subgraph was replaced because of a Backend transformation */ + dbg_max /**< Maximum value. */ } dbg_action; /**