X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firopt_t.h;h=0345b738d1d80a4d96d14887da1ef4997baccb02;hb=af0115376ccdcc72e0643caf221407218f4504f0;hp=93267ae619b7e1152acc6cfa2dde0b5c4dbddbc9;hpb=34042b2302b082639a44734b3dc31b9d0f2017eb;p=libfirm diff --git a/ir/ir/iropt_t.h b/ir/ir/iropt_t.h index 93267ae61..0345b738d 100644 --- a/ir/ir/iropt_t.h +++ b/ir/ir/iropt_t.h @@ -83,6 +83,14 @@ ir_node *identify_remember(pset *value_table, ir_node *n); /** Visit each node in the value table of a graph. */ void visit_all_identities(ir_graph *irg, irg_walk_func visit, void *env); +/** + * Normalize a node by putting constants (and operands with larger + * node index) on the right (operator side). + * + * @param n The node to normalize + */ +void ir_normalize_node(ir_node *n); + ir_node *optimize_node(ir_node *n); ir_node *optimize_in_place_2(ir_node *n); @@ -107,7 +115,7 @@ void set_value_of_func(value_of_func func); /** * Returns the associated tarval of a node. */ -static INLINE tarval * +static inline tarval * value_of(const ir_node *n) { return value_of_ptr(n); }