renamed is_subclass_of -> is_SubClasss_of
[libfirm] / ir / ana / trouts.h
index 9026e8c..f500a01 100644 (file)
@@ -31,9 +31,8 @@
 # ifndef _TROUTS_H_
 # define _TROUTS_H_
 
-#include "type.h"
-#include "entity.h"
-#include "irnode.h"
+#include "firm_types.h"
+#include "irgraph.h"
 
 /*-----------------------------------------------------------------*/
 /* Accessing the trout datastructures.                             */
@@ -81,6 +80,15 @@ int   get_type_n_pointertypes_to(type *tp);
 type *get_type_pointertype_to(type *tp, int pos);
 void  add_type_pointertype_to(type *tp, type *ptp);
 
+/* Access all array types that contain elements of type tp.
+ * Does not find subarrays, e.g., int[] being element of int[][]
+ * for multi dimensional arrays. */
+int   get_type_n_arraytypes_of(type *tp);
+type *get_type_arraytype_of(type *tp, int pos);
+void  add_type_arraytype_of(type *tp, type *atp);
+
+
+
 /* @@@ TODO: compute all entities that use a type. */
 
 /*------------------------------------------------------------------*/