From: Michael Beck Date: Mon, 2 Jan 2006 15:59:25 +0000 (+0000) Subject: added missing get_irn_type_attr() and get_irn_entity_attr() X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=17a027f849e538e6c077d8b8e97016ed658ec1b9;p=libfirm added missing get_irn_type_attr() and get_irn_entity_attr() [r7188] --- diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index 0c05a83bf..d2ed2643a 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -2325,10 +2325,24 @@ int (is_irn_forking)(const ir_node *node) { return _is_irn_forking(node); } +/* Return the type associated with the value produced by n + * if the node remarks this type as it is the case for + * Cast, Const, SymConst and some Proj nodes. */ ir_type *(get_irn_type)(ir_node *node) { return _get_irn_type(node); } +/* Return the type attribute of a node n (SymConst, Call, Alloc, Free, + Cast) or NULL.*/ +ir_type *(get_irn_type_attr)(ir_node *node) { + return _get_irn_type_attr(node); +} + +/* Return the entity attribute of a node n (SymConst, Sel) or NULL. */ +entity *(get_irn_entity_attr)(ir_node *node) { + return _get_irn_entity_attr(node); +} + /* Returns non-zero for constant-like nodes. */ int (is_irn_constlike)(const ir_node *node) { return _is_irn_constlike(node);