optimize_graph_df():
[libfirm] / ir / tr / entity.h
index e6299ff..c319920 100644 (file)
@@ -512,7 +512,9 @@ int is_compound_entity(entity *ent);
 int equal_entity(entity *ent1, entity *ent2);
 
 /** Outputs a unique number for this entity if libfirm is compiled for
-   debugging, (configure with --enable-debug) else returns 0. */
+ *  debugging, (configure with --enable-debug) else returns the address
+ *  of the type cast to long.
+ */
 long get_entity_nr(entity *ent);
 
 /** Returns the entities visited count. */
@@ -596,4 +598,8 @@ typedef enum acc_bits {
   ptr_access_all   = ptr_access_rw|ptr_access_store     /**< all possible access */
 } ptr_access_kind;
 
+#define IS_READ(a)     ((a) & ptr_access_read)
+#define IS_WRITTEN(a)  ((a) & ptr_access_write)
+#define IS_STORED(a)   ((a) & ptr_access_store)
+
 #endif /* _ENTITY_H_ */