#include "typerep.h"
#include "type_t.h"
#include "ident.h"
-#include "pseudo_irg.h"
#include "compound_path.h"
typedef struct ir_initializer_base_t {
/**< paths corresponding to constant values. */
} compound_ent_attr;
-/** A reserved value for "not yet set". */
-#define VTABLE_NUM_NOT_SET ((unsigned)(-1))
-
/** The attributes for methods. */
typedef struct method_ent_attr {
ir_graph *irg; /**< The corresponding irg if known.
};
/** Initialize the entity module. */
-void firm_init_entity(void);
+void ir_init_entity(void);
+/** Cleanup entity module */
+void ir_finish_entity(void);
/* ----------------------- inline functions ------------------------ */
static inline int _is_entity(const void *thing)
static inline ir_graph *_get_entity_irg(const ir_entity *ent)
{
- ir_graph *irg;
assert(ent && ent->kind == k_entity);
if (!is_Method_type(ent->type) || ent == unknown_entity) {
return NULL;
}
- irg = ent->attr.mtd_attr.irg;
- if (irg != NULL && !get_visit_pseudo_irgs() && is_pseudo_ir_graph(irg))
- return NULL;
- return irg;
+ return ent->attr.mtd_attr.irg;
}
static inline ir_visited_t _get_entity_visited(const ir_entity *ent)