From 17a027f849e538e6c077d8b8e97016ed658ec1b9 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 2 Jan 2006 15:59:25 +0000 Subject: [PATCH] added missing get_irn_type_attr() and get_irn_entity_attr() [r7188] --- ir/ir/irnode.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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); -- 2.20.1