added missing get_irn_type_attr() and get_irn_entity_attr()
[libfirm] / ir / ir / irnode.c
index 0c05a83..d2ed264 100644 (file)
@@ -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);