From 7c04715d182aa97c8fa0ce524afed1db2c2af612 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 13 Jan 2006 22:49:17 +0000 Subject: [PATCH] renamed all types 'type' to 'ir_type' removed struct from firm types [r7235] --- ir/ir/irgraph_t.h | 10 +++++----- ir/ir/irprog_t.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ir/ir/irgraph_t.h b/ir/ir/irgraph_t.h index 9e425f2f5..600d01950 100644 --- a/ir/ir/irgraph_t.h +++ b/ir/ir/irgraph_t.h @@ -56,7 +56,7 @@ typedef struct _irg_edge_info_t { struct ir_graph { firm_kind kind; /**< always set to k_ir_graph*/ /* -- Basics of the representation -- */ - struct entity *ent; /**< The entity of this procedure, i.e., + entity *ent; /**< The entity of this procedure, i.e., the type of the procedure and the class it belongs to. */ ir_type *frame_type; /**< A class type representing the stack frame. @@ -112,12 +112,12 @@ struct ir_graph { /* -- Fields for optimizations / analysis information -- */ pset *value_table; /**< hash table for global value numbering (cse) for optimizing use in iropt.c */ - struct ir_node **outs; /**< Space for the out arrays. */ + ir_node **outs; /**< Space for the out arrays. */ #ifdef DEBUG_libfirm int n_outs; /**< Size wasted for outs */ #endif /* defined DEBUG_libfirm */ - struct ir_loop *loop; /**< The outermost loop */ + ir_loop *loop; /**< The outermost loop */ void *link; /**< A void* field to link any information to the node. */ @@ -348,14 +348,14 @@ _set_irg_entity(ir_graph *irg, entity *ent) { irg->ent = ent; } -static INLINE type * +static INLINE ir_type * _get_irg_frame_type(ir_graph *irg) { assert(irg && irg->frame_type); return irg->frame_type = skip_tid(irg->frame_type); } static INLINE void -_set_irg_frame_type(ir_graph *irg, type *ftp) { +_set_irg_frame_type(ir_graph *irg, ir_type *ftp) { assert(is_Class_type(ftp)); irg->frame_type = ftp; } diff --git a/ir/ir/irprog_t.h b/ir/ir/irprog_t.h index be51ef03f..75dd92458 100644 --- a/ir/ir/irprog_t.h +++ b/ir/ir/irprog_t.h @@ -48,9 +48,9 @@ struct ir_prog { to allocate nodes the represent values of constant entities. It is not meant as a procedure. */ - type *glob_type; /**< global type. Must be a class as it can + ir_type *glob_type; /**< global type. Must be a class as it can have fields and procedures. */ - type **types; /**< all types in the ir */ + ir_type **types; /**< all types in the ir */ ir_mode **modes; /**< all modes in the ir */ /* -- states of and access to generated information -- */ @@ -69,7 +69,7 @@ struct ir_prog { inh_transitive_closure_state inh_trans_closure_state; /**< trans closure of inh relations. */ irp_callgraph_state callgraph_state; /**< State of the callgraph. */ - struct ir_loop *outermost_cg_loop; /**< For callgraph analysis: entry point + ir_loop *outermost_cg_loop; /**< For callgraph analysis: entry point to looptree over callgraph. */ int max_callgraph_loop_depth; /**< needed in callgraph. */ int max_callgraph_recursion_depth; /**< needed in callgraph. */ @@ -89,7 +89,7 @@ void add_irp_mode(ir_mode *mode); /* INLINE functions */ -static INLINE type * +static INLINE ir_type * _get_glob_type(void) { assert(irp); return irp->glob_type = skip_tid(irp->glob_type); @@ -116,7 +116,7 @@ _get_irp_n_types (void) { return ARR_LEN(irp->types); } -static INLINE type * +static INLINE ir_type * _get_irp_type(int pos) { assert (irp && irp->types); /* Don't set the skip_tid result so that no double entries are generated. */ -- 2.20.1