libFirm
trouts.h File Reference

Reverse edges that reference types/entities. More...

#include "firm_types.h"
#include "irgraph.h"
#include "begin.h"
#include "end.h"

Go to the source code of this file.

Functions

size_t get_entity_n_accesses (const ir_entity *entity)
 Returns number of Load/Store nodes that possibly access entity entity.
ir_nodeget_entity_access (const ir_entity *entity, size_t pos)
 Returns Load/Store node number pos that possibly accesses entity entity.
size_t get_entity_n_references (const ir_entity *entity)
 Returns number of references to entity entity, in form of SymConst/Sel, including references from constant entities and the like.
ir_nodeget_entity_reference (const ir_entity *entity, size_t pos)
 Returns reference number pos of references to an entity, in form of SymConst/Sel, including references from constants.
size_t get_type_n_allocs (const ir_type *type)
 Returns number of Alloc nodes that create an instance of type type.
ir_nodeget_type_alloc (const ir_type *type, size_t pos)
 Returns Alloc node number pos that create an instance of type type.
size_t get_type_n_casts (const ir_type *type)
 Returns number of Cast nodes that cast a pointer to type type.
ir_nodeget_type_cast (const ir_type *type, size_t pos)
 Cast node that cast a pointer to this type.
size_t get_class_n_upcasts (const ir_type *clss)
 Returns number of upcasts.
size_t get_class_n_downcasts (const ir_type *clss)
 Returns number of downcasts.
size_t get_type_n_pointertypes_to (const ir_type *type)
 Returns number of pointertypes that point to type type.
ir_typeget_type_pointertype_to (const ir_type *type, size_t pos)
 Returns pointer type number pos that points to type type.
size_t get_type_n_arraytypes_of (const ir_type *type)
 Returns number of array types with element type type.
ir_typeget_type_arraytype_of (const ir_type *type, size_t pos)
 Returns array type number pos with element type type.
void compute_trouts (void)
 Computes the outs of types and entities.
void free_trouts (void)
 Frees trout data.

Detailed Description

Reverse edges that reference types/entities.

Author
Goetz Lindenmaier
Date
29.10.2004

Definition in file trouts.h.