Some more cleanup: Put the return type and other specifiers on the same line as the...
authorChristoph Mallon <christoph.mallon@gmx.de>
Sun, 14 Feb 2010 14:38:55 +0000 (14:38 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sun, 14 Feb 2010 14:38:55 +0000 (14:38 +0000)
[r27155]

53 files changed:
include/libfirm/adt/array.h
include/libfirm/adt/raw_bitset.h
include/libfirm/irnode.h
ir/adt/bitfiddle.h
ir/adt/hashset.c
ir/adt/set.c
ir/ana/execfreq.c
ir/ana/execution_frequency.c
ir/ana/irextbb_t.h
ir/ana/irloop_t.h
ir/be/beabi.c
ir/be/bearch.h
ir/be/bepressurestat.c
ir/be/bestate.c
ir/be/beuses.c
ir/be/beverify.c
ir/be/ia32/ia32_fpu.c
ir/be/ia32/ia32_new_nodes.c
ir/be/mips/mips_emitter.c
ir/be/mips/mips_scheduler.c
ir/be/mips/mips_transform.c
ir/ir/ircons.c
ir/ir/irdump.c
ir/ir/irdump_t.h
ir/ir/irflag_t.h
ir/ir/irgraph.c
ir/ir/irgraph_t.h
ir/ir/irgwalk.c
ir/ir/irgwalk_blk.c
ir/ir/irlinkednodemap.c
ir/ir/irlinkednodeset.c
ir/ir/irmode_t.h
ir/ir/irnode.c
ir/ir/irnode_t.h
ir/ir/irop.c
ir/ir/iropt_t.h
ir/ir/irprofile.c
ir/ir/irprog_t.h
ir/ir/irvrfy.c
ir/ir/pseudo_irg.c
ir/ir/valueset.c
ir/libcore/lc_config_parser.c
ir/obstack/obstack.c
ir/obstack_win/obstack.c
ir/opt/opt_inline.c
ir/tr/entity.c
ir/tr/entity_t.h
ir/tr/tpop.c
ir/tr/tpop_t.h
ir/tr/type_t.h
ir/tr/typewalk.c
ir/tv/tv_t.h
scripts/jinja2/_speedups.c

index 94abd85..d84c8f1 100644 (file)
@@ -282,8 +282,7 @@ typedef int (ir_arr_cmp_func_t)(const void *a, const void *b);
  * @note           The differences to bsearch(3) which does not give proper insert locations
  *                 in the case that the element is not conatined in the array.
  */
-static inline int
-ir_arr_bsearch(const void *arr, size_t elm_size, ir_arr_cmp_func_t *cmp, const void *elm)
+static inline int ir_arr_bsearch(const void *arr, size_t elm_size, ir_arr_cmp_func_t *cmp, const void *elm)
 {
        int hi = ARR_LEN(arr);
        int lo = 0;
index 99b1c6c..9c6c187 100644 (file)
@@ -129,10 +129,8 @@ static inline unsigned *rbitset_w_size_obstack_alloc(struct obstack *obst, unsig
  *
  * @return the new bitset
  */
-static inline
-unsigned *rbitset_duplicate_obstack_alloc(struct obstack *obst,
-                                          const unsigned *old_bitset,
-                                          unsigned size)
+static inline unsigned *rbitset_duplicate_obstack_alloc(struct obstack *obst,
+       const unsigned *old_bitset, unsigned size)
 {
        unsigned size_bytes = BITSET_SIZE_BYTES(size);
        unsigned *res = obstack_alloc(obst, size_bytes);
index a480cd3..ad75c63 100644 (file)
@@ -262,14 +262,8 @@ op_pin_state is_irn_pinned_in_irg(const ir_node *node);
  * @param arity The arity of the new node, <0 if can be changed dynamically.
  * @param in    An array of arity predecessor nodes.
  */
-ir_node *
-new_ir_node(dbg_info *db,
-         ir_graph *irg,
-         ir_node *block,
-         ir_op *op,
-         ir_mode *mode,
-         int arity,
-         ir_node *in[]);
+ir_node *new_ir_node(dbg_info *db, ir_graph *irg, ir_node *block, ir_op *op,
+                     ir_mode *mode, int arity, ir_node *in[]);
 
 /**
  * Return the block the node belongs to.  This is only
index 29ff438..ed92f0d 100644 (file)
@@ -45,8 +45,7 @@ COMPILETIME_ASSERT(UINT_MAX == 4294967295U, uintmax)
  *
  * @note See hacker's delight, page 27.
  */
-static inline
-int add_saturated(int x, int y)
+static inline int add_saturated(int x, int y)
 {
        int sum      = x + y;
        /*
@@ -74,8 +73,8 @@ int add_saturated(int x, int y)
  * @param x A 32-bit word.
  * @return The number of bits set in x.
  */
-static inline
-unsigned popcnt(unsigned x) {
+static inline unsigned popcnt(unsigned x)
+{
        x -= ((x >> 1) & 0x55555555);
        x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
        x = (x + (x >> 4)) & 0x0f0f0f0f;
@@ -89,8 +88,8 @@ unsigned popcnt(unsigned x) {
  * @param x The word.
  * @return The number of leading (from the most significant bit) zeros.
  */
-static inline
-unsigned nlz(unsigned x) {
+static inline unsigned nlz(unsigned x)
+{
 #ifdef USE_X86_ASSEMBLY
        unsigned res;
        if(x == 0)
@@ -118,8 +117,8 @@ unsigned nlz(unsigned x) {
  * @param x The word.
  * @return The number of trailing zeros.
  */
-static inline
-unsigned ntz(unsigned x) {
+static inline unsigned ntz(unsigned x)
+{
 #ifdef USE_X86_ASSEMBLY
        unsigned res;
        if(x == 0)
@@ -162,8 +161,7 @@ unsigned ntz(unsigned x) {
  * Returns the biggest power of 2 that is equal or smaller than @p x
  * (see hackers delight power-of-2 boundaries, page 48)
  */
-static inline
-unsigned floor_po2(unsigned x)
+static inline unsigned floor_po2(unsigned x)
 {
 #ifdef USE_X86_ASSEMBLY // in this case nlz is fast
        if(x == 0)
@@ -185,8 +183,7 @@ unsigned floor_po2(unsigned x)
  * @remark x has to be <= 0x8000000 of course
  * @note see hackers delight power-of-2 boundaries, page 48
  */
-static inline
-unsigned ceil_po2(unsigned x)
+static inline unsigned ceil_po2(unsigned x)
 {
        if(x == 0)
                return 0;
@@ -209,8 +206,7 @@ unsigned ceil_po2(unsigned x)
 /**
  * Tests whether @p x is a power of 2
  */
-static inline
-int is_po2(unsigned x)
+static inline int is_po2(unsigned x)
 {
        return (x & (x-1)) == 0;
 }
index 505baa5..92b5911 100644 (file)
@@ -219,8 +219,7 @@ size_t hashset_size(const HashSet *self)
  * @note also see comments for hashset_insert()
  * @internal
  */
-static inline
-InsertReturnValue insert_nogrow(HashSet *self, KeyType key)
+static inline InsertReturnValue insert_nogrow(HashSet *self, KeyType key)
 {
        size_t   num_probes  = 0;
        size_t   num_buckets = self->num_buckets;
@@ -270,8 +269,7 @@ InsertReturnValue insert_nogrow(HashSet *self, KeyType key)
  * calculate shrink and enlarge limits
  * @internal
  */
-static inline
-void reset_thresholds(HashSet *self)
+static inline void reset_thresholds(HashSet *self)
 {
        self->enlarge_threshold = (size_t) HT_OCCUPANCY_FLT(self->num_buckets);
        self->shrink_threshold  = (size_t) HT_EMPTY_FLT(self->num_buckets);
@@ -284,8 +282,7 @@ void reset_thresholds(HashSet *self)
  * contains no deleted entries and the element doesn't exist in the hashset yet.
  * @internal
  */
-static
-void insert_new(HashSet *self, unsigned hash, ValueType value)
+static void insert_new(HashSet *self, unsigned hash, ValueType value)
 {
        size_t num_probes  = 0;
        size_t num_buckets = self->num_buckets;
@@ -326,8 +323,7 @@ void insert_new(HashSet *self, unsigned hash, ValueType value)
  * Resize the hashset
  * @internal
  */
-static inline
-void resize(HashSet *self, size_t new_size)
+static inline void resize(HashSet *self, size_t new_size)
 {
        size_t num_buckets = self->num_buckets;
        size_t i;
@@ -371,8 +367,7 @@ static inline void resize(HashSet *self, size_t new_size);
  * grow the hashset if adding 1 more elements would make it too crowded
  * @internal
  */
-static inline
-void maybe_grow(HashSet *self)
+static inline void maybe_grow(HashSet *self)
 {
        size_t resize_to;
 
@@ -388,8 +383,7 @@ void maybe_grow(HashSet *self)
  * shrink the hashset if it is only sparsely filled
  * @internal
  */
-static inline
-void maybe_shrink(HashSet *self)
+static inline void maybe_shrink(HashSet *self)
 {
        size_t size;
        size_t resize_to;
@@ -516,8 +510,7 @@ void hashset_remove(HashSet *self, ConstKeyType key)
  * Initializes hashset with a specific size
  * @internal
  */
-static inline
-void init_size(HashSet *self, size_t initial_size)
+static inline void init_size(HashSet *self, size_t initial_size)
 {
        if (initial_size < 4)
                initial_size = 4;
index b8eebef..3785224 100644 (file)
@@ -114,8 +114,7 @@ struct SET {
 
 #ifdef STATS
 
-void
-MANGLEP(stats) (SET *table)
+void MANGLEP(stats) (SET *table)
 {
   int nfree = 0;
 #ifdef PSET
@@ -126,8 +125,7 @@ MANGLEP(stats) (SET *table)
          table->naccess, table->ncollision, table->nkey, table->ndups, table->max_chain_len, nfree);
 }
 
-static inline void
-stat_chain_len (SET *table, int chain_len)
+static inline void stat_chain_len(SET *table, int chain_len)
 {
   table->ncollision += chain_len;
   if (table->max_chain_len < chain_len) table->max_chain_len = chain_len;
@@ -149,8 +147,7 @@ stat_chain_len (SET *table, int chain_len)
 const char *MANGLEP(tag);
 
 
-void
-MANGLEP(describe) (SET *table)
+void MANGLEP(describe) (SET *table)
 {
   unsigned i, j, collide;
   Element *ptr;
@@ -180,8 +177,7 @@ MANGLEP(describe) (SET *table)
 #endif /* !DEBUG */
 
 
-SET *
-(PMANGLE(new)) (MANGLEP(cmp_fun) cmp, int nslots)
+SET *(PMANGLE(new)) (MANGLEP(cmp_fun) cmp, int nslots)
 {
   int i;
   SET *table = XMALLOC(SET);
@@ -221,8 +217,7 @@ SET *
 }
 
 
-void
-PMANGLE(del) (SET *table)
+void PMANGLE(del) (SET *table)
 {
 #ifdef DEBUG
   MANGLEP(tag) = table->tag;
@@ -231,8 +226,7 @@ PMANGLE(del) (SET *table)
   xfree (table);
 }
 
-int
-MANGLEP(count) (SET *table)
+int MANGLEP(count) (SET *table)
 {
   return table->nkey;
 }
@@ -241,8 +235,7 @@ MANGLEP(count) (SET *table)
  * do one iteration step, return 1
  * if still data in the set, 0 else
  */
-static inline int
-iter_step (SET *table)
+static inline int iter_step(SET *table)
 {
   if (++table->iter_j >= SEGMENT_SIZE) {
     table->iter_j = 0;
@@ -257,8 +250,7 @@ iter_step (SET *table)
 /*
  * finds the first entry in the table
  */
-void *
-MANGLEP(first) (SET *table)
+void * MANGLEP(first) (SET *table)
 {
   assert (!table->iter_tail);
   table->iter_i = 0;
@@ -274,8 +266,7 @@ MANGLEP(first) (SET *table)
 /*
  * returns next entry in the table
  */
-void *
-MANGLEP(next) (SET *table)
+void *MANGLEP(next) (SET *table)
 {
   if (!table->iter_tail)
     return NULL;
@@ -293,8 +284,7 @@ MANGLEP(next) (SET *table)
   return table->iter_tail->entry.dptr;
 }
 
-void
-MANGLEP(break) (SET *table)
+void MANGLEP(break) (SET *table)
 {
   table->iter_tail = NULL;
 }
@@ -302,8 +292,7 @@ MANGLEP(break) (SET *table)
 /*
  * limit the hash value
  */
-static inline unsigned
-Hash (SET *table, unsigned h)
+static inline unsigned Hash(SET *table, unsigned h)
 {
   unsigned address;
   address = h & (table->maxp - 1);          /* h % table->maxp */
@@ -316,8 +305,7 @@ Hash (SET *table, unsigned h)
  * returns non-zero if the number of elements in
  * the set is greater then number of segments * MAX_LOAD_FACTOR
  */
-static inline int
-loaded (SET *table)
+static inline int loaded(SET *table)
 {
   return (  ++table->nkey
          > (table->nseg << SEGMENT_SIZE_SHIFT) * MAX_LOAD_FACTOR);
@@ -331,8 +319,7 @@ loaded (SET *table)
  * after all segments were split, table->p is set to zero and
  * table->maxp is duplicated.
  */
-static void
-expand_table (SET *table)
+static void expand_table(SET *table)
 {
   unsigned NewAddress;
   int OldSegmentIndex, NewSegmentIndex;
@@ -389,8 +376,7 @@ expand_table (SET *table)
 }
 
 
-void *
-MANGLE(_,_search) (SET *table,
+void * MANGLE(_,_search) (SET *table,
                   const void *key,
 #ifndef PSET
                   size_t size,
@@ -475,8 +461,7 @@ int pset_default_ptr_cmp(const void *x, const void *y)
        return x != y;
 }
 
-void *
-pset_remove (SET *table, const void *key, unsigned hash)
+void *pset_remove(SET *table, const void *key, unsigned hash)
 {
   unsigned h;
   Segment *CurrentSegment;
@@ -529,15 +514,13 @@ pset_remove (SET *table, const void *key, unsigned hash)
 }
 
 
-void *
-(pset_find) (SET *se, const void *key, unsigned hash)
+void *(pset_find) (SET *se, const void *key, unsigned hash)
 {
   return pset_find (se, key, hash);
 }
 
 
-void *
-(pset_insert) (SET *se, const void *key, unsigned hash)
+void *(pset_insert) (SET *se, const void *key, unsigned hash)
 {
   return pset_insert (se, key, hash);
 }
@@ -559,22 +542,19 @@ void pset_insert_pset_ptr(pset *target, pset *src)
 
 #else /* !PSET */
 
-void *
-(set_find) (set *se, const void *key, size_t size, unsigned hash)
+void *(set_find) (set *se, const void *key, size_t size, unsigned hash)
 {
   return set_find (se, key, size, hash);
 }
 
 
-void *
-(set_insert) (set *se, const void *key, size_t size, unsigned hash)
+void *(set_insert) (set *se, const void *key, size_t size, unsigned hash)
 {
   return set_insert (se, key, size, hash);
 }
 
 
-set_entry *
-(set_hinsert) (set *se, const void *key, size_t size, unsigned hash)
+set_entry *(set_hinsert) (set *se, const void *key, size_t size, unsigned hash)
 {
   return set_hinsert (se, key, size, hash);
 }
index 3990550..b8e5180 100644 (file)
@@ -84,8 +84,7 @@ struct ir_exec_freq {
        unsigned infeasible : 1;
 };
 
-static int
-cmp_freq(const void *a, const void *b, size_t size)
+static int cmp_freq(const void *a, const void *b, size_t size)
 {
        const freq_t *p = a;
        const freq_t *q = b;
@@ -94,8 +93,7 @@ cmp_freq(const void *a, const void *b, size_t size)
        return !(p->irn == q->irn);
 }
 
-static freq_t *
-set_find_freq(set * set, const ir_node * irn)
+static freq_t *set_find_freq(set *set, const ir_node *irn)
 {
        freq_t     query;
 
@@ -103,8 +101,7 @@ set_find_freq(set * set, const ir_node * irn)
        return set_find(set, &query, sizeof(query), HASH_PTR(irn));
 }
 
-static freq_t *
-set_insert_freq(set * set, const ir_node * irn)
+static freq_t *set_insert_freq(set *set, const ir_node *irn)
 {
        freq_t query;
 
@@ -114,8 +111,7 @@ set_insert_freq(set * set, const ir_node * irn)
        return set_insert(set, &query, sizeof(query), HASH_PTR(irn));
 }
 
-double
-get_block_execfreq(const ir_exec_freq *ef, const ir_node * irn)
+double get_block_execfreq(const ir_exec_freq *ef, const ir_node *irn)
 {
        if (!ef->infeasible) {
                set *freqs = ef->set;
@@ -139,8 +135,7 @@ get_block_execfreq_ulong(const ir_exec_freq *ef, const ir_node *bb)
        return res;
 }
 
-static double *
-solve_lgs(gs_matrix_t *mat, double *x, int size)
+static double *solve_lgs(gs_matrix_t *mat, double *x, int size)
 {
        double init = 1.0 / size;
        double dev;
@@ -181,8 +176,7 @@ solve_lgs(gs_matrix_t *mat, double *x, int size)
 /*
  * Determine probability that predecessor pos takes this cf edge.
  */
-static double
-get_cf_probability(ir_node *bb, int pos, double loop_weight)
+static double get_cf_probability(ir_node *bb, int pos, double loop_weight)
 {
        double           sum = 0.0;
        double           cur = 1.0;
@@ -260,8 +254,7 @@ static void collect_blocks(ir_node *bl, void *data)
        set_insert_freq(freqs, bl);
 }
 
-ir_exec_freq *
-compute_execfreq(ir_graph * irg, double loop_weight)
+ir_exec_freq *compute_execfreq(ir_graph *irg, double loop_weight)
 {
        gs_matrix_t  *mat;
        int           size;
@@ -433,8 +426,7 @@ compute_execfreq(ir_graph * irg, double loop_weight)
        return ef;
 }
 
-void
-free_execfreq(ir_exec_freq *ef)
+void free_execfreq(ir_exec_freq *ef)
 {
        del_set(ef->set);
        unregister_hook(hook_node_info, &ef->hook);
index e7e21e7..b69bd48 100644 (file)
@@ -153,8 +153,7 @@ Cond_prob get_ProjX_probability(ir_node *n)
 
 /* A walker that only visits the nodes we want to see. */
 
-static void
-my_irg_walk_2_both(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void * env)
+static void my_irg_walk_2_both(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void * env)
 {
   int i;
   set_irn_visited(node, current_ir_graph->visited);
index 00daa8d..731c0a2 100644 (file)
@@ -45,8 +45,8 @@ struct _ir_extblk {
  * Checks whether a pointer points to a extended basic block.
  * Intern version for libFirm.
  */
-static inline int
-_is_ir_extbb(const void *thing) {
+static inline int _is_ir_extbb(const void *thing)
+{
        return (get_kind(thing) == k_ir_extblk);
 }
 
@@ -54,8 +54,8 @@ _is_ir_extbb(const void *thing) {
  * Gets the visited counter of an extended block.
  * Internal version for libFirm.
  */
-static inline ir_visited_t
-_get_extbb_visited(const ir_extblk *blk) {
+static inline ir_visited_t _get_extbb_visited(const ir_extblk *blk)
+{
        assert(blk);
        return blk->visited;
 }
@@ -64,8 +64,8 @@ _get_extbb_visited(const ir_extblk *blk) {
  * Sets the visited counter of an extended block.
  * Internal version for libFirm.
  */
-static inline void
-_set_extbb_visited(ir_extblk *blk, ir_visited_t visited) {
+static inline void _set_extbb_visited(ir_extblk *blk, ir_visited_t visited)
+{
        assert(blk);
        blk->visited = visited;
 }
@@ -74,8 +74,8 @@ _set_extbb_visited(ir_extblk *blk, ir_visited_t visited) {
  * Mark an extended block as visited in a graph.
  * Internal version for libFirm.
  */
-static inline void
-_mark_extbb_visited(ir_extblk *blk) {
+static inline void _mark_extbb_visited(ir_extblk *blk)
+{
        assert(blk);
        blk->visited = current_ir_graph->block_visited;
 }
@@ -84,8 +84,8 @@ _mark_extbb_visited(ir_extblk *blk) {
  * Returns non-zero if an extended was visited.
  * Internal version for libFirm.
  */
-static inline int
-_extbb_visited(const ir_extblk *blk) {
+static inline int _extbb_visited(const ir_extblk *blk)
+{
        assert(blk);
        return blk->visited >= current_ir_graph->block_visited;
 }
@@ -94,8 +94,8 @@ _extbb_visited(const ir_extblk *blk) {
  * Returns non-zero if an extended block was NOT visited.
  * Internal version for libFirm.
  */
-static inline int
-_extbb_not_visited(const ir_extblk *blk) {
+static inline int _extbb_not_visited(const ir_extblk *blk)
+{
        assert(blk);
        return blk->visited < current_ir_graph->block_visited;
 }
@@ -104,8 +104,8 @@ _extbb_not_visited(const ir_extblk *blk) {
  * Returns the link field of an extended block.
  * Internal version for libFirm.
  */
-static inline void *
-_get_extbb_link(const ir_extblk *blk) {
+static inline void *_get_extbb_link(const ir_extblk *blk)
+{
        assert(blk);
        return blk->link;
 }
@@ -114,8 +114,8 @@ _get_extbb_link(const ir_extblk *blk) {
  * Sets the link field of an extended block.
  * Internal version for libFirm.
  */
-static inline void
-_set_extbb_link(ir_extblk *blk, void *link) {
+static inline void _set_extbb_link(ir_extblk *blk, void *link)
+{
        assert(blk);
        blk->link = link;
 }
@@ -123,8 +123,8 @@ _set_extbb_link(ir_extblk *blk, void *link) {
 /**
  * Return the number of basis blocks of an extended block
  */
-static inline int
-_get_extbb_n_blocks(const ir_extblk *blk) {
+static inline int _get_extbb_n_blocks(const ir_extblk *blk)
+{
        assert(blk);
        return ARR_LEN(blk->blks);
 }
@@ -132,8 +132,7 @@ _get_extbb_n_blocks(const ir_extblk *blk) {
 /**
  * Return the i'th basis block of an extended block
  */
-static inline ir_node *
-_get_extbb_block(const ir_extblk *blk, int pos)
+static inline ir_node *_get_extbb_block(const ir_extblk *blk, int pos)
 {
        assert(blk && 0 <= pos && pos < _get_extbb_n_blocks(blk));
        return blk->blks[pos];
@@ -142,8 +141,7 @@ _get_extbb_block(const ir_extblk *blk, int pos)
 /**
  * Return the leader basis block of an extended block
  */
-static inline ir_node *
-_get_extbb_leader(const ir_extblk *blk)
+static inline ir_node *_get_extbb_leader(const ir_extblk *blk)
 {
        return blk->blks[0];
 }
index e075c9c..04ee7e3 100644 (file)
@@ -109,44 +109,44 @@ void mature_loops(ir_loop *loop, struct obstack *obst);
 
 /* -------- inline functions -------- */
 
-static inline int
-_is_ir_loop(const void *thing) {
+static inline int _is_ir_loop(const void *thing)
+{
        return get_kind(thing) == k_ir_loop;
 }
 
-static inline void
-_set_irg_loop(ir_graph *irg, ir_loop *loop) {
+static inline void _set_irg_loop(ir_graph *irg, ir_loop *loop)
+{
        assert(irg);
        irg->loop = loop;
 }
 
-static inline ir_loop *
-_get_irg_loop(const ir_graph *irg) {
+static inline ir_loop *_get_irg_loop(const ir_graph *irg)
+{
        assert(irg);
        return irg->loop;
 }
 
-static inline ir_loop *
-_get_loop_outer_loop(const ir_loop *loop) {
+static inline ir_loop *_get_loop_outer_loop(const ir_loop *loop)
+{
        assert(_is_ir_loop(loop));
        return loop->outer_loop;
 }
 
-static inline int
-_get_loop_depth(const ir_loop *loop) {
+static inline int _get_loop_depth(const ir_loop *loop)
+{
        assert(_is_ir_loop(loop));
        return loop->depth;
 }
 
-static inline int
-_get_loop_n_sons(const ir_loop *loop) {
+static inline int _get_loop_n_sons(const ir_loop *loop)
+{
        assert(_is_ir_loop(loop));
        return loop->n_sons;
 }
 
 /* Uses temporary information to get the loop */
-static inline ir_loop *
-_get_irn_loop(const ir_node *n) {
+static inline ir_loop *_get_irn_loop(const ir_node *n)
+{
        return n->loop;
 }
 
index c2237d3..67a6a11 100644 (file)
@@ -2060,8 +2060,7 @@ static void modify_irg(be_abi_irg_t *env)
 }
 
 /** Fix the state inputs of calls that still hang on unknowns */
-static
-void fix_call_state_inputs(be_abi_irg_t *env)
+static void fix_call_state_inputs(be_abi_irg_t *env)
 {
        const arch_env_t *arch_env = env->arch_env;
        int i, n, n_states;
index bf22258..72ec89f 100644 (file)
@@ -223,20 +223,17 @@ struct arch_register_t {
        const arch_register_req_t   *single_req;
 };
 
-static inline const arch_register_class_t *
-_arch_register_get_class(const arch_register_t *reg)
+static inline const arch_register_class_t *_arch_register_get_class(const arch_register_t *reg)
 {
        return reg->reg_class;
 }
 
-static inline
-unsigned _arch_register_get_index(const arch_register_t *reg)
+static inline unsigned _arch_register_get_index(const arch_register_t *reg)
 {
        return reg->index;
 }
 
-static inline
-const char *_arch_register_get_name(const arch_register_t *reg)
+static inline const char *_arch_register_get_name(const arch_register_t *reg)
 {
        return reg->name;
 }
@@ -284,8 +281,7 @@ struct arch_register_class_t {
 /** return the register class flags */
 #define arch_register_class_flags(cls) ((cls)->flags)
 
-static inline const arch_register_t *
-_arch_register_for_index(const arch_register_class_t *cls, unsigned idx)
+static inline const arch_register_t *_arch_register_for_index(const arch_register_class_t *cls, unsigned idx)
 {
        assert(idx < cls->n_regs);
        return &cls->regs[idx];
index 6c6d9d4..59b05a4 100644 (file)
@@ -75,8 +75,7 @@ static inline int regpressure(pset *live)
        return MIN(pressure, MAXPRESSURE);
 }
 
-static void
-regpressureanawalker(ir_node *bb, void *data)
+static void regpressureanawalker(ir_node *bb, void *data)
 {
        regpressure_ana_t  *ra   = data;
        pset               *live = pset_new_ptr_default();
index 66b6b00..bdf0ad6 100644 (file)
@@ -76,8 +76,7 @@ typedef struct block_info_t {
        ir_node *end_state;
 } block_info_t;
 
-static inline
-block_info_t *new_block_info(struct obstack *obst, ir_node *block)
+static inline block_info_t *new_block_info(struct obstack *obst, ir_node *block)
 {
        block_info_t *res = OALLOCZ(obst, block_info_t);
 
@@ -88,15 +87,13 @@ block_info_t *new_block_info(struct obstack *obst, ir_node *block)
        return res;
 }
 
-static inline
-block_info_t *get_block_info(ir_node *block)
+static inline block_info_t *get_block_info(ir_node *block)
 {
        assert(irn_visited(block));
        return (block_info_t*) get_irn_link(block);
 }
 
-static inline
-spill_info_t *create_spill_info(minibelady_env_t *env, ir_node *state)
+static inline spill_info_t *create_spill_info(minibelady_env_t *env, ir_node *state)
 {
        spill_info_t *spill_info = OALLOCZ(&env->obst, spill_info_t);
        spill_info->value = state;
@@ -111,8 +108,7 @@ spill_info_t *create_spill_info(minibelady_env_t *env, ir_node *state)
        return spill_info;
 }
 
-static inline
-spill_info_t *get_spill_info(minibelady_env_t *env, const ir_node *node)
+static inline spill_info_t *get_spill_info(minibelady_env_t *env, const ir_node *node)
 {
        spill_info_t *spill_info
                = (spill_info_t*) ir_nodemap_get(&env->spill_infos, node);
@@ -120,8 +116,7 @@ spill_info_t *get_spill_info(minibelady_env_t *env, const ir_node *node)
        return spill_info;
 }
 
-static
-spill_info_t *create_spill(minibelady_env_t *env, ir_node *state, int force)
+static spill_info_t *create_spill(minibelady_env_t *env, ir_node *state, int force)
 {
        spill_info_t *spill_info;
        ir_node *next;
@@ -148,9 +143,8 @@ spill_info_t *create_spill(minibelady_env_t *env, ir_node *state, int force)
        return spill_info;
 }
 
-static
-void create_reload(minibelady_env_t *env, ir_node *state, ir_node *before,
-                   ir_node *last_state)
+static void create_reload(minibelady_env_t *env, ir_node *state,
+                          ir_node *before, ir_node *last_state)
 {
        spill_info_t *spill_info = create_spill(env, state, 0);
        ir_node *spill = spill_info->spill;
@@ -161,8 +155,7 @@ void create_reload(minibelady_env_t *env, ir_node *state, ir_node *before,
        ARR_APP1(ir_node*, spill_info->reloads, reload);
 }
 
-static
-void spill_phi(minibelady_env_t *env, ir_node *phi)
+static void spill_phi(minibelady_env_t *env, ir_node *phi)
 {
        ir_graph     *irg           = get_irn_irg(phi);
        ir_node      *block         = get_nodes_block(phi);
@@ -203,8 +196,7 @@ void spill_phi(minibelady_env_t *env, ir_node *phi)
        }
 }
 
-static
-void belady(minibelady_env_t *env, ir_node *block);
+static void belady(minibelady_env_t *env, ir_node *block);
 
 /**
  * Collects all values live-in at block @p block and all phi results in this
@@ -214,8 +206,7 @@ void belady(minibelady_env_t *env, ir_node *block);
  * their args to break interference and make it possible to spill them to the
  * same spill slot.
  */
-static
-block_info_t *compute_block_start_state(minibelady_env_t *env, ir_node *block)
+static block_info_t *compute_block_start_state(minibelady_env_t *env, ir_node *block)
 {
        block_info_t  *block_info;
        be_next_use_t  next_use;
@@ -362,8 +353,7 @@ block_info_t *compute_block_start_state(minibelady_env_t *env, ir_node *block)
  * whether it is used from a register or is reloaded
  * before the use.
  */
-static
-void belady(minibelady_env_t *env, ir_node *block)
+static void belady(minibelady_env_t *env, ir_node *block)
 {
        ir_node *current_state;
        ir_node *node;
@@ -454,14 +444,12 @@ void belady(minibelady_env_t *env, ir_node *block)
        DBG((dbg, LEVEL_3, "End value for %+F: %+F\n", block, current_state));
 }
 
-static
-void belady_walker(ir_node *block, void *data)
+static void belady_walker(ir_node *block, void *data)
 {
        belady((minibelady_env_t*) data, block);
 }
 
-static
-ir_node *get_end_of_block_insertion_point(ir_node *block)
+static ir_node *get_end_of_block_insertion_point(ir_node *block)
 {
        ir_node *last = sched_last(block);
 
@@ -482,8 +470,7 @@ ir_node *get_end_of_block_insertion_point(ir_node *block)
 /**
  * We must adapt the live-outs to the live-ins at each block-border.
  */
-static
-void fix_block_borders(ir_node *block, void *data)
+static void fix_block_borders(ir_node *block, void *data)
 {
        minibelady_env_t *env = data;
        ir_graph *irg = get_irn_irg(block);
index 4e26f6a..2ad2399 100644 (file)
@@ -160,8 +160,7 @@ static int be_is_phi_argument(const ir_node *block, const ir_node *def)
        return 0;
 }
 
-static inline
-unsigned get_step(const ir_node *node)
+static inline unsigned get_step(const ir_node *node)
 {
        return PTR_TO_INT(get_irn_link(node));
 }
@@ -357,8 +356,7 @@ be_next_use_t be_get_next_use(be_uses_t *env, ir_node *from,
        return get_next_use(env, from, from_step, def, skip_from_uses);
 }
 
-static
-void set_sched_step_walker(ir_node *block, void *data)
+static void set_sched_step_walker(ir_node *block, void *data)
 {
        ir_node  *node;
        unsigned step = 0;
index 5ff5d67..d5923b4 100644 (file)
@@ -422,11 +422,9 @@ static ir_node *get_memory_edge(const ir_node *node)
        return result;
 }
 
-static
-void collect(be_verify_spillslots_env_t *env, ir_node *node, ir_node *reload, ir_entity* ent);
+static void collect(be_verify_spillslots_env_t *env, ir_node *node, ir_node *reload, ir_entity* ent);
 
-static
-void be_check_entity(be_verify_spillslots_env_t *env, ir_node *node, ir_entity *ent)
+static void be_check_entity(be_verify_spillslots_env_t *env, ir_node *node, ir_entity *ent)
 {
        if (ent == NULL) {
                ir_fprintf(stderr, "Verify warning: Node %+F in block %+F(%s) should have an entity assigned\n",
@@ -434,8 +432,7 @@ void be_check_entity(be_verify_spillslots_env_t *env, ir_node *node, ir_entity *
        }
 }
 
-static
-void collect_spill(be_verify_spillslots_env_t *env, ir_node *node, ir_node *reload, ir_entity* ent)
+static void collect_spill(be_verify_spillslots_env_t *env, ir_node *node, ir_node *reload, ir_entity* ent)
 {
        ir_entity *spillent = arch_get_frame_entity(node);
        be_check_entity(env, node, spillent);
index 9aa8823..07a4e12 100644 (file)
@@ -237,8 +237,7 @@ static void collect_fpu_mode_nodes_walker(ir_node *node, void *data)
        }
 }
 
-static
-void rewire_fpu_mode_nodes(be_irg_t *birg)
+static void rewire_fpu_mode_nodes(be_irg_t *birg)
 {
        collect_fpu_mode_nodes_env_t env;
        be_ssa_construction_env_t senv;
index 28ba21c..3c81023 100644 (file)
@@ -887,8 +887,7 @@ void init_ia32_attributes(ir_node *node, arch_irn_flags_t flags,
        memset(info->out_infos, 0, n_res * sizeof(info->out_infos[0]));
 }
 
-void
-init_ia32_x87_attributes(ir_node *res)
+void init_ia32_x87_attributes(ir_node *res)
 {
 #ifndef NDEBUG
        ia32_attr_t *attr  = get_ia32_attr(res);
@@ -899,8 +898,7 @@ init_ia32_x87_attributes(ir_node *res)
        ia32_current_cg->do_x87_sim = 1;
 }
 
-void
-init_ia32_asm_attributes(ir_node *res)
+void init_ia32_asm_attributes(ir_node *res)
 {
 #ifndef NDEBUG
        ia32_attr_t *attr  = get_ia32_attr(res);
@@ -910,10 +908,9 @@ init_ia32_asm_attributes(ir_node *res)
 #endif
 }
 
-void
-init_ia32_immediate_attributes(ir_node *res, ir_entity *symconst,
-                               int symconst_sign, int no_pic_adjust,
-                                                          long offset)
+void init_ia32_immediate_attributes(ir_node *res, ir_entity *symconst,
+                                    int symconst_sign, int no_pic_adjust,
+                                    long offset)
 {
        ia32_immediate_attr_t *attr = get_irn_generic_attr(res);
 
@@ -937,8 +934,7 @@ void init_ia32_call_attributes(ir_node* res, unsigned pop, ir_type* call_tp)
        attr->call_tp = call_tp;
 }
 
-void
-init_ia32_copyb_attributes(ir_node *res, unsigned size)
+void init_ia32_copyb_attributes(ir_node *res, unsigned size)
 {
        ia32_copyb_attr_t *attr = get_irn_generic_attr(res);
 
@@ -948,8 +944,7 @@ init_ia32_copyb_attributes(ir_node *res, unsigned size)
        attr->size = size;
 }
 
-void
-init_ia32_condcode_attributes(ir_node *res, long pnc)
+void init_ia32_condcode_attributes(ir_node *res, long pnc)
 {
        ia32_condcode_attr_t *attr = get_irn_generic_attr(res);
 
@@ -959,8 +954,7 @@ init_ia32_condcode_attributes(ir_node *res, long pnc)
        attr->pn_code = pnc;
 }
 
-void
-init_ia32_climbframe_attributes(ir_node *res, unsigned count)
+void init_ia32_climbframe_attributes(ir_node *res, unsigned count)
 {
        ia32_climbframe_attr_t *attr = get_irn_generic_attr(res);
 
@@ -1016,8 +1010,7 @@ int ia32_compare_attr(const ia32_attr_t *a, const ia32_attr_t *b)
 }
 
 /** Compare nodes attributes for all "normal" nodes. */
-static
-int ia32_compare_nodes_attr(ir_node *a, ir_node *b)
+static int ia32_compare_nodes_attr(ir_node *a, ir_node *b)
 {
        const ia32_attr_t* attr_a = get_ia32_attr_const(a);
        const ia32_attr_t* attr_b = get_ia32_attr_const(b);
@@ -1026,8 +1019,7 @@ int ia32_compare_nodes_attr(ir_node *a, ir_node *b)
 }
 
 /** Compare node attributes for nodes with condition code. */
-static
-int ia32_compare_condcode_attr(ir_node *a, ir_node *b)
+static int ia32_compare_condcode_attr(ir_node *a, ir_node *b)
 {
        const ia32_condcode_attr_t *attr_a;
        const ia32_condcode_attr_t *attr_b;
@@ -1066,8 +1058,7 @@ static int ia32_compare_call_attr(ir_node *a, ir_node *b)
 }
 
 /** Compare node attributes for CopyB nodes. */
-static
-int ia32_compare_copyb_attr(ir_node *a, ir_node *b)
+static int ia32_compare_copyb_attr(ir_node *a, ir_node *b)
 {
        const ia32_copyb_attr_t *attr_a;
        const ia32_copyb_attr_t *attr_b;
@@ -1086,8 +1077,7 @@ int ia32_compare_copyb_attr(ir_node *a, ir_node *b)
 
 
 /** Compare ASM node attributes. */
-static
-int ia32_compare_asm_attr(ir_node *a, ir_node *b)
+static int ia32_compare_asm_attr(ir_node *a, ir_node *b)
 {
        const ia32_asm_attr_t *attr_a;
        const ia32_asm_attr_t *attr_b;
@@ -1115,8 +1105,7 @@ static unsigned ia32_hash_Immediate(const ir_node *irn)
 }
 
 /** Compare node attributes for Immediates. */
-static
-int ia32_compare_immediate_attr(ir_node *a, ir_node *b)
+static int ia32_compare_immediate_attr(ir_node *a, ir_node *b)
 {
        const ia32_immediate_attr_t *attr_a = get_ia32_immediate_attr_const(a);
        const ia32_immediate_attr_t *attr_b = get_ia32_immediate_attr_const(b);
@@ -1132,15 +1121,13 @@ int ia32_compare_immediate_attr(ir_node *a, ir_node *b)
 }
 
 /** Compare node attributes for x87 nodes. */
-static
-int ia32_compare_x87_attr(ir_node *a, ir_node *b)
+static int ia32_compare_x87_attr(ir_node *a, ir_node *b)
 {
        return ia32_compare_nodes_attr(a, b);
 }
 
 /** Compare node attributes for ClimbFrame nodes. */
-static
-int ia32_compare_climbframe_attr(ir_node *a, ir_node *b)
+static int ia32_compare_climbframe_attr(ir_node *a, ir_node *b)
 {
        const ia32_climbframe_attr_t *attr_a;
        const ia32_climbframe_attr_t *attr_b;
index 45744d1..e7f08ee 100644 (file)
@@ -297,8 +297,7 @@ static char *get_unique_label(char *buf, size_t buflen, const char *prefix)
 /* ABI Handling                                                         */
 /************************************************************************/
 
-static
-void mips_emit_IncSP(const ir_node *node)
+static void mips_emit_IncSP(const ir_node *node)
 {
        int   offset = be_get_IncSP_offset(node);
 
index 8077442..d0f9057 100644 (file)
@@ -193,8 +193,7 @@ static ir_node *mips_scheduler_select(void *block_env, nodeset *ready_set, nodes
 
 #endif
 
-static
-int mips_to_appear_in_schedule(void *block_env, const ir_node *node)
+static int mips_to_appear_in_schedule(void *block_env, const ir_node *node)
 {
        (void) block_env;
 
index 21a797a..a2f13c9 100644 (file)
@@ -553,8 +553,7 @@ static ir_node *gen_Phi(ir_node *node)
 }
 
 #if 0
-static
-ir_node *gen_node_for_SwitchCond(mips_transform_env_t *env)
+static ir_node *gen_node_for_SwitchCond(mips_transform_env_t *env)
 {
        ir_node *selector = get_Cond_selector(env->irn);
        ir_mode *selector_mode = get_irn_mode(selector);
@@ -826,8 +825,7 @@ static ir_node *gen_node_for_Mul(mips_transform_env_t *env)
        return mflo;
 }
 
-static
-ir_node *gen_node_for_IJmp(mips_transform_env_t *env)
+static ir_node *gen_node_for_IJmp(mips_transform_env_t *env)
 {
        ir_node  *node   = env->irn;
        dbg_info *dbg    = get_irn_dbg_info(node);
@@ -837,8 +835,7 @@ ir_node *gen_node_for_IJmp(mips_transform_env_t *env)
        return new_bd_mips_jr(dbg, block, target);
 }
 
-static
-ir_node *gen_node_for_Rot(mips_transform_env_t *env)
+static ir_node *gen_node_for_Rot(mips_transform_env_t *env)
 {
        ir_node *node = env->irn;
        ir_node *subu, *srlv, *sllv, *or;
index d49cc1d..7fdee5b 100644 (file)
@@ -165,8 +165,7 @@ new_d_##instr(dbg_info *db, ir_node *op, ir_mode *mode) {                     \
 
 #include "gen_ir_cons.c.inl"
 
-static ir_node *
-new_bd_Start(dbg_info *db, ir_node *block)
+static ir_node *new_bd_Start(dbg_info *db, ir_node *block)
 {
        ir_node  *res;
        ir_graph *irg = current_ir_graph;
@@ -177,8 +176,7 @@ new_bd_Start(dbg_info *db, ir_node *block)
        return res;
 }  /* new_bd_Start */
 
-static ir_node *
-new_bd_End(dbg_info *db, ir_node *block)
+static ir_node *new_bd_End(dbg_info *db, ir_node *block)
 {
        ir_node  *res;
        ir_graph *irg = current_ir_graph;
@@ -193,8 +191,7 @@ new_bd_End(dbg_info *db, ir_node *block)
  * Creates a Phi node with all predecessors.  Calling this constructor
  * is only allowed if the corresponding block is mature.
  */
-static ir_node *
-new_bd_Phi(dbg_info *db, ir_node *block, int arity, ir_node **in, ir_mode *mode)
+static ir_node *new_bd_Phi(dbg_info *db, ir_node *block, int arity, ir_node **in, ir_mode *mode)
 {
        ir_node  *res;
        ir_graph *irg = current_ir_graph;
@@ -226,8 +223,7 @@ new_bd_Phi(dbg_info *db, ir_node *block, int arity, ir_node **in, ir_mode *mode)
        return res;
 }  /* new_bd_Phi */
 
-static ir_node *
-new_bd_Const_type(dbg_info *db, tarval *con, ir_type *tp)
+static ir_node *new_bd_Const_type(dbg_info *db, tarval *con, ir_type *tp)
 {
        ir_node  *res;
        ir_graph *irg = current_ir_graph;
@@ -242,25 +238,23 @@ new_bd_Const_type(dbg_info *db, tarval *con, ir_type *tp)
        return res;
 }  /* new_bd_Const_type */
 
-static ir_node *
-new_bd_Const(dbg_info *db, tarval *con)
+static ir_node *new_bd_Const(dbg_info *db, tarval *con)
 {
        ir_graph *irg = current_ir_graph;
 
        return new_rd_Const_type(db, irg, con, firm_unknown_type);
 }  /* new_bd_Const */
 
-static ir_node *
-new_bd_Const_long(dbg_info *db, ir_mode *mode, long value)
+static ir_node *new_bd_Const_long(dbg_info *db, ir_mode *mode, long value)
 {
        ir_graph *irg = current_ir_graph;
 
        return new_rd_Const(db, irg, new_tarval_from_long(value, mode));
 }  /* new_bd_Const_long */
 
-static ir_node *
-new_bd_defaultProj(dbg_info *db, ir_node *block, ir_node *arg,
-           long max_proj) {
+static ir_node *new_bd_defaultProj(dbg_info *db, ir_node *block, ir_node *arg,
+                                   long max_proj)
+{
        ir_node  *res;
 
        assert(arg->op == op_Cond);
@@ -269,9 +263,10 @@ new_bd_defaultProj(dbg_info *db, ir_node *block, ir_node *arg,
        return res;
 }  /* new_bd_defaultProj */
 
-static ir_node *
-new_bd_Sel(dbg_info *db, ir_node *block, ir_node *store, ir_node *objptr,
-           int arity, ir_node **in, ir_entity *ent) {
+static ir_node *new_bd_Sel(dbg_info *db, ir_node *block, ir_node *store,
+                           ir_node *objptr, int arity, ir_node **in,
+                           ir_entity *ent)
+{
        ir_node  **r_in;
        ir_node  *res;
        int      r_arity;
@@ -295,9 +290,10 @@ new_bd_Sel(dbg_info *db, ir_node *block, ir_node *store, ir_node *objptr,
        return res;
 }  /* new_bd_Sel */
 
-static ir_node *
-new_bd_SymConst_type(dbg_info *db, ir_node *block, ir_mode *mode,
-                     symconst_symbol value,symconst_kind symkind, ir_type *tp) {
+static ir_node *new_bd_SymConst_type(dbg_info *db, ir_node *block,
+                                     ir_mode *mode, symconst_symbol value,
+                                     symconst_kind symkind, ir_type *tp)
+{
        ir_graph *irg = current_ir_graph;
        ir_node  *res = new_ir_node(db, irg, block, op_SymConst, mode, 0, NULL);
 
@@ -310,8 +306,7 @@ new_bd_SymConst_type(dbg_info *db, ir_node *block, ir_mode *mode,
        return res;
 }  /* new_bd_SymConst_type */
 
-static ir_node *
-new_bd_Sync(dbg_info *db, ir_node *block)
+static ir_node *new_bd_Sync(dbg_info *db, ir_node *block)
 {
        ir_node  *res;
        ir_graph *irg = current_ir_graph;
@@ -323,8 +318,7 @@ new_bd_Sync(dbg_info *db, ir_node *block)
 }  /* new_bd_Sync */
 
 
-static ir_node *
-new_bd_EndReg(dbg_info *db, ir_node *block)
+static ir_node *new_bd_EndReg(dbg_info *db, ir_node *block)
 {
        ir_node  *res;
        ir_graph *irg = current_ir_graph;
@@ -335,8 +329,7 @@ new_bd_EndReg(dbg_info *db, ir_node *block)
        return res;
 }  /* new_bd_EndReg */
 
-static ir_node *
-new_bd_EndExcept(dbg_info *db, ir_node *block)
+static ir_node *new_bd_EndExcept(dbg_info *db, ir_node *block)
 {
        ir_node  *res;
        ir_graph *irg = current_ir_graph;
@@ -347,9 +340,11 @@ new_bd_EndExcept(dbg_info *db, ir_node *block)
        return res;
 }  /* new_bd_EndExcept */
 
-static ir_node *
-new_bd_ASM(dbg_info *db, ir_node *block, int arity, ir_node *in[], ir_asm_constraint *inputs,
-           int n_outs, ir_asm_constraint *outputs, int n_clobber, ident *clobber[], ident *asm_text) {
+static ir_node *new_bd_ASM(dbg_info *db, ir_node *block, int arity,
+                           ir_node *in[], ir_asm_constraint *inputs, int n_outs,
+                                ir_asm_constraint *outputs, int n_clobber,
+                                ident *clobber[], ident *asm_text)
+{
        ir_node  *res;
        ir_graph *irg = current_ir_graph;
 
@@ -373,8 +368,7 @@ new_bd_ASM(dbg_info *db, ir_node *block, int arity, ir_node *in[], ir_asm_constr
 /* private interfaces, for professional use only */
 /* --------------------------------------------- */
 
-ir_node *
-new_rd_Start(dbg_info *db, ir_graph *irg, ir_node *block)
+ir_node *new_rd_Start(dbg_info *db, ir_graph *irg, ir_node *block)
 {
        ir_graph *rem = current_ir_graph;
        ir_node  *res;
@@ -386,8 +380,7 @@ new_rd_Start(dbg_info *db, ir_graph *irg, ir_node *block)
        return res;
 }  /* new_rd_Start */
 
-ir_node *
-new_rd_End(dbg_info *db, ir_graph *irg, ir_node *block)
+ir_node *new_rd_End(dbg_info *db, ir_graph *irg, ir_node *block)
 {
        ir_node  *res;
        ir_graph *rem = current_ir_graph;
@@ -401,8 +394,7 @@ new_rd_End(dbg_info *db, ir_graph *irg, ir_node *block)
 
 /* Creates a Phi node with all predecessors.  Calling this constructor
    is only allowed if the corresponding block is mature.  */
-ir_node *
-new_rd_Phi(dbg_info *db, ir_node *block, int arity, ir_node **in, ir_mode *mode)
+ir_node *new_rd_Phi(dbg_info *db, ir_node *block, int arity, ir_node **in, ir_mode *mode)
 {
        ir_node  *res;
        ir_graph *rem = current_ir_graph;
@@ -414,8 +406,7 @@ new_rd_Phi(dbg_info *db, ir_node *block, int arity, ir_node **in, ir_mode *mode)
        return res;
 }  /* new_rd_Phi */
 
-ir_node *
-new_rd_Const_type(dbg_info *db, ir_graph *irg, tarval *con, ir_type *tp)
+ir_node *new_rd_Const_type(dbg_info *db, ir_graph *irg, tarval *con, ir_type *tp)
 {
        ir_node  *res;
        ir_graph *rem = current_ir_graph;
@@ -427,8 +418,7 @@ new_rd_Const_type(dbg_info *db, ir_graph *irg, tarval *con, ir_type *tp)
        return res;
 }  /* new_rd_Const_type */
 
-ir_node *
-new_rd_Const(dbg_info *db, ir_graph *irg, tarval *con)
+ir_node *new_rd_Const(dbg_info *db, ir_graph *irg, tarval *con)
 {
        ir_node  *res;
 //#ifdef USE_ORIGINAL
@@ -444,14 +434,12 @@ new_rd_Const(dbg_info *db, ir_graph *irg, tarval *con)
        return res;
 }  /* new_rd_Const */
 
-ir_node *
-new_rd_Const_long(dbg_info *db, ir_graph *irg, ir_mode *mode, long value)
+ir_node *new_rd_Const_long(dbg_info *db, ir_graph *irg, ir_mode *mode, long value)
 {
        return new_rd_Const(db, irg, new_tarval_from_long(value, mode));
 }  /* new_rd_Const_long */
 
-ir_node *
-new_rd_defaultProj(dbg_info *db, ir_node *block, ir_node *arg, long max_proj)
+ir_node *new_rd_defaultProj(dbg_info *db, ir_node *block, ir_node *arg, long max_proj)
 {
        ir_node  *res;
        ir_graph *rem = current_ir_graph;
@@ -463,9 +451,9 @@ new_rd_defaultProj(dbg_info *db, ir_node *block, ir_node *arg, long max_proj)
        return res;
 }  /* new_rd_defaultProj */
 
-ir_node *
-new_rd_simpleSel(dbg_info *db, ir_node *block,
-                 ir_node *store, ir_node *objptr, ir_entity *ent) {
+ir_node *new_rd_simpleSel(dbg_info *db, ir_node *block, ir_node *store,
+                          ir_node *objptr, ir_entity *ent)
+{
        ir_node  *res;
        ir_graph *rem = current_ir_graph;
 
@@ -476,9 +464,10 @@ new_rd_simpleSel(dbg_info *db, ir_node *block,
        return res;
 }  /* new_rd_simpleSel */
 
-ir_node *
-new_rd_SymConst_type(dbg_info *db, ir_graph *irg, ir_mode *mode,
-                     symconst_symbol value, symconst_kind symkind, ir_type *tp) {
+ir_node *new_rd_SymConst_type(dbg_info *db, ir_graph *irg, ir_mode *mode,
+                              symconst_symbol value, symconst_kind symkind,
+                              ir_type *tp)
+{
        ir_node  *res;
        ir_graph *rem = current_ir_graph;
        ir_node  *block = get_irg_start_block(irg);
@@ -490,13 +479,14 @@ new_rd_SymConst_type(dbg_info *db, ir_graph *irg, ir_mode *mode,
        return res;
 }  /* new_rd_SymConst_type */
 
-ir_node *
-new_rd_SymConst(dbg_info *db, ir_graph *irg, ir_mode *mode,
-                symconst_symbol value, symconst_kind symkind) {
+ir_node *new_rd_SymConst(dbg_info *db, ir_graph *irg, ir_mode *mode,
+                         symconst_symbol value, symconst_kind symkind)
+{
        return new_rd_SymConst_type(db, irg, mode, value, symkind, firm_unknown_type);
 }  /* new_rd_SymConst */
 
- ir_node *new_rd_SymConst_addr_ent(dbg_info *db, ir_graph *irg, ir_mode *mode, ir_entity *symbol, ir_type *tp) {
+ir_node *new_rd_SymConst_addr_ent(dbg_info *db, ir_graph *irg, ir_mode *mode, ir_entity *symbol, ir_type *tp)
+{
        symconst_symbol sym;
        sym.entity_p = symbol;
        return new_rd_SymConst_type(db, irg, mode, sym, symconst_addr_ent, tp);
@@ -537,8 +527,7 @@ ir_node *new_rd_SymConst_align(dbg_info *db, ir_graph *irg, ir_mode *mode, ir_ty
        return new_rd_SymConst_type(db, irg, mode, sym, symconst_type_align, tp);
 }  /* new_rd_SymConst_align */
 
-ir_node *
-new_rd_Sync(dbg_info *db, ir_node *block, int arity, ir_node *in[])
+ir_node *new_rd_Sync(dbg_info *db, ir_node *block, int arity, ir_node *in[])
 {
        ir_node  *res;
        ir_graph *rem = current_ir_graph;
@@ -554,8 +543,7 @@ new_rd_Sync(dbg_info *db, ir_node *block, int arity, ir_node *in[])
        return res;
 }  /* new_rd_Sync */
 
-ir_node *
-new_rd_EndReg(dbg_info *db, ir_graph *irg, ir_node *block)
+ir_node *new_rd_EndReg(dbg_info *db, ir_graph *irg, ir_node *block)
 {
        ir_node *res;
 
@@ -565,8 +553,7 @@ new_rd_EndReg(dbg_info *db, ir_graph *irg, ir_node *block)
        return res;
 }  /* new_rd_EndReg */
 
-ir_node *
-new_rd_EndExcept(dbg_info *db, ir_graph *irg, ir_node *block)
+ir_node *new_rd_EndExcept(dbg_info *db, ir_graph *irg, ir_node *block)
 {
        ir_node *res;
 
@@ -657,8 +644,7 @@ ir_node *new_r_ASM(ir_node *block,
 /** public interfaces  */
 /** construction tools */
 
-ir_node *
-new_d_Start(dbg_info *db)
+ir_node *new_d_Start(dbg_info *db)
 {
        ir_node *res;
 
@@ -670,8 +656,7 @@ new_d_Start(dbg_info *db)
        return res;
 }  /* new_d_Start */
 
-ir_node *
-new_d_End(dbg_info *db)
+ir_node *new_d_End(dbg_info *db)
 {
        ir_node *res;
        res = new_ir_node(db, current_ir_graph,  current_ir_graph->current_block,
@@ -709,8 +694,7 @@ new_d_End(dbg_info *db)
 * *************************************************************************** */
 
 /** Creates a Phi node with 0 predecessors. */
-static inline ir_node *
-new_rd_Phi0(ir_graph *irg, ir_node *block, ir_mode *mode)
+static inline ir_node *new_rd_Phi0(ir_graph *irg, ir_node *block, ir_mode *mode)
 {
        ir_node *res;
 
@@ -731,9 +715,10 @@ new_rd_Phi0(ir_graph *irg, ir_node *block, ir_mode *mode)
  * @param phi0   in non-NULL: the Phi0 node in the same block that represents
  *               the value for which the new Phi is constructed
  */
-static inline ir_node *
-new_rd_Phi_in(ir_graph *irg, ir_node *block, ir_mode *mode,
-              ir_node **in, int ins, ir_node *phi0) {
+static inline ir_node *new_rd_Phi_in(ir_graph *irg, ir_node *block,
+                                     ir_mode *mode, ir_node **in, int ins,
+                                     ir_node *phi0)
+{
        int i;
        ir_node *res, *known;
 
@@ -797,11 +782,9 @@ new_rd_Phi_in(ir_graph *irg, ir_node *block, ir_mode *mode,
        return res;
 }  /* new_rd_Phi_in */
 
-static ir_node *
-get_r_value_internal(ir_node *block, int pos, ir_mode *mode);
+static ir_node *get_r_value_internal(ir_node *block, int pos, ir_mode *mode);
 
-static ir_node *
-phi_merge(ir_node *block, int pos, ir_mode *mode, ir_node **nin, int ins);
+static ir_node *phi_merge(ir_node *block, int pos, ir_mode *mode, ir_node **nin, int ins);
 
 /**
  * Construct a new frag_array for node n.
@@ -863,8 +846,7 @@ static inline ir_node **get_frag_arr(ir_node *n)
        }
 }  /* get_frag_arr */
 
-static void
-set_frag_value(ir_node **frag_arr, int pos, ir_node *val)
+static void set_frag_value(ir_node **frag_arr, int pos, ir_node *val)
 {
 #ifdef DEBUG_libfirm
        int i;
@@ -886,8 +868,8 @@ set_frag_value(ir_node **frag_arr, int pos, ir_node *val)
        assert(!"potential endless recursion in set_frag_value");
 }  /* set_frag_value */
 
-static ir_node *
-get_r_frag_value_internal(ir_node *block, ir_node *cfOp, int pos, ir_mode *mode)
+static ir_node *get_r_frag_value_internal(ir_node *block, ir_node *cfOp,
+                                          int pos, ir_mode *mode)
 {
        ir_node *res;
        ir_node **frag_arr;
@@ -957,8 +939,7 @@ static int is_exception_flow(ir_node *cf_pred, ir_node *prev_cf_op)
  * node might optimize it away and return a real value.
  * This function must be called with an in-array of proper size.
  */
-static ir_node *
-phi_merge(ir_node *block, int pos, ir_mode *mode, ir_node **nin, int ins)
+static ir_node *phi_merge(ir_node *block, int pos, ir_mode *mode, ir_node **nin, int ins)
 {
        ir_node *prevBlock, *res, *phi0, *phi0_all;
        int i;
@@ -1076,8 +1057,7 @@ phi_merge(ir_node *block, int pos, ir_mode *mode, ir_node **nin, int ins)
  * @param pos     the value number of the value searched
  * @param mode    the mode of this value (needed for Phi construction)
  */
-static ir_node *
-get_r_value_internal(ir_node *block, int pos, ir_mode *mode)
+static ir_node *get_r_value_internal(ir_node *block, int pos, ir_mode *mode)
 {
        ir_node *res;
        /* There are 4 cases to treat.
@@ -1165,8 +1145,7 @@ get_r_value_internal(ir_node *block, int pos, ir_mode *mode)
  * Finalize a Block node, when all control flows are known.
  * Acceptable parameters are only Block nodes.
  */
-void
-mature_immBlock(ir_node *block)
+void mature_immBlock(ir_node *block)
 {
        int ins;
        ir_node *n, **nin;
@@ -1205,33 +1184,28 @@ mature_immBlock(ir_node *block)
        }
 }  /* mature_immBlock */
 
-ir_node *
-new_d_Phi(dbg_info *db, int arity, ir_node **in, ir_mode *mode)
+ir_node *new_d_Phi(dbg_info *db, int arity, ir_node **in, ir_mode *mode)
 {
        return new_bd_Phi(db, current_ir_graph->current_block, arity, in, mode);
 }  /* new_d_Phi */
 
-ir_node *
-new_d_Const(dbg_info *db, tarval *con)
+ir_node *new_d_Const(dbg_info *db, tarval *con)
 {
        return new_bd_Const(db, con);
 }  /* new_d_Const */
 
-ir_node *
-new_d_Const_long(dbg_info *db, ir_mode *mode, long value)
+ir_node *new_d_Const_long(dbg_info *db, ir_mode *mode, long value)
 {
        return new_bd_Const_long(db, mode, value);
 }  /* new_d_Const_long */
 
-ir_node *
-new_d_Const_type(dbg_info *db, tarval *con, ir_type *tp)
+ir_node *new_d_Const_type(dbg_info *db, tarval *con, ir_type *tp)
 {
        return new_bd_Const_type(db, con, tp);
 }  /* new_d_Const_type */
 
 
-ir_node *
-new_d_defaultProj(dbg_info *db, ir_node *arg, long max_proj)
+ir_node *new_d_defaultProj(dbg_info *db, ir_node *arg, long max_proj)
 {
        ir_node *res;
        assert(arg->op == op_Cond);
@@ -1260,8 +1234,7 @@ void firm_alloc_frag_arr(ir_node *irn, ir_op *op, ir_node ***frag_store)
        }
 }  /* firm_alloc_frag_arr */
 
-ir_node *
-new_d_simpleSel(dbg_info *db, ir_node *store, ir_node *objptr, ir_entity *ent)
+ir_node *new_d_simpleSel(dbg_info *db, ir_node *store, ir_node *objptr, ir_entity *ent)
 /* GL: objptr was called frame before.  Frame was a bad choice for the name
    as the operand could as well be a pointer to a dynamic object. */
 {
@@ -1269,43 +1242,38 @@ new_d_simpleSel(dbg_info *db, ir_node *store, ir_node *objptr, ir_entity *ent)
                          store, objptr, 0, NULL, ent);
 }  /* new_d_simpleSel */
 
-ir_node *
-new_d_SymConst_type(dbg_info *db, ir_mode *mode, symconst_symbol value, symconst_kind kind, ir_type *tp)
+ir_node *new_d_SymConst_type(dbg_info *db, ir_mode *mode, symconst_symbol value, symconst_kind kind, ir_type *tp)
 {
        return new_bd_SymConst_type(db, get_irg_start_block(current_ir_graph), mode,
                                    value, kind, tp);
 }  /* new_d_SymConst_type */
 
-ir_node *
-new_d_SymConst(dbg_info *db, ir_mode *mode, symconst_symbol value, symconst_kind kind)
+ir_node *new_d_SymConst(dbg_info *db, ir_mode *mode, symconst_symbol value, symconst_kind kind)
 {
        return new_bd_SymConst_type(db, get_irg_start_block(current_ir_graph), mode,
                                    value, kind, firm_unknown_type);
 }  /* new_d_SymConst */
 
-ir_node *
-new_d_Sync(dbg_info *db, int arity, ir_node *in[])
+ir_node *new_d_Sync(dbg_info *db, int arity, ir_node *in[])
 {
        return new_rd_Sync(db, current_ir_graph->current_block, arity, in);
 }  /* new_d_Sync */
 
-ir_node *
-new_d_EndReg(dbg_info *db)
+ir_node *new_d_EndReg(dbg_info *db)
 {
        return new_bd_EndReg(db, current_ir_graph->current_block);
 }  /* new_d_EndReg */
 
-ir_node *
-new_d_EndExcept(dbg_info *db)
+ir_node *new_d_EndExcept(dbg_info *db)
 {
        return new_bd_EndExcept(db, current_ir_graph->current_block);
 }  /* new_d_EndExcept */
 
 
-ir_node *
-new_d_ASM(dbg_info *db, int arity, ir_node *in[], ir_asm_constraint *inputs,
-          int n_outs, ir_asm_constraint *outputs,
-          int n_clobber, ident *clobber[], ident *asm_text) {
+ir_node *new_d_ASM(dbg_info *db, int arity, ir_node *in[], ir_asm_constraint *inputs,
+                   int n_outs, ir_asm_constraint *outputs, int n_clobber,
+                   ident *clobber[], ident *asm_text)
+{
        return new_bd_ASM(db, current_ir_graph->current_block, arity, in, inputs, n_outs, outputs, n_clobber, clobber, asm_text);
 }  /* new_d_ASM */
 
@@ -1316,8 +1284,7 @@ new_d_ASM(dbg_info *db, int arity, ir_node *in[], ir_asm_constraint *inputs,
 
 /*  Block construction */
 /* immature Block without predecessors */
-ir_node *
-new_d_immBlock(dbg_info *db)
+ir_node *new_d_immBlock(dbg_info *db)
 {
        ir_node *res;
 
@@ -1353,15 +1320,13 @@ new_d_immBlock(dbg_info *db)
        return res;
 }  /* new_d_immBlock */
 
-ir_node *
-new_immBlock(void)
+ir_node *new_immBlock(void)
 {
        return new_d_immBlock(NULL);
 }  /* new_immBlock */
 
 /* immature PartBlock with its predecessors */
-ir_node *
-new_d_immPartBlock(dbg_info *db, ir_node *pred_jmp)
+ir_node *new_d_immPartBlock(dbg_info *db, ir_node *pred_jmp)
 {
        ir_node *res = new_d_immBlock(db);
        ir_node *blk = get_nodes_block(pred_jmp);
@@ -1376,15 +1341,13 @@ new_d_immPartBlock(dbg_info *db, ir_node *pred_jmp)
        return res;
 }  /* new_d_immPartBlock */
 
-ir_node *
-new_immPartBlock(ir_node *pred_jmp)
+ir_node *new_immPartBlock(ir_node *pred_jmp)
 {
        return new_d_immPartBlock(NULL, pred_jmp);
 }  /* new_immPartBlock */
 
 /* add an edge to a jmp/control flow node */
-void
-add_immBlock_pred(ir_node *block, ir_node *jmp)
+void add_immBlock_pred(ir_node *block, ir_node *jmp)
 {
        int n = ARR_LEN(block->in) - 1;
 
@@ -1398,8 +1361,7 @@ add_immBlock_pred(ir_node *block, ir_node *jmp)
 }  /* add_immBlock_pred */
 
 /* changing the current block */
-void
-set_cur_block(ir_node *target)
+void set_cur_block(ir_node *target)
 {
        current_ir_graph->current_block = target;
 }  /* set_cur_block */
@@ -1408,8 +1370,7 @@ set_cur_block(ir_node *target)
 /* parameter administration */
 
 /* get a value from the parameter array from the current block by its index */
-ir_node *
-get_d_value(dbg_info *db, int pos, ir_mode *mode)
+ir_node *get_d_value(dbg_info *db, int pos, ir_mode *mode)
 {
        ir_graph *irg = current_ir_graph;
        assert(get_irg_phase_state(irg) == phase_building);
@@ -1422,15 +1383,13 @@ get_d_value(dbg_info *db, int pos, ir_mode *mode)
 }  /* get_d_value */
 
 /* get a value from the parameter array from the current block by its index */
-ir_node *
-get_value(int pos, ir_mode *mode)
+ir_node *get_value(int pos, ir_mode *mode)
 {
        return get_d_value(NULL, pos, mode);
 }  /* get_value */
 
 /* set a value at position pos in the parameter array from the current block */
-void
-set_value(int pos, ir_node *value)
+void set_value(int pos, ir_node *value)
 {
        ir_graph *irg = current_ir_graph;
        assert(get_irg_phase_state(irg) == phase_building);
@@ -1441,8 +1400,7 @@ set_value(int pos, ir_node *value)
 }  /* set_value */
 
 /* Find the value number for a node in the current block.*/
-int
-find_value(ir_node *value)
+int find_value(ir_node *value)
 {
        int i;
        ir_node *bl = current_ir_graph->current_block;
@@ -1454,8 +1412,7 @@ find_value(ir_node *value)
 }  /* find_value */
 
 /* get the current store */
-ir_node *
-get_store(void)
+ir_node *get_store(void)
 {
        ir_graph *irg = current_ir_graph;
 
@@ -1466,8 +1423,7 @@ get_store(void)
 }  /* get_store */
 
 /* set the current store: handles automatic Sync construction for Load nodes */
-void
-set_store(ir_node *store)
+void set_store(ir_node *store)
 {
        ir_node *load, *pload, *pred, *in[2];
 
@@ -1505,8 +1461,7 @@ set_store(ir_node *store)
        current_ir_graph->current_block->attr.block.graph_arr[0] = store;
 }  /* set_store */
 
-void
-keep_alive(ir_node *ka)
+void keep_alive(ir_node *ka)
 {
        add_End_keepalive(get_irg_end(current_ir_graph), ka);
 }  /* keep_alive */
@@ -1530,14 +1485,12 @@ ir_type *get_cur_frame_type(void)
 /* initialize */
 
 /* call once for each run of the library */
-void
-firm_init_cons(uninitialized_local_variable_func_t *func)
+void firm_init_cons(uninitialized_local_variable_func_t *func)
 {
        default_initialize_local_variable = func;
 }  /* firm_init_cons */
 
-void
-irp_finalize_cons(void)
+void irp_finalize_cons(void)
 {
        int i;
        for (i = get_irp_n_irgs() - 1; i >= 0; --i) {
index 9e3ed06..8569d1b 100644 (file)
@@ -1120,8 +1120,7 @@ static const proj_lookup_t proj_lut[] = {
 /**
  * Dump additional node attributes of some nodes to a file F.
  */
-static int
-dump_node_nodeattr(FILE *F, ir_node *n)
+static int dump_node_nodeattr(FILE *F, ir_node *n)
 {
        int bad = 0;
        ir_node *pred;
@@ -1546,8 +1545,7 @@ static void dump_node(FILE *F, ir_node *n)
 }
 
 /** dump the edge to the block this node belongs to */
-static void
-dump_ir_block_edge(FILE *F, ir_node *n)
+static void dump_ir_block_edge(FILE *F, ir_node *n)
 {
        if (get_opt_dump_const_local() && is_constlike_node(n)) return;
        if (is_no_Block(n)) {
@@ -1577,8 +1575,7 @@ dump_ir_block_edge(FILE *F, ir_node *n)
        }
 }
 
-static void
-print_data_edge_vcgattr(FILE *F, ir_node *from, int to)
+static void print_data_edge_vcgattr(FILE *F, ir_node *from, int to)
 {
        /*
         * do not use get_nodes_block() here, will fail
@@ -1590,8 +1587,7 @@ print_data_edge_vcgattr(FILE *F, ir_node *from, int to)
                fprintf(F, INTER_DATA_EDGE_ATTR);
 }
 
-static void
-print_mem_edge_vcgattr(FILE *F, ir_node *from, int to)
+static void print_mem_edge_vcgattr(FILE *F, ir_node *from, int to)
 {
        /*
         * do not use get_nodes_block() here, will fail
@@ -1719,8 +1715,7 @@ static void dump_ir_data_edges(FILE *F, ir_node *n)
 /**
  * Dump the ir_edges
  */
-static void
-dump_ir_edges(FILE *F, ir_node *n)
+static void dump_ir_edges(FILE *F, ir_node *n)
 {
        const ir_edge_t *edge;
        int i = 0;
@@ -1841,8 +1836,7 @@ static void dump_whole_block(FILE *F, ir_node *block)
 
 /** dumps a graph block-wise. Expects all blockless nodes in arr in irgs link.
  *  The outermost nodes: blocks and nodes not op_pin_state_pinned, Bad, Unknown. */
-static void
-dump_block_graph(FILE *F, ir_graph *irg)
+static void dump_block_graph(FILE *F, ir_graph *irg)
 {
        int i;
        ir_graph *rem = current_ir_graph;
@@ -1907,8 +1901,7 @@ static void dump_graph_from_list(FILE *F, ir_graph *irg)
 
 /** dumps a graph extended block-wise. Expects all blockless nodes in arr in irgs link.
  *  The outermost nodes: blocks and nodes not op_pin_state_pinned, Bad, Unknown. */
-static void
-dump_extblock_graph(FILE *F, ir_graph *irg)
+static void dump_extblock_graph(FILE *F, ir_graph *irg)
 {
        int i;
        ir_graph *rem = current_ir_graph;
@@ -2239,8 +2232,7 @@ typedef struct _h_env {
  * Dumps a class type node and a superclass edge.
  * If env->dump_ent dumps entities of classes and overwrites edges.
  */
-static void
-dump_class_hierarchy_node(type_or_ent tore, void *ctx)
+static void dump_class_hierarchy_node(type_or_ent tore, void *ctx)
 {
        h_env_t *env = ctx;
        FILE *F = env->f;
@@ -2289,8 +2281,7 @@ dump_class_hierarchy_node(type_or_ent tore, void *ctx)
 /*******************************************************************/
 
 /* dump out edges */
-static void
-dump_out_edge(ir_node *n, void *env)
+static void dump_out_edge(ir_node *n, void *env)
 {
        FILE *F = env;
        int i;
@@ -2307,8 +2298,7 @@ dump_out_edge(ir_node *n, void *env)
        }
 }
 
-static inline void
-dump_loop_label(FILE *F, ir_loop *loop)
+static inline void dump_loop_label(FILE *F, ir_loop *loop)
 {
        fprintf(F, "loop %d, %d sons, %d nodes",
                get_loop_depth(loop), get_loop_n_sons(loop), get_loop_n_nodes(loop));
@@ -2324,8 +2314,7 @@ static inline void dump_loop_info(FILE *F, ir_loop *loop)
        fprintf(F, "\"");
 }
 
-static inline void
-dump_loop_node(FILE *F, ir_loop *loop)
+static inline void dump_loop_node(FILE *F, ir_loop *loop)
 {
        fprintf(F, "node: {title: \"");
        PRINT_LOOPID(loop);
@@ -2336,8 +2325,7 @@ dump_loop_node(FILE *F, ir_loop *loop)
        fprintf(F, "}\n");
 }
 
-static inline void
-dump_loop_node_edge(FILE *F, ir_loop *loop, int i)
+static inline void dump_loop_node_edge(FILE *F, ir_loop *loop, int i)
 {
        assert(loop);
        fprintf(F, "edge: {sourcename: \"");
@@ -2348,8 +2336,7 @@ dump_loop_node_edge(FILE *F, ir_loop *loop, int i)
        fprintf(F, "}\n");
 }
 
-static inline void
-dump_loop_son_edge(FILE *F, ir_loop *loop, int i)
+static inline void dump_loop_son_edge(FILE *F, ir_loop *loop, int i)
 {
        assert(loop);
        fprintf(F, "edge: {sourcename: \"");
@@ -2360,8 +2347,7 @@ dump_loop_son_edge(FILE *F, ir_loop *loop, int i)
                get_loop_element_pos(loop, get_loop_son(loop, i)));
 }
 
-static
-void dump_loops(FILE *F, ir_loop *loop)
+static void dump_loops(FILE *F, ir_loop *loop)
 {
        int i;
        /* dump this loop node */
@@ -2379,8 +2365,7 @@ void dump_loops(FILE *F, ir_loop *loop)
        }
 }
 
-static inline
-void dump_loop_nodes_into_graph(FILE *F, ir_graph *irg)
+static inline void dump_loop_nodes_into_graph(FILE *F, ir_graph *irg)
 {
        ir_loop *loop = get_irg_loop(irg);
 
@@ -2789,8 +2774,7 @@ void dump_ir_block_graph_w_types(ir_graph *irg, const char *suffix)
 /* The following routines dump a control flow graph.                   */
 /*---------------------------------------------------------------------*/
 
-static void
-dump_block_to_cfg(ir_node *block, void *env)
+static void dump_block_to_cfg(ir_node *block, void *env)
 {
        FILE *F = env;
        int i, fl = 0;
@@ -3008,8 +2992,7 @@ void dump_all_cg_block_graph(const char *suffix)
 /* the following routines dumps type information without any ir nodes. */
 /*---------------------------------------------------------------------*/
 
-void
-dump_type_graph(ir_graph *irg, const char *suffix)
+void dump_type_graph(ir_graph *irg, const char *suffix)
 {
        FILE *f;
 
@@ -3037,8 +3020,7 @@ dump_type_graph(ir_graph *irg, const char *suffix)
        }
 }
 
-void
-dump_all_types(const char *suffix)
+void dump_all_types(const char *suffix)
 {
        FILE *f = vcg_open_name("All_types", suffix);
        if (f != NULL) {
@@ -3051,8 +3033,7 @@ dump_all_types(const char *suffix)
        }
 }
 
-void
-dump_class_hierarchy(int entities, const char *suffix)
+void dump_class_hierarchy(int entities, const char *suffix)
 {
        FILE *f = vcg_open_name("class_hierarchy", suffix);
 
index e385646..4c07c8b 100644 (file)
@@ -103,8 +103,7 @@ const char *get_mode_name_ex(const ir_mode *mode, int *bad);
 /**
  * dump the name of a node n to the File F.
  */
-int
-dump_node_opcode(FILE *F, ir_node *n);
+int dump_node_opcode(FILE *F, ir_node *n);
 
 int dump_node_label(FILE *F, ir_node *n);
 
index ceb3b22..3801f2f 100644 (file)
@@ -92,12 +92,13 @@ static inline void set_##name##_running(int flag) {\
 #undef E_FLAG
 #undef R_FLAG
 
-static inline int _get_optimize(void) {
+static inline int _get_optimize(void)
+{
        return get_opt_optimize();
 }
 
-static inline firm_verification_t
-get_node_verification_mode(void) {
+static inline firm_verification_t get_node_verification_mode(void)
+{
        return opt_do_node_verification;
 }
 
index f2903ab..34e237b 100644 (file)
@@ -571,8 +571,8 @@ void free_ir_graph(ir_graph *irg)
    {attr type} get_irg_{attribute name} (ir_graph *irg);
    void set_irg_{attr name} (ir_graph *irg, {attr type} {attr}); */
 
-int
-(is_ir_graph)(const void *thing) {
+int (is_ir_graph)(const void *thing)
+{
        return _is_ir_graph(thing);
 }
 
@@ -599,164 +599,164 @@ ir_node *(get_idx_irn)(ir_graph *irg, unsigned idx)
        return _get_idx_irn(irg, idx);
 }
 
-ir_node *
-(get_irg_start_block)(const ir_graph *irg) {
+ir_node *(get_irg_start_block)(const ir_graph *irg)
+{
        return _get_irg_start_block(irg);
 }
 
-void
-(set_irg_start_block)(ir_graph *irg, ir_node *node) {
+void (set_irg_start_block)(ir_graph *irg, ir_node *node)
+{
        _set_irg_start_block(irg, node);
 }
 
-ir_node *
-(get_irg_start)(const ir_graph *irg) {
+ir_node *(get_irg_start)(const ir_graph *irg)
+{
        return _get_irg_start(irg);
 }
 
-void
-(set_irg_start)(ir_graph *irg, ir_node *node) {
+void (set_irg_start)(ir_graph *irg, ir_node *node)
+{
        _set_irg_start(irg, node);
 }
 
-ir_node *
-(get_irg_end_block)(const ir_graph *irg) {
+ir_node *(get_irg_end_block)(const ir_graph *irg)
+{
        return _get_irg_end_block(irg);
 }
 
-void
-(set_irg_end_block)(ir_graph *irg, ir_node *node) {
+void (set_irg_end_block)(ir_graph *irg, ir_node *node)
+{
   _set_irg_end_block(irg, node);
 }
 
-ir_node *
-(get_irg_end)(const ir_graph *irg) {
+ir_node *(get_irg_end)(const ir_graph *irg)
+{
        return _get_irg_end(irg);
 }
 
-void
-(set_irg_end)(ir_graph *irg, ir_node *node) {
+void (set_irg_end)(ir_graph *irg, ir_node *node)
+{
        _set_irg_end(irg, node);
 }
 
-ir_node *
-(get_irg_end_reg)(const ir_graph *irg) {
+ir_node *(get_irg_end_reg)(const ir_graph *irg)
+{
        return _get_irg_end_reg(irg);
 }
 
-void
-(set_irg_end_reg)(ir_graph *irg, ir_node *node) {
+void (set_irg_end_reg)(ir_graph *irg, ir_node *node)
+{
        _set_irg_end_reg(irg, node);
 }
 
-ir_node *
-(get_irg_end_except)(const ir_graph *irg) {
+ir_node *(get_irg_end_except)(const ir_graph *irg)
+{
        return _get_irg_end_except(irg);
 }
 
-void
-(set_irg_end_except)(ir_graph *irg, ir_node *node) {
+void (set_irg_end_except)(ir_graph *irg, ir_node *node)
+{
        assert(get_irn_op(node) == op_EndExcept || is_End(node));
        _set_irg_end_except(irg, node);
 }
 
-ir_node *
-(get_irg_initial_exec)(const ir_graph *irg) {
+ir_node *(get_irg_initial_exec)(const ir_graph *irg)
+{
        return _get_irg_initial_exec(irg);
 }
 
-void
-(set_irg_initial_exec)(ir_graph *irg, ir_node *node) {
+void (set_irg_initial_exec)(ir_graph *irg, ir_node *node)
+{
        _set_irg_initial_exec(irg, node);
 }
 
-ir_node *
-(get_irg_frame)(const ir_graph *irg) {
+ir_node *(get_irg_frame)(const ir_graph *irg)
+{
        return _get_irg_frame(irg);
 }
 
-void
-(set_irg_frame)(ir_graph *irg, ir_node *node) {
+void (set_irg_frame)(ir_graph *irg, ir_node *node)
+{
        _set_irg_frame(irg, node);
 }
 
-ir_node *
-(get_irg_tls)(const ir_graph *irg) {
+ir_node *(get_irg_tls)(const ir_graph *irg)
+{
        return _get_irg_tls(irg);
 }
 
-void
-(set_irg_tls)(ir_graph *irg, ir_node *node) {
+void (set_irg_tls)(ir_graph *irg, ir_node *node)
+{
        _set_irg_tls(irg, node);
 }
 
-ir_node *
-(get_irg_initial_mem)(const ir_graph *irg) {
+ir_node *(get_irg_initial_mem)(const ir_graph *irg)
+{
        return _get_irg_initial_mem(irg);
 }
 
-void
-(set_irg_initial_mem)(ir_graph *irg, ir_node *node) {
+void (set_irg_initial_mem)(ir_graph *irg, ir_node *node)
+{
        _set_irg_initial_mem(irg, node);
 }
 
-ir_node *
-(get_irg_args)(const ir_graph *irg) {
+ir_node *(get_irg_args)(const ir_graph *irg)
+{
        return _get_irg_args(irg);
 }
 
-void
-(set_irg_args)(ir_graph *irg, ir_node *node) {
+void (set_irg_args)(ir_graph *irg, ir_node *node)
+{
        _set_irg_args(irg, node);
 }
 
-ir_node *
-(get_irg_bad)(const ir_graph *irg) {
+ir_node *(get_irg_bad)(const ir_graph *irg)
+{
        return _get_irg_bad(irg);
 }
 
-void
-(set_irg_bad)(ir_graph *irg, ir_node *node) {
+void (set_irg_bad)(ir_graph *irg, ir_node *node)
+{
        _set_irg_bad(irg, node);
 }
 
-ir_node *
-(get_irg_no_mem)(const ir_graph *irg) {
+ir_node *(get_irg_no_mem)(const ir_graph *irg)
+{
        return _get_irg_no_mem(irg);
 }
 
-void
-(set_irg_no_mem)(ir_graph *irg, ir_node *node) {
+void (set_irg_no_mem)(ir_graph *irg, ir_node *node)
+{
        _set_irg_no_mem(irg, node);
 }
 
-ir_node *
-(get_irg_current_block)(const ir_graph *irg) {
+ir_node *(get_irg_current_block)(const ir_graph *irg)
+{
        return _get_irg_current_block(irg);
 }
 
-void
-(set_irg_current_block)(ir_graph *irg, ir_node *node) {
+void (set_irg_current_block)(ir_graph *irg, ir_node *node)
+{
        _set_irg_current_block(irg, node);
 }
 
-ir_entity *
-(get_irg_entity)(const ir_graph *irg) {
+ir_entity *(get_irg_entity)(const ir_graph *irg)
+{
        return _get_irg_entity(irg);
 }
 
-void
-(set_irg_entity)(ir_graph *irg, ir_entity *ent) {
+void (set_irg_entity)(ir_graph *irg, ir_entity *ent)
+{
        _set_irg_entity(irg, ent);
 }
 
-ir_type *
-(get_irg_frame_type)(ir_graph *irg) {
+ir_type *(get_irg_frame_type)(ir_graph *irg)
+{
        return _get_irg_frame_type(irg);
 }
 
-void
-(set_irg_frame_type)(ir_graph *irg, ir_type *ftp) {
+void (set_irg_frame_type)(ir_graph *irg, ir_type *ftp)
+{
        _set_irg_frame_type(irg, ftp);
 }
 
@@ -768,8 +768,7 @@ ir_type *get_irg_value_param_type(ir_graph *irg)
        return get_method_value_param_type(mtp);
 }
 
-int
-get_irg_n_locs(ir_graph *irg)
+int get_irg_n_locs(ir_graph *irg)
 {
        if (get_opt_precise_exc_context())
                return irg->n_loc - 1 - 1;
@@ -777,8 +776,7 @@ get_irg_n_locs(ir_graph *irg)
                return irg->n_loc - 1;
 }
 
-void
-set_irg_n_loc(ir_graph *irg, int n_loc)
+void set_irg_n_loc(ir_graph *irg, int n_loc)
 {
        if (get_opt_precise_exc_context())
                irg->n_loc = n_loc + 1 + 1;
@@ -815,68 +813,68 @@ int node_is_in_irgs_storage(ir_graph *irg, ir_node *n)
        return 0;
 }
 
-irg_phase_state
-(get_irg_phase_state)(const ir_graph *irg) {
+irg_phase_state (get_irg_phase_state)(const ir_graph *irg)
+{
        return _get_irg_phase_state(irg);
 }
 
-void
-(set_irg_phase_state)(ir_graph *irg, irg_phase_state state) {
+void (set_irg_phase_state)(ir_graph *irg, irg_phase_state state)
+{
        _set_irg_phase_state(irg, state);
 }
 
-op_pin_state
-(get_irg_pinned)(const ir_graph *irg) {
+op_pin_state (get_irg_pinned)(const ir_graph *irg)
+{
        return _get_irg_pinned(irg);
 }
 
-irg_outs_state
-(get_irg_outs_state)(const ir_graph *irg) {
+irg_outs_state (get_irg_outs_state)(const ir_graph *irg)
+{
        return _get_irg_outs_state(irg);
 }
 
-void
-(set_irg_outs_inconsistent)(ir_graph *irg) {
+void (set_irg_outs_inconsistent)(ir_graph *irg)
+{
        _set_irg_outs_inconsistent(irg);
 }
 
-irg_extblk_state
-(get_irg_extblk_state)(const ir_graph *irg) {
+irg_extblk_state (get_irg_extblk_state)(const ir_graph *irg)
+{
        return _get_irg_extblk_state(irg);
 }
 
-void
-(set_irg_extblk_inconsistent)(ir_graph *irg) {
+void (set_irg_extblk_inconsistent)(ir_graph *irg)
+{
        _set_irg_extblk_inconsistent(irg);
 }
 
-irg_dom_state
-(get_irg_dom_state)(const ir_graph *irg) {
+irg_dom_state (get_irg_dom_state)(const ir_graph *irg)
+{
        return _get_irg_dom_state(irg);
 }
 
-irg_dom_state
-(get_irg_postdom_state)(const ir_graph *irg) {
+irg_dom_state (get_irg_postdom_state)(const ir_graph *irg)
+{
        return _get_irg_postdom_state(irg);
 }
 
-void
-(set_irg_doms_inconsistent)(ir_graph *irg) {
+void (set_irg_doms_inconsistent)(ir_graph *irg)
+{
        _set_irg_doms_inconsistent(irg);
 }
 
-irg_loopinfo_state
-(get_irg_loopinfo_state)(const ir_graph *irg) {
+irg_loopinfo_state (get_irg_loopinfo_state)(const ir_graph *irg)
+{
        return _get_irg_loopinfo_state(irg);
 }
 
-void
-(set_irg_loopinfo_state)(ir_graph *irg, irg_loopinfo_state s) {
+void (set_irg_loopinfo_state)(ir_graph *irg, irg_loopinfo_state s)
+{
        _set_irg_loopinfo_state(irg, s);
 }
 
-void
-(set_irg_loopinfo_inconsistent)(ir_graph *irg) {
+void (set_irg_loopinfo_inconsistent)(ir_graph *irg)
+{
        _set_irg_loopinfo_inconsistent(irg);
 }
 
@@ -890,58 +888,58 @@ void set_irp_loopinfo_inconsistent(void)
 
 
 
-void
-(set_irg_pinned)(ir_graph *irg, op_pin_state p) {
+void (set_irg_pinned)(ir_graph *irg, op_pin_state p)
+{
        _set_irg_pinned(irg, p);
 }
 
-irg_callee_info_state
-(get_irg_callee_info_state)(const ir_graph *irg) {
+irg_callee_info_state (get_irg_callee_info_state)(const ir_graph *irg)
+{
        return _get_irg_callee_info_state(irg);
 }
 
-void
-(set_irg_callee_info_state)(ir_graph *irg, irg_callee_info_state s) {
+void (set_irg_callee_info_state)(ir_graph *irg, irg_callee_info_state s)
+{
        _set_irg_callee_info_state(irg, s);
 }
 
-irg_inline_property
-(get_irg_inline_property)(const ir_graph *irg) {
+irg_inline_property (get_irg_inline_property)(const ir_graph *irg)
+{
        return _get_irg_inline_property(irg);
 }
 
-void
-(set_irg_inline_property)(ir_graph *irg, irg_inline_property s) {
+void (set_irg_inline_property)(ir_graph *irg, irg_inline_property s)
+{
        _set_irg_inline_property(irg, s);
 }
 
-unsigned
-(get_irg_additional_properties)(const ir_graph *irg) {
+unsigned (get_irg_additional_properties)(const ir_graph *irg)
+{
        return _get_irg_additional_properties(irg);
 }
 
-void
-(set_irg_additional_properties)(ir_graph *irg, unsigned property_mask) {
+void (set_irg_additional_properties)(ir_graph *irg, unsigned property_mask)
+{
        _set_irg_additional_properties(irg, property_mask);
 }
 
-void
-(set_irg_additional_property)(ir_graph *irg, mtp_additional_property flag) {
+void (set_irg_additional_property)(ir_graph *irg, mtp_additional_property flag)
+{
        _set_irg_additional_property(irg, flag);
 }
 
-void
-(set_irg_link)(ir_graph *irg, void *thing) {
+void (set_irg_link)(ir_graph *irg, void *thing)
+{
        _set_irg_link(irg, thing);
 }
 
-void *
-(get_irg_link)(const ir_graph *irg) {
+void *(get_irg_link)(const ir_graph *irg)
+{
        return _get_irg_link(irg);
 }
 
-ir_visited_t
-(get_irg_visited)(const ir_graph *irg) {
+ir_visited_t (get_irg_visited)(const ir_graph *irg)
+{
        return _get_irg_visited(irg);
 }
 
@@ -984,18 +982,18 @@ ir_visited_t inc_max_irg_visited(void)
        return ++max_irg_visited;
 }
 
-ir_visited_t
-(get_irg_block_visited)(const ir_graph *irg) {
+ir_visited_t (get_irg_block_visited)(const ir_graph *irg)
+{
        return _get_irg_block_visited(irg);
 }
 
-void
-(set_irg_block_visited)(ir_graph *irg, ir_visited_t visited) {
+void (set_irg_block_visited)(ir_graph *irg, ir_visited_t visited)
+{
        _set_irg_block_visited(irg, visited);
 }
 
-void
-(inc_irg_block_visited)(ir_graph *irg) {
+void (inc_irg_block_visited)(ir_graph *irg)
+{
   _inc_irg_block_visited(irg);
 }
 
index a743ea9..e0ade39 100644 (file)
@@ -100,264 +100,264 @@ int node_is_in_irgs_storage(ir_graph *irg, ir_node *n);
 /* inline functions for graphs                                       */
 /*-------------------------------------------------------------------*/
 
-static inline int
-_is_ir_graph(const void *thing) {
+static inline int _is_ir_graph(const void *thing)
+{
        return (get_kind(thing) == k_ir_graph);
 }
 
 /** Returns the start block of a graph. */
-static inline ir_node *
-_get_irg_start_block(const ir_graph *irg) {
+static inline ir_node *_get_irg_start_block(const ir_graph *irg)
+{
        return get_irn_intra_n(irg->anchor, anchor_start_block);
 }
 
-static inline void
-_set_irg_start_block(ir_graph *irg, ir_node *node) {
+static inline void _set_irg_start_block(ir_graph *irg, ir_node *node)
+{
        set_irn_n(irg->anchor, anchor_start_block, node);
 }
 
-static inline ir_node *
-_get_irg_start(const ir_graph *irg) {
+static inline ir_node *_get_irg_start(const ir_graph *irg)
+{
        return get_irn_intra_n(irg->anchor, anchor_start);
 }
 
-static inline void
-_set_irg_start(ir_graph *irg, ir_node *node) {
+static inline void _set_irg_start(ir_graph *irg, ir_node *node)
+{
        set_irn_n(irg->anchor, anchor_start, node);
 }
 
-static inline ir_node *
-_get_irg_end_block(const ir_graph *irg) {
+static inline ir_node *_get_irg_end_block(const ir_graph *irg)
+{
        return get_irn_intra_n(irg->anchor, anchor_end_block);
 }
 
-static inline void
-_set_irg_end_block(ir_graph *irg, ir_node *node) {
+static inline void _set_irg_end_block(ir_graph *irg, ir_node *node)
+{
        set_irn_n(irg->anchor, -1, node);
        set_irn_n(irg->anchor, anchor_end_block, node);
 }
 
-static inline ir_node *
-_get_irg_end(const ir_graph *irg) {
+static inline ir_node *_get_irg_end(const ir_graph *irg)
+{
        return get_irn_intra_n(irg->anchor, anchor_end);
 }
 
-static inline void
-_set_irg_end(ir_graph *irg, ir_node *node) {
+static inline void _set_irg_end(ir_graph *irg, ir_node *node)
+{
        set_irn_n(irg->anchor, anchor_end, node);
 }
 
-static inline ir_node *
-_get_irg_end_reg(const ir_graph *irg) {
+static inline ir_node *_get_irg_end_reg(const ir_graph *irg)
+{
        return get_irn_intra_n(irg->anchor, anchor_end_reg);
 }
 
-static inline void
-_set_irg_end_reg(ir_graph *irg, ir_node *node) {
+static inline void _set_irg_end_reg(ir_graph *irg, ir_node *node)
+{
        set_irn_n(irg->anchor, anchor_end_reg, node);
 }
 
-static inline ir_node *
-_get_irg_end_except(const ir_graph *irg) {
+static inline ir_node *_get_irg_end_except(const ir_graph *irg)
+{
        return get_irn_intra_n(irg->anchor, anchor_end_except);
 }
 
-static inline void
-_set_irg_end_except(ir_graph *irg, ir_node *node) {
+static inline void _set_irg_end_except(ir_graph *irg, ir_node *node)
+{
        set_irn_n(irg->anchor, anchor_end_except, node);
 }
 
-static inline ir_node *
-_get_irg_initial_exec(const ir_graph *irg) {
+static inline ir_node *_get_irg_initial_exec(const ir_graph *irg)
+{
        return get_irn_intra_n(irg->anchor, anchor_initial_exec);
 }
 
-static inline void
-_set_irg_initial_exec(ir_graph *irg, ir_node *node) {
+static inline void _set_irg_initial_exec(ir_graph *irg, ir_node *node)
+{
        set_irn_n(irg->anchor, anchor_initial_exec, node);
 }
 
-static inline ir_node *
-_get_irg_frame(const ir_graph *irg) {
+static inline ir_node *_get_irg_frame(const ir_graph *irg)
+{
        return get_irn_intra_n(irg->anchor, anchor_frame);
 }
 
-static inline void
-_set_irg_frame(ir_graph *irg, ir_node *node) {
+static inline void _set_irg_frame(ir_graph *irg, ir_node *node)
+{
        set_irn_n(irg->anchor, anchor_frame, node);
 }
 
-static inline ir_node *
-_get_irg_tls(const ir_graph *irg) {
+static inline ir_node *_get_irg_tls(const ir_graph *irg)
+{
        return get_irn_intra_n(irg->anchor, anchor_tls);
 }
 
-static inline void
-_set_irg_tls(ir_graph *irg, ir_node *node) {
+static inline void _set_irg_tls(ir_graph *irg, ir_node *node)
+{
        set_irn_n(irg->anchor, anchor_tls, node);
 }
 
-static inline ir_node *
-_get_irg_initial_mem(const ir_graph *irg) {
+static inline ir_node *_get_irg_initial_mem(const ir_graph *irg)
+{
        return get_irn_intra_n(irg->anchor, anchor_initial_mem);
 }
 
-static inline void
-_set_irg_initial_mem(ir_graph *irg, ir_node *node) {
+static inline void _set_irg_initial_mem(ir_graph *irg, ir_node *node)
+{
        set_irn_n(irg->anchor, anchor_initial_mem, node);
 }
 
-static inline ir_node *
-_get_irg_args(const ir_graph *irg) {
+static inline ir_node *_get_irg_args(const ir_graph *irg)
+{
        return get_irn_intra_n(irg->anchor, anchor_args);
 }
 
-static inline void
-_set_irg_args(ir_graph *irg, ir_node *node) {
+static inline void _set_irg_args(ir_graph *irg, ir_node *node)
+{
        set_irn_n(irg->anchor, anchor_args, node);
 }
 
-static inline ir_node *
-_get_irg_bad(const ir_graph *irg) {
+static inline ir_node *_get_irg_bad(const ir_graph *irg)
+{
        return get_irn_intra_n(irg->anchor, anchor_bad);
 }
 
-static inline void
-_set_irg_bad(ir_graph *irg, ir_node *node) {
+static inline void _set_irg_bad(ir_graph *irg, ir_node *node)
+{
        set_irn_n(irg->anchor, anchor_bad, node);
 }
 
-static inline ir_node *
-_get_irg_no_mem(const ir_graph *irg) {
+static inline ir_node * _get_irg_no_mem(const ir_graph *irg)
+{
        return get_irn_intra_n(irg->anchor, anchor_no_mem);
 }
 
-static inline void
-_set_irg_no_mem(ir_graph *irg, ir_node *node) {
+static inline void _set_irg_no_mem(ir_graph *irg, ir_node *node)
+{
        set_irn_n(irg->anchor, anchor_no_mem, node);
 }
 
-static inline ir_node *
-_get_irg_current_block(const ir_graph *irg) {
+static inline ir_node *_get_irg_current_block(const ir_graph *irg)
+{
        return irg->current_block;
 }
 
-static inline void
-_set_irg_current_block(ir_graph *irg, ir_node *node) {
+static inline void _set_irg_current_block(ir_graph *irg, ir_node *node)
+{
        irg->current_block = node;
 }
 
-static inline ir_entity *
-_get_irg_entity(const ir_graph *irg) {
+static inline ir_entity *_get_irg_entity(const ir_graph *irg)
+{
        assert(irg);
        return irg->ent;
 }
 
-static inline void
-_set_irg_entity(ir_graph *irg, ir_entity *ent) {
+static inline void _set_irg_entity(ir_graph *irg, ir_entity *ent)
+{
        irg->ent = ent;
 }
 
-static inline ir_type *
-_get_irg_frame_type(ir_graph *irg) {
+static inline ir_type *_get_irg_frame_type(ir_graph *irg)
+{
        assert(irg->frame_type);
        return irg->frame_type;
 }
 
-static inline void
-_set_irg_frame_type(ir_graph *irg, ir_type *ftp) {
+static inline void _set_irg_frame_type(ir_graph *irg, ir_type *ftp)
+{
        assert(is_frame_type(ftp));
        irg->frame_type = ftp;
 }
 
-static inline struct obstack *
-_get_irg_obstack(const ir_graph *irg) {
+static inline struct obstack *_get_irg_obstack(const ir_graph *irg)
+{
        return irg->obst;
 }
 
 
-static inline irg_phase_state
-_get_irg_phase_state(const ir_graph *irg) {
+static inline irg_phase_state _get_irg_phase_state(const ir_graph *irg)
+{
        return irg->phase_state;
 }
 
-static inline void
-_set_irg_phase_state(ir_graph *irg, irg_phase_state state) {
+static inline void _set_irg_phase_state(ir_graph *irg, irg_phase_state state)
+{
        irg->phase_state = state;
 }
 
-static inline op_pin_state
-_get_irg_pinned(const ir_graph *irg) {
+static inline op_pin_state _get_irg_pinned(const ir_graph *irg)
+{
        return irg->irg_pinned_state;
 }
 
-static inline irg_outs_state
-_get_irg_outs_state(const ir_graph *irg) {
+static inline irg_outs_state _get_irg_outs_state(const ir_graph *irg)
+{
        return irg->outs_state;
 }
 
-static inline void
-_set_irg_outs_inconsistent(ir_graph *irg) {
+static inline void _set_irg_outs_inconsistent(ir_graph *irg)
+{
        if (irg->outs_state == outs_consistent)
                irg->outs_state = outs_inconsistent;
 }
 
-static inline irg_extblk_state
-_get_irg_extblk_state(const ir_graph *irg) {
+static inline irg_extblk_state _get_irg_extblk_state(const ir_graph *irg)
+{
   return irg->extblk_state;
 }
 
-static inline void
-_set_irg_extblk_inconsistent(ir_graph *irg) {
+static inline void _set_irg_extblk_inconsistent(ir_graph *irg)
+{
        if (irg->extblk_state == extblk_valid)
                irg->extblk_state = extblk_invalid;
 }
 
-static inline irg_dom_state
-_get_irg_dom_state(const ir_graph *irg) {
+static inline irg_dom_state _get_irg_dom_state(const ir_graph *irg)
+{
        return irg->dom_state;
 }
 
-static inline irg_dom_state
-_get_irg_postdom_state(const ir_graph *irg) {
+static inline irg_dom_state _get_irg_postdom_state(const ir_graph *irg)
+{
        return irg->pdom_state;
 }
 
-static inline void
-_set_irg_doms_inconsistent(ir_graph *irg) {
+static inline void _set_irg_doms_inconsistent(ir_graph *irg)
+{
        if (irg->dom_state != dom_none)
                irg->dom_state = dom_inconsistent;
        if (irg->pdom_state != dom_none)
                irg->pdom_state = dom_inconsistent;
 }
 
-static inline irg_loopinfo_state
-_get_irg_loopinfo_state(const ir_graph *irg) {
+static inline irg_loopinfo_state _get_irg_loopinfo_state(const ir_graph *irg)
+{
        return irg->loopinfo_state;
 }
 
-static inline void
-_set_irg_loopinfo_state(ir_graph *irg, irg_loopinfo_state s) {
+static inline void _set_irg_loopinfo_state(ir_graph *irg, irg_loopinfo_state s)
+{
   irg->loopinfo_state = s;
 }
 
-static inline void
-_set_irg_loopinfo_inconsistent(ir_graph *irg) {
+static inline void _set_irg_loopinfo_inconsistent(ir_graph *irg)
+{
        irg->loopinfo_state &= ~loopinfo_valid;
 }
 
-static inline void
-_set_irg_pinned(ir_graph *irg, op_pin_state p) {
+static inline void _set_irg_pinned(ir_graph *irg, op_pin_state p)
+{
        irg->irg_pinned_state = p;
 }
 
-static inline irg_callee_info_state
-_get_irg_callee_info_state(const ir_graph *irg) {
+static inline irg_callee_info_state _get_irg_callee_info_state(const ir_graph *irg)
+{
        return irg->callee_info_state;
 }
 
-static inline void
-_set_irg_callee_info_state(ir_graph *irg, irg_callee_info_state s) {
+static inline void _set_irg_callee_info_state(ir_graph *irg, irg_callee_info_state s)
+{
        irg_callee_info_state irp_state = get_irp_callee_info_state();
 
        irg->callee_info_state = s;
@@ -368,30 +368,30 @@ _set_irg_callee_info_state(ir_graph *irg, irg_callee_info_state s) {
                set_irp_callee_info_state(s);
 }
 
-static inline irg_inline_property
-_get_irg_inline_property(const ir_graph *irg) {
+static inline irg_inline_property _get_irg_inline_property(const ir_graph *irg)
+{
        return irg->inline_property;
 }
 
-static inline void
-_set_irg_inline_property(ir_graph *irg, irg_inline_property s) {
+static inline void _set_irg_inline_property(ir_graph *irg, irg_inline_property s)
+{
        irg->inline_property = s;
 }
 
-static inline unsigned
-_get_irg_additional_properties(const ir_graph *irg) {
+static inline unsigned _get_irg_additional_properties(const ir_graph *irg)
+{
        if (irg->additional_properties & mtp_property_inherited)
                return get_method_additional_properties(get_entity_type(irg->ent));
        return irg->additional_properties;
 }
 
-static inline void
-_set_irg_additional_properties(ir_graph *irg, unsigned mask) {
+static inline void _set_irg_additional_properties(ir_graph *irg, unsigned mask)
+{
        irg->additional_properties = mask & ~mtp_property_inherited;
 }
 
-static inline void
-_set_irg_additional_property(ir_graph *irg, mtp_additional_property flag) {
+static inline void _set_irg_additional_property(ir_graph *irg, mtp_additional_property flag)
+{
        unsigned prop = irg->additional_properties;
 
        if (prop & mtp_property_inherited)
@@ -399,49 +399,49 @@ _set_irg_additional_property(ir_graph *irg, mtp_additional_property flag) {
        irg->additional_properties = prop | flag;
 }
 
-static inline void
-_set_irg_link(ir_graph *irg, void *thing) {
+static inline void _set_irg_link(ir_graph *irg, void *thing)
+{
        irg->link = thing;
 }
 
-static inline void *
-_get_irg_link(const ir_graph *irg) {
+static inline void *_get_irg_link(const ir_graph *irg)
+{
        return irg->link;
 }
 
-static inline ir_visited_t
-_get_irg_visited(const ir_graph *irg) {
+static inline ir_visited_t _get_irg_visited(const ir_graph *irg)
+{
        return irg->visited;
 }
 
-static inline ir_visited_t
-_get_irg_block_visited(const ir_graph *irg) {
+static inline ir_visited_t _get_irg_block_visited(const ir_graph *irg)
+{
        return irg->block_visited;
 }
 
-static inline void
-_set_irg_block_visited(ir_graph *irg, ir_visited_t visited) {
+static inline void _set_irg_block_visited(ir_graph *irg, ir_visited_t visited)
+{
        irg->block_visited = visited;
 }
 
-static inline void
-_inc_irg_block_visited(ir_graph *irg) {
+static inline void _inc_irg_block_visited(ir_graph *irg)
+{
        ++irg->block_visited;
 }
 
-static inline void
-_dec_irg_block_visited(ir_graph *irg) {
+static inline void _dec_irg_block_visited(ir_graph *irg)
+{
        --irg->block_visited;
 }
 
-static inline unsigned
-_get_irg_estimated_node_cnt(const ir_graph *irg) {
+static inline unsigned _get_irg_estimated_node_cnt(const ir_graph *irg)
+{
        return irg->estimated_node_count;
 }
 
 /* Return the floating point model of this graph. */
-static inline unsigned
-_get_irg_fp_model(const ir_graph *irg) {
+static inline unsigned _get_irg_fp_model(const ir_graph *irg)
+{
        return irg->fp_model;
 }
 
@@ -479,8 +479,8 @@ static inline unsigned irg_register_node_idx(ir_graph *irg, ir_node *irn) {
  * Kill a node from the irg. BEWARE: this kills
  * all later created nodes.
  */
-static inline void
-irg_kill_node(ir_graph *irg, ir_node *n) {
+static inline void irg_kill_node(ir_graph *irg, ir_node *n)
+{
        unsigned idx = get_irn_idx(n);
        assert(idx + 1 == irg->last_node_idx);
 
@@ -497,8 +497,8 @@ irg_kill_node(ir_graph *irg, ir_node *n) {
  * @return    The node with that index or NULL, if there is no node with that index.
  * @note      The node you got might be dead.
  */
-static inline ir_node *
-_get_idx_irn(ir_graph *irg, unsigned idx) {
+static inline ir_node *_get_idx_irn(ir_graph *irg, unsigned idx)
+{
        assert(idx < (unsigned) ARR_LEN(irg->idx_irn_map));
        return irg->idx_irn_map[idx];
 }
@@ -506,32 +506,32 @@ _get_idx_irn(ir_graph *irg, unsigned idx) {
 /**
  * Return the number of anchors in this graph.
  */
-static inline int
-get_irg_n_anchors(const ir_graph *irg) {
+static inline int get_irg_n_anchors(const ir_graph *irg)
+{
        return get_irn_arity(irg->anchor);
 }
 
 /**
  * Return anchor for given index
  */
-static inline ir_node *
-get_irg_anchor(const ir_graph *irg, int idx) {
+static inline ir_node *get_irg_anchor(const ir_graph *irg, int idx)
+{
        return get_irn_intra_n(irg->anchor, idx);
 }
 
 /**
  * Set anchor for given index
  */
-static inline void
-set_irg_anchor(ir_graph *irg, int idx, ir_node *irn) {
+static inline void set_irg_anchor(ir_graph *irg, int idx, ir_node *irn)
+{
        set_irn_n(irg->anchor, idx, irn);
 }
 
 #ifdef INTERPROCEDURAL_VIEW
 extern int firm_interprocedural_view;
 
-static inline int
-_get_interprocedural_view(void) {
+static inline int _get_interprocedural_view(void)
+{
        return firm_interprocedural_view;
 }
 
index e4093f8..4897941 100644 (file)
@@ -144,8 +144,7 @@ static void collect_irgs(ir_node * node, pset_new_t *irg_set)
  *
  * @return number of visited nodes
  */
-static unsigned
-irg_walk_2_pre(ir_node *node, irg_walk_func *pre, void * env)
+static unsigned irg_walk_2_pre(ir_node *node, irg_walk_func *pre, void * env)
 {
        int i;
        unsigned cnt = 1;
@@ -173,8 +172,7 @@ irg_walk_2_pre(ir_node *node, irg_walk_func *pre, void * env)
  *
  * @return number of visited nodes
  */
-static unsigned
-irg_walk_2_post(ir_node *node, irg_walk_func *post, void * env)
+static unsigned irg_walk_2_post(ir_node *node, irg_walk_func *post, void * env)
 {
        int i;
        unsigned cnt = 1;
@@ -203,8 +201,7 @@ irg_walk_2_post(ir_node *node, irg_walk_func *post, void * env)
  *
  * @return number of visited nodes
  */
-static unsigned
-irg_walk_2_both(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void * env)
+static unsigned irg_walk_2_both(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void * env)
 {
        int i;
        unsigned cnt = 1;
@@ -322,8 +319,7 @@ void all_irg_walk(irg_walk_func *pre, irg_walk_func *post, void *env)
  *
  * @return number of visited nodes
  */
-static unsigned
-irg_walk_in_or_dep_2_pre(ir_node *node, irg_walk_func *pre, void *env)
+static unsigned irg_walk_in_or_dep_2_pre(ir_node *node, irg_walk_func *pre, void *env)
 {
        int i;
        unsigned cnt = 1;
@@ -351,8 +347,7 @@ irg_walk_in_or_dep_2_pre(ir_node *node, irg_walk_func *pre, void *env)
  *
  * @return number of visited nodes
  */
-static unsigned
-irg_walk_in_or_dep_2_post(ir_node *node, irg_walk_func *post, void *env)
+static unsigned irg_walk_in_or_dep_2_post(ir_node *node, irg_walk_func *post, void *env)
 {
        int i;
        unsigned cnt = 1;
@@ -381,8 +376,7 @@ irg_walk_in_or_dep_2_post(ir_node *node, irg_walk_func *post, void *env)
  *
  * @return number of visited nodes
  */
-static unsigned
-irg_walk_in_or_dep_2_both(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void *env)
+static unsigned irg_walk_in_or_dep_2_both(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void *env)
 {
        int i;
        unsigned cnt = 1;
@@ -413,8 +407,7 @@ irg_walk_in_or_dep_2_both(ir_node *node, irg_walk_func *pre, irg_walk_func *post
  *
  * @return number of visited nodes
  */
-static unsigned
-irg_walk_in_or_dep_2(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void *env)
+static unsigned irg_walk_in_or_dep_2(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void *env)
 {
        if (node->visited < current_ir_graph->visited) {
                if      (! post) return irg_walk_in_or_dep_2_pre (node, pre, env);
@@ -461,8 +454,7 @@ void irg_walk_in_or_dep_graph(ir_graph *irg, irg_walk_func *pre, irg_walk_func *
  * Returns current_ir_graph and sets it to the irg of predecessor index
  * of node n.
  */
-static inline ir_graph *
-switch_irg(ir_node *n, int index)
+static inline ir_graph * switch_irg(ir_node *n, int index)
 {
        ir_graph *old_current = current_ir_graph;
 
@@ -482,8 +474,7 @@ switch_irg(ir_node *n, int index)
 }
 
 #ifdef INTERPROCEDURAL_VIEW
-static void
-cg_walk_2(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void * env)
+static void cg_walk_2(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void * env)
 {
        int i;
        ir_graph *rem = NULL;
index 176411f..ca98317 100644 (file)
@@ -411,9 +411,9 @@ static void collect_lists(blk_collect_data_t *env)
 /**
  * Intraprozedural graph walker over blocks.
  */
-static void
-do_irg_walk_blk(ir_graph *irg, irg_walk_func *pre, irg_walk_func *post, void *env, unsigned follow_deps,
-                void (*traverse)(blk_collect_data_t* blks, irg_walk_func *pre, irg_walk_func *post, void *env))
+static void do_irg_walk_blk(ir_graph *irg, irg_walk_func *pre,
+       irg_walk_func *post, void *env, unsigned follow_deps,
+       void (*traverse)(blk_collect_data_t* blks, irg_walk_func *pre, irg_walk_func *post, void *env))
 {
        ir_node            *end_node = get_irg_end(irg);
        ir_node            *end_blk = get_irg_end_block(irg);
index 0c510f8..4a7f4b1 100644 (file)
@@ -68,8 +68,7 @@ static ir_lnk_nodemap_entry_t null_nodemap_entry;
  * Resize the hashset
  * @internal
  */
-static
-void resize(HashSet *self, size_t new_size)
+static void resize(HashSet *self, size_t new_size)
 {
        HashSetEntry *old_entries = self->entries;
        HashSetEntry *new_entries;
index 1652174..c9b7c3b 100644 (file)
@@ -68,8 +68,7 @@ static ir_lnk_nodeset_entry_t null_nodeset_entry;
  * Resize the hashset
  * @internal
  */
-static
-void resize(HashSet *self, size_t new_size)
+static void resize(HashSet *self, size_t new_size)
 {
        HashSetEntry *old_entries = self->entries;
        HashSetEntry *new_entries;
index 334d12c..d6aae24 100644 (file)
  * ------------------------------- */
 extern ir_mode *mode_P_code, *mode_P_data;
 
-static inline ir_mode *
-_get_modeP_code(void) { return mode_P_code; }
+static inline ir_mode *_get_modeP_code(void) { return mode_P_code; }
 
-static inline ir_mode *
-_get_modeP_data(void) { return mode_P_data; }
+static inline ir_mode *_get_modeP_data(void) { return mode_P_data; }
 
-static inline ident *
-_get_mode_ident(const ir_mode *mode) { return mode->name; }
+static inline ident *_get_mode_ident(const ir_mode *mode) { return mode->name; }
 
-static inline ir_mode_sort
-_get_mode_sort(const ir_mode *mode) { return mode->sort; }
+static inline ir_mode_sort _get_mode_sort(const ir_mode *mode) { return mode->sort; }
 
-static inline unsigned
-_get_mode_size_bits(const ir_mode *mode) { return mode->size; }
+static inline unsigned _get_mode_size_bits(const ir_mode *mode) { return mode->size; }
 
-static inline unsigned
-_get_mode_size_bytes(const ir_mode *mode) {
+static inline unsigned _get_mode_size_bytes(const ir_mode *mode)
+{
        unsigned size = _get_mode_size_bits(mode);
        if ((size & 7) != 0) return (unsigned) -1;
        return size >> 3;
 }
 
-static inline int
-_get_mode_sign(const ir_mode *mode) { return mode->sign; }
+static inline int _get_mode_sign(const ir_mode *mode) { return mode->sign; }
 
-static inline ir_mode_arithmetic
-_get_mode_arithmetic(const ir_mode *mode) { return mode->arithmetic; }
+static inline ir_mode_arithmetic _get_mode_arithmetic(const ir_mode *mode) { return mode->arithmetic; }
 
-static inline unsigned int
-_get_mode_modulo_shift(const ir_mode *mode) { return mode->modulo_shift; }
+static inline unsigned int _get_mode_modulo_shift(const ir_mode *mode) { return mode->modulo_shift; }
 
-static inline unsigned int
-_get_mode_vector_elems(const ir_mode *mode) { return mode->vector_elem; }
+static inline unsigned int _get_mode_vector_elems(const ir_mode *mode) { return mode->vector_elem; }
 
-static inline void *
-_get_mode_link(const ir_mode *mode) { return mode->link; }
+static inline void * _get_mode_link(const ir_mode *mode) { return mode->link; }
 
-static inline void
-_set_mode_link(ir_mode *mode, void *l) { mode->link = l; }
+static inline void _set_mode_link(ir_mode *mode, void *l) { mode->link = l; }
 
 /* Functions to check, whether a mode is signed, float, int, num, data,
    datab or dataM. For more exact definitions read the corresponding pages
@@ -113,53 +102,53 @@ _set_mode_link(ir_mode *mode, void *l) { mode->link = l; }
             = {data || irm_M}
 */
 
-static inline int
-_mode_is_signed(const ir_mode *mode) {
+static inline int _mode_is_signed(const ir_mode *mode)
+{
        return mode->sign;
 }
 
-static inline int
-_mode_is_float(const ir_mode *mode) {
+static inline int _mode_is_float(const ir_mode *mode)
+{
        return (_get_mode_sort(mode) == irms_float_number);
 }
 
-static inline int
-_mode_is_int(const ir_mode *mode) {
+static inline int _mode_is_int(const ir_mode *mode)
+{
        return (_get_mode_sort(mode) == irms_int_number);
 }
 
-static inline int
-_mode_is_reference(const ir_mode *mode) {
+static inline int _mode_is_reference(const ir_mode *mode)
+{
        return (_get_mode_sort(mode) == irms_reference);
 }
 
-static inline int
-_mode_is_num(const ir_mode *mode) {
+static inline int _mode_is_num(const ir_mode *mode)
+{
        return (_get_mode_sort(mode) & irmsh_is_num);
 }
 
-static inline int
-_mode_is_data(const ir_mode *mode) {
+static inline int _mode_is_data(const ir_mode *mode)
+{
        return (_get_mode_sort(mode) & irmsh_is_data);
 }
 
-static inline int
-_mode_is_datab(const ir_mode *mode) {
+static inline int _mode_is_datab(const ir_mode *mode)
+{
        return (_get_mode_sort(mode) & irmsh_is_datab);
 }
 
-static inline int
-_mode_is_dataM(const ir_mode *mode) {
+static inline int _mode_is_dataM(const ir_mode *mode)
+{
        return (_get_mode_sort(mode) & irmsh_is_dataM);
 }
 
-static inline int
-_mode_is_float_vector(const ir_mode *mode) {
+static inline int _mode_is_float_vector(const ir_mode *mode)
+{
        return (_get_mode_sort(mode) == irms_float_number) && (_get_mode_vector_elems(mode) > 1);
 }
 
-static inline int
-_mode_is_int_vector(const ir_mode *mode) {
+static inline int _mode_is_int_vector(const ir_mode *mode)
+{
        return (_get_mode_sort(mode) == irms_int_number) && (_get_mode_vector_elems(mode) > 1);
 }
 
index 0b5cd33..6462ffc 100644 (file)
@@ -133,9 +133,8 @@ void init_irnode(void)
  * some incoming irnodes.
  * If arity is negative, a node with a dynamic array is created.
  */
-ir_node *
-new_ir_node(dbg_info *db, ir_graph *irg, ir_node *block, ir_op *op, ir_mode *mode,
-            int arity, ir_node **in)
+ir_node *new_ir_node(dbg_info *db, ir_graph *irg, ir_node *block, ir_op *op,
+                     ir_mode *mode, int arity, ir_node **in)
 {
        ir_node *res;
        size_t node_size = offsetof(ir_node, attr) + op->attr_size + firm_add_node_size;
@@ -1124,22 +1123,19 @@ void set_IJmp_target(ir_node *ijmp, ir_node *tgt)
        set_irn_n(ijmp, 0, tgt);
 }
 
-ir_node *
-get_Cond_selector(const ir_node *node)
+ir_node *get_Cond_selector(const ir_node *node)
 {
        assert(is_Cond(node));
        return get_irn_n(node, 0);
 }
 
-void
-set_Cond_selector(ir_node *node, ir_node *selector)
+void set_Cond_selector(ir_node *node, ir_node *selector)
 {
        assert(is_Cond(node));
        set_irn_n(node, 0, selector);
 }
 
-long
-get_Cond_default_proj(const ir_node *node)
+long get_Cond_default_proj(const ir_node *node)
 {
        assert(is_Cond(node));
        return node->attr.cond.default_proj;
@@ -1151,29 +1147,25 @@ void set_Cond_default_proj(ir_node *node, long defproj)
        node->attr.cond.default_proj = defproj;
 }
 
-ir_node *
-get_Return_mem(const ir_node *node)
+ir_node *get_Return_mem(const ir_node *node)
 {
        assert(is_Return(node));
        return get_irn_n(node, 0);
 }
 
-void
-set_Return_mem(ir_node *node, ir_node *mem)
+void set_Return_mem(ir_node *node, ir_node *mem)
 {
        assert(is_Return(node));
        set_irn_n(node, 0, mem);
 }
 
-int
-get_Return_n_ress(const ir_node *node)
+int get_Return_n_ress(const ir_node *node)
 {
        assert(is_Return(node));
        return (get_irn_arity(node) - RETURN_RESULT_OFFSET);
 }
 
-ir_node **
-get_Return_res_arr(ir_node *node)
+ir_node **get_Return_res_arr(ir_node *node)
 {
        assert(is_Return(node));
        if (get_Return_n_ress(node) > 0)
@@ -1183,23 +1175,20 @@ get_Return_res_arr(ir_node *node)
 }
 
 /*
-void
-set_Return_n_res(ir_node *node, int results)
+void set_Return_n_res(ir_node *node, int results)
 {
        assert(is_Return(node));
 }
 */
 
-ir_node *
-get_Return_res(const ir_node *node, int pos)
+ir_node *get_Return_res(const ir_node *node, int pos)
 {
        assert(is_Return(node));
        assert(get_Return_n_ress(node) > pos);
        return get_irn_n(node, pos + RETURN_RESULT_OFFSET);
 }
 
-void
-set_Return_res(ir_node *node, int pos, ir_node *res)
+void set_Return_res(ir_node *node, int pos, ir_node *res)
 {
        assert(is_Return(node));
        set_irn_n(node, pos + RETURN_RESULT_OFFSET, res);
@@ -1210,8 +1199,7 @@ tarval *(get_Const_tarval)(const ir_node *node)
        return _get_Const_tarval(node);
 }
 
-void
-set_Const_tarval(ir_node *node, tarval *con)
+void set_Const_tarval(ir_node *node, tarval *con)
 {
        assert(is_Const(node));
        node->attr.con.tv = con;
@@ -1236,15 +1224,13 @@ int (is_Const_all_one)(const ir_node *node)
 /* The source language type.  Must be an atomic type.  Mode of type must
    be mode of node. For tarvals from entities type must be pointer to
    entity type. */
-ir_type *
-get_Const_type(ir_node *node)
+ir_type *get_Const_type(ir_node *node)
 {
        assert(is_Const(node));
        return node->attr.con.tp;
 }
 
-void
-set_Const_type(ir_node *node, ir_type *tp)
+void set_Const_type(ir_node *node, ir_type *tp)
 {
        assert(is_Const(node));
        if (tp != firm_unknown_type) {
@@ -1255,22 +1241,19 @@ set_Const_type(ir_node *node, ir_type *tp)
 }
 
 
-symconst_kind
-get_SymConst_kind(const ir_node *node)
+symconst_kind get_SymConst_kind(const ir_node *node)
 {
        assert(is_SymConst(node));
        return node->attr.symc.kind;
 }
 
-void
-set_SymConst_kind(ir_node *node, symconst_kind kind)
+void set_SymConst_kind(ir_node *node, symconst_kind kind)
 {
        assert(is_SymConst(node));
        node->attr.symc.kind = kind;
 }
 
-ir_type *
-get_SymConst_type(const ir_node *node)
+ir_type *get_SymConst_type(const ir_node *node)
 {
        /* the cast here is annoying, but we have to compensate for
           the skip_tip() */
@@ -1280,23 +1263,20 @@ get_SymConst_type(const ir_node *node)
        return irn->attr.symc.sym.type_p;
 }
 
-void
-set_SymConst_type(ir_node *node, ir_type *tp)
+void set_SymConst_type(ir_node *node, ir_type *tp)
 {
        assert(is_SymConst(node) &&
               (SYMCONST_HAS_TYPE(get_SymConst_kind(node))));
        node->attr.symc.sym.type_p = tp;
 }
 
-ident *
-get_SymConst_name(const ir_node *node)
+ident *get_SymConst_name(const ir_node *node)
 {
        assert(is_SymConst(node) && SYMCONST_HAS_ID(get_SymConst_kind(node)));
        return node->attr.symc.sym.ident_p;
 }
 
-void
-set_SymConst_name(ir_node *node, ident *name)
+void set_SymConst_name(ir_node *node, ident *name)
 {
        assert(is_SymConst(node) && SYMCONST_HAS_ID(get_SymConst_kind(node)));
        node->attr.symc.sym.ident_p = name;
@@ -1335,64 +1315,55 @@ get_SymConst_symbol(const ir_node *node)
        return node->attr.symc.sym;
 }
 
-void
-set_SymConst_symbol(ir_node *node, union symconst_symbol sym)
+void set_SymConst_symbol(ir_node *node, union symconst_symbol sym)
 {
        assert(is_SymConst(node));
        node->attr.symc.sym = sym;
 }
 
-ir_type *
-get_SymConst_value_type(ir_node *node)
+ir_type *get_SymConst_value_type(ir_node *node)
 {
        assert(is_SymConst(node));
        return node->attr.symc.tp;
 }
 
-void
-set_SymConst_value_type(ir_node *node, ir_type *tp)
+void set_SymConst_value_type(ir_node *node, ir_type *tp)
 {
        assert(is_SymConst(node));
        node->attr.symc.tp = tp;
 }
 
-ir_node *
-get_Sel_mem(const ir_node *node)
+ir_node *get_Sel_mem(const ir_node *node)
 {
        assert(is_Sel(node));
        return get_irn_n(node, 0);
 }
 
-void
-set_Sel_mem(ir_node *node, ir_node *mem)
+void set_Sel_mem(ir_node *node, ir_node *mem)
 {
        assert(is_Sel(node));
        set_irn_n(node, 0, mem);
 }
 
-ir_node *
-get_Sel_ptr(const ir_node *node)
+ir_node *get_Sel_ptr(const ir_node *node)
 {
        assert(is_Sel(node));
        return get_irn_n(node, 1);
 }
 
-void
-set_Sel_ptr(ir_node *node, ir_node *ptr)
+void set_Sel_ptr(ir_node *node, ir_node *ptr)
 {
        assert(is_Sel(node));
        set_irn_n(node, 1, ptr);
 }
 
-int
-get_Sel_n_indexs(const ir_node *node)
+int get_Sel_n_indexs(const ir_node *node)
 {
        assert(is_Sel(node));
        return (get_irn_arity(node) - SEL_INDEX_OFFSET);
 }
 
-ir_node **
-get_Sel_index_arr(ir_node *node)
+ir_node **get_Sel_index_arr(ir_node *node)
 {
        assert(is_Sel(node));
        if (get_Sel_n_indexs(node) > 0)
@@ -1401,22 +1372,19 @@ get_Sel_index_arr(ir_node *node)
                return NULL;
 }
 
-ir_node *
-get_Sel_index(const ir_node *node, int pos)
+ir_node *get_Sel_index(const ir_node *node, int pos)
 {
        assert(is_Sel(node));
        return get_irn_n(node, pos + SEL_INDEX_OFFSET);
 }
 
-void
-set_Sel_index(ir_node *node, int pos, ir_node *index)
+void set_Sel_index(ir_node *node, int pos, ir_node *index)
 {
        assert(is_Sel(node));
        set_irn_n(node, pos + SEL_INDEX_OFFSET, index);
 }
 
-ir_entity *
-get_Sel_entity(const ir_node *node)
+ir_entity *get_Sel_entity(const ir_node *node)
 {
        assert(is_Sel(node));
        return node->attr.sel.entity;
@@ -1428,8 +1396,7 @@ static ir_entity *_get_Sel_entity(ir_node *node)
        return get_Sel_entity(node);
 }
 
-void
-set_Sel_entity(ir_node *node, ir_entity *ent)
+void set_Sel_entity(ir_node *node, ir_entity *ent)
 {
        assert(is_Sel(node));
        node->attr.sel.entity = ent;
@@ -1444,156 +1411,134 @@ set_Sel_entity(ir_node *node, ir_entity *ent)
    Shr, Shrs, Rotate, Cmp */
 
 
-ir_node *
-get_Call_mem(const ir_node *node)
+ir_node *get_Call_mem(const ir_node *node)
 {
        assert(is_Call(node));
        return get_irn_n(node, 0);
 }
 
-void
-set_Call_mem(ir_node *node, ir_node *mem)
+void set_Call_mem(ir_node *node, ir_node *mem)
 {
        assert(is_Call(node));
        set_irn_n(node, 0, mem);
 }
 
-ir_node *
-get_Call_ptr(const ir_node *node)
+ir_node *get_Call_ptr(const ir_node *node)
 {
        assert(is_Call(node));
        return get_irn_n(node, 1);
 }
 
-void
-set_Call_ptr(ir_node *node, ir_node *ptr)
+void set_Call_ptr(ir_node *node, ir_node *ptr)
 {
        assert(is_Call(node));
        set_irn_n(node, 1, ptr);
 }
 
-ir_node **
-get_Call_param_arr(ir_node *node)
+ir_node **get_Call_param_arr(ir_node *node)
 {
        assert(is_Call(node));
        return &get_irn_in(node)[CALL_PARAM_OFFSET + 1];
 }
 
-int
-get_Call_n_params(const ir_node *node)
+int get_Call_n_params(const ir_node *node)
 {
        assert(is_Call(node));
        return (get_irn_arity(node) - CALL_PARAM_OFFSET);
 }
 
-ir_node *
-get_Call_param(const ir_node *node, int pos)
+ir_node *get_Call_param(const ir_node *node, int pos)
 {
        assert(is_Call(node));
        return get_irn_n(node, pos + CALL_PARAM_OFFSET);
 }
 
-void
-set_Call_param(ir_node *node, int pos, ir_node *param)
+void set_Call_param(ir_node *node, int pos, ir_node *param)
 {
        assert(is_Call(node));
        set_irn_n(node, pos + CALL_PARAM_OFFSET, param);
 }
 
-ir_type *
-get_Call_type(ir_node *node)
+ir_type *get_Call_type(ir_node *node)
 {
        assert(is_Call(node));
        return node->attr.call.type;
 }
 
-void
-set_Call_type(ir_node *node, ir_type *tp)
+void set_Call_type(ir_node *node, ir_type *tp)
 {
        assert(is_Call(node));
        assert((get_unknown_type() == tp) || is_Method_type(tp));
        node->attr.call.type = tp;
 }
 
-unsigned
-get_Call_tail_call(const ir_node *node)
+unsigned get_Call_tail_call(const ir_node *node)
 {
        assert(is_Call(node));
        return node->attr.call.tail_call;
 }
 
-void
-set_Call_tail_call(ir_node *node, unsigned tail_call)
+void set_Call_tail_call(ir_node *node, unsigned tail_call)
 {
        assert(is_Call(node));
        node->attr.call.tail_call = tail_call != 0;
 }
 
-ir_node *
-get_Builtin_mem(const ir_node *node)
+ir_node *get_Builtin_mem(const ir_node *node)
 {
        assert(is_Builtin(node));
        return get_irn_n(node, 0);
 }
 
-void
-set_Builin_mem(ir_node *node, ir_node *mem)
+void set_Builin_mem(ir_node *node, ir_node *mem)
 {
        assert(is_Builtin(node));
        set_irn_n(node, 0, mem);
 }
 
-ir_builtin_kind
-get_Builtin_kind(const ir_node *node)
+ir_builtin_kind get_Builtin_kind(const ir_node *node)
 {
        assert(is_Builtin(node));
        return node->attr.builtin.kind;
 }
 
-void
-set_Builtin_kind(ir_node *node, ir_builtin_kind kind)
+void set_Builtin_kind(ir_node *node, ir_builtin_kind kind)
 {
        assert(is_Builtin(node));
        node->attr.builtin.kind = kind;
 }
 
-ir_node **
-get_Builtin_param_arr(ir_node *node)
+ir_node **get_Builtin_param_arr(ir_node *node)
 {
        assert(is_Builtin(node));
        return &get_irn_in(node)[BUILDIN_PARAM_OFFSET + 1];
 }
 
-int
-get_Builtin_n_params(const ir_node *node)
+int get_Builtin_n_params(const ir_node *node)
 {
        assert(is_Builtin(node));
        return (get_irn_arity(node) - BUILDIN_PARAM_OFFSET);
 }
 
-ir_node *
-get_Builtin_param(const ir_node *node, int pos)
+ir_node *get_Builtin_param(const ir_node *node, int pos)
 {
        assert(is_Builtin(node));
        return get_irn_n(node, pos + BUILDIN_PARAM_OFFSET);
 }
 
-void
-set_Builtin_param(ir_node *node, int pos, ir_node *param)
+void set_Builtin_param(ir_node *node, int pos, ir_node *param)
 {
        assert(is_Builtin(node));
        set_irn_n(node, pos + BUILDIN_PARAM_OFFSET, param);
 }
 
-ir_type *
-get_Builtin_type(ir_node *node)
+ir_type *get_Builtin_type(ir_node *node)
 {
        assert(is_Builtin(node));
        return node->attr.builtin.type;
 }
 
-void
-set_Builtin_type(ir_node *node, ir_type *tp)
+void set_Builtin_type(ir_node *node, ir_type *tp)
 {
        assert(is_Builtin(node));
        assert((get_unknown_type() == tp) || is_Method_type(tp));
@@ -1805,15 +1750,13 @@ void set_Conv_strict(ir_node *node, int strict_flag)
        node->attr.conv.strict = (char)strict_flag;
 }
 
-ir_type *
-get_Cast_type(ir_node *node)
+ir_type *get_Cast_type(ir_node *node)
 {
        assert(is_Cast(node));
        return node->attr.cast.type;
 }
 
-void
-set_Cast_type(ir_node *node, ir_type *to_tp)
+void set_Cast_type(ir_node *node, ir_type *to_tp)
 {
        assert(is_Cast(node));
        node->attr.cast.type = to_tp;
@@ -1866,13 +1809,12 @@ int is_Cast_downcast(ir_node *node)
        return is_SubClass_of(totype, fromtype);
 }
 
-int
-(is_unop)(const ir_node *node) {
+int (is_unop)(const ir_node *node)
+{
        return _is_unop(node);
 }
 
-ir_node *
-get_unop_op(const ir_node *node)
+ir_node *get_unop_op(const ir_node *node)
 {
        if (node->op->opar == oparity_unary)
                return get_irn_n(node, node->op->op_index);
@@ -1881,8 +1823,7 @@ get_unop_op(const ir_node *node)
        return NULL;
 }
 
-void
-set_unop_op(ir_node *node, ir_node *op)
+void set_unop_op(ir_node *node, ir_node *op)
 {
        if (node->op->opar == oparity_unary)
                set_irn_n(node, node->op->op_index, op);
@@ -1890,34 +1831,30 @@ set_unop_op(ir_node *node, ir_node *op)
        assert(node->op->opar == oparity_unary);
 }
 
-int
-(is_binop)(const ir_node *node) {
+int (is_binop)(const ir_node *node)
+{
        return _is_binop(node);
 }
 
-ir_node *
-get_binop_left(const ir_node *node)
+ir_node *get_binop_left(const ir_node *node)
 {
        assert(node->op->opar == oparity_binary);
        return get_irn_n(node, node->op->op_index);
 }
 
-void
-set_binop_left(ir_node *node, ir_node *left)
+void set_binop_left(ir_node *node, ir_node *left)
 {
        assert(node->op->opar == oparity_binary);
        set_irn_n(node, node->op->op_index, left);
 }
 
-ir_node *
-get_binop_right(const ir_node *node)
+ir_node *get_binop_right(const ir_node *node)
 {
        assert(node->op->opar == oparity_binary);
        return get_irn_n(node, node->op->op_index + 1);
 }
 
-void
-set_binop_right(ir_node *node, ir_node *right)
+void set_binop_right(ir_node *node, ir_node *right)
 {
        assert(node->op->opar == oparity_binary);
        set_irn_n(node, node->op->op_index + 1, right);
@@ -1932,15 +1869,13 @@ int is_Phi0(const ir_node *n)
                (get_irg_phase_state(get_irn_irg(n)) ==  phase_building));
 }
 
-ir_node **
-get_Phi_preds_arr(ir_node *node)
+ir_node **get_Phi_preds_arr(ir_node *node)
 {
   assert(node->op == op_Phi);
   return (ir_node **)&(get_irn_in(node)[1]);
 }
 
-int
-get_Phi_n_preds(const ir_node *node)
+int get_Phi_n_preds(const ir_node *node)
 {
        assert(is_Phi(node) || is_Phi0(node));
        return (get_irn_arity(node));
@@ -1953,15 +1888,13 @@ void set_Phi_n_preds(ir_node *node, int n_preds)
 }
 */
 
-ir_node *
-get_Phi_pred(const ir_node *node, int pos)
+ir_node *get_Phi_pred(const ir_node *node, int pos)
 {
        assert(is_Phi(node) || is_Phi0(node));
        return get_irn_n(node, pos);
 }
 
-void
-set_Phi_pred(ir_node *node, int pos, ir_node *pred)
+void set_Phi_pred(ir_node *node, int pos, ir_node *pred)
 {
        assert(is_Phi(node) || is_Phi0(node));
        set_irn_n(node, pos, pred);
@@ -2007,270 +1940,232 @@ void set_memop_ptr(ir_node *node, ir_node *ptr)
        set_irn_n(node, 1, ptr);
 }
 
-ir_node *
-get_Load_mem(const ir_node *node)
+ir_node *get_Load_mem(const ir_node *node)
 {
        assert(is_Load(node));
        return get_irn_n(node, 0);
 }
 
-void
-set_Load_mem(ir_node *node, ir_node *mem)
+void set_Load_mem(ir_node *node, ir_node *mem)
 {
        assert(is_Load(node));
        set_irn_n(node, 0, mem);
 }
 
-ir_node *
-get_Load_ptr(const ir_node *node)
+ir_node *get_Load_ptr(const ir_node *node)
 {
        assert(is_Load(node));
        return get_irn_n(node, 1);
 }
 
-void
-set_Load_ptr(ir_node *node, ir_node *ptr)
+void set_Load_ptr(ir_node *node, ir_node *ptr)
 {
        assert(is_Load(node));
        set_irn_n(node, 1, ptr);
 }
 
-ir_mode *
-get_Load_mode(const ir_node *node)
+ir_mode *get_Load_mode(const ir_node *node)
 {
        assert(is_Load(node));
        return node->attr.load.mode;
 }
 
-void
-set_Load_mode(ir_node *node, ir_mode *mode)
+void set_Load_mode(ir_node *node, ir_mode *mode)
 {
        assert(is_Load(node));
        node->attr.load.mode = mode;
 }
 
-ir_volatility
-get_Load_volatility(const ir_node *node)
+ir_volatility get_Load_volatility(const ir_node *node)
 {
        assert(is_Load(node));
        return node->attr.load.volatility;
 }
 
-void
-set_Load_volatility(ir_node *node, ir_volatility volatility)
+void set_Load_volatility(ir_node *node, ir_volatility volatility)
 {
        assert(is_Load(node));
        node->attr.load.volatility = volatility;
 }
 
-ir_align
-get_Load_align(const ir_node *node)
+ir_align get_Load_align(const ir_node *node)
 {
        assert(is_Load(node));
        return node->attr.load.aligned;
 }
 
-void
-set_Load_align(ir_node *node, ir_align align)
+void set_Load_align(ir_node *node, ir_align align)
 {
        assert(is_Load(node));
        node->attr.load.aligned = align;
 }
 
 
-ir_node *
-get_Store_mem(const ir_node *node)
+ir_node *get_Store_mem(const ir_node *node)
 {
        assert(is_Store(node));
        return get_irn_n(node, 0);
 }
 
-void
-set_Store_mem(ir_node *node, ir_node *mem)
+void set_Store_mem(ir_node *node, ir_node *mem)
 {
        assert(is_Store(node));
        set_irn_n(node, 0, mem);
 }
 
-ir_node *
-get_Store_ptr(const ir_node *node)
+ir_node *get_Store_ptr(const ir_node *node)
 {
        assert(is_Store(node));
        return get_irn_n(node, 1);
 }
 
-void
-set_Store_ptr(ir_node *node, ir_node *ptr)
+void set_Store_ptr(ir_node *node, ir_node *ptr)
 {
        assert(is_Store(node));
        set_irn_n(node, 1, ptr);
 }
 
-ir_node *
-get_Store_value(const ir_node *node)
+ir_node *get_Store_value(const ir_node *node)
 {
        assert(is_Store(node));
        return get_irn_n(node, 2);
 }
 
-void
-set_Store_value(ir_node *node, ir_node *value)
+void set_Store_value(ir_node *node, ir_node *value)
 {
        assert(is_Store(node));
        set_irn_n(node, 2, value);
 }
 
-ir_volatility
-get_Store_volatility(const ir_node *node)
+ir_volatility get_Store_volatility(const ir_node *node)
 {
        assert(is_Store(node));
        return node->attr.store.volatility;
 }
 
-void
-set_Store_volatility(ir_node *node, ir_volatility volatility)
+void set_Store_volatility(ir_node *node, ir_volatility volatility)
 {
        assert(is_Store(node));
        node->attr.store.volatility = volatility;
 }
 
-ir_align
-get_Store_align(const ir_node *node)
+ir_align get_Store_align(const ir_node *node)
 {
        assert(is_Store(node));
        return node->attr.store.aligned;
 }
 
-void
-set_Store_align(ir_node *node, ir_align align)
+void set_Store_align(ir_node *node, ir_align align)
 {
        assert(is_Store(node));
        node->attr.store.aligned = align;
 }
 
 
-ir_node *
-get_Alloc_mem(const ir_node *node)
+ir_node *get_Alloc_mem(const ir_node *node)
 {
        assert(is_Alloc(node));
        return get_irn_n(node, 0);
 }
 
-void
-set_Alloc_mem(ir_node *node, ir_node *mem)
+void set_Alloc_mem(ir_node *node, ir_node *mem)
 {
        assert(is_Alloc(node));
        set_irn_n(node, 0, mem);
 }
 
-ir_node *
-get_Alloc_size(const ir_node *node)
+ir_node *get_Alloc_size(const ir_node *node)
 {
        assert(is_Alloc(node));
        return get_irn_n(node, 1);
 }
 
-void
-set_Alloc_size(ir_node *node, ir_node *size)
+void set_Alloc_size(ir_node *node, ir_node *size)
 {
        assert(is_Alloc(node));
        set_irn_n(node, 1, size);
 }
 
-ir_type *
-get_Alloc_type(ir_node *node)
+ir_type *get_Alloc_type(ir_node *node)
 {
        assert(is_Alloc(node));
        return node->attr.alloc.type;
 }
 
-void
-set_Alloc_type(ir_node *node, ir_type *tp)
+void set_Alloc_type(ir_node *node, ir_type *tp)
 {
        assert(is_Alloc(node));
        node->attr.alloc.type = tp;
 }
 
-ir_where_alloc
-get_Alloc_where(const ir_node *node)
+ir_where_alloc get_Alloc_where(const ir_node *node)
 {
        assert(is_Alloc(node));
        return node->attr.alloc.where;
 }
 
-void
-set_Alloc_where(ir_node *node, ir_where_alloc where)
+void set_Alloc_where(ir_node *node, ir_where_alloc where)
 {
        assert(is_Alloc(node));
        node->attr.alloc.where = where;
 }
 
 
-ir_node *
-get_Free_mem(const ir_node *node)
+ir_node *get_Free_mem(const ir_node *node)
 {
        assert(is_Free(node));
        return get_irn_n(node, 0);
 }
 
-void
-set_Free_mem(ir_node *node, ir_node *mem)
+void set_Free_mem(ir_node *node, ir_node *mem)
 {
        assert(is_Free(node));
        set_irn_n(node, 0, mem);
 }
 
-ir_node *
-get_Free_ptr(const ir_node *node)
+ir_node *get_Free_ptr(const ir_node *node)
 {
        assert(is_Free(node));
        return get_irn_n(node, 1);
 }
 
-void
-set_Free_ptr(ir_node *node, ir_node *ptr)
+void set_Free_ptr(ir_node *node, ir_node *ptr)
 {
        assert(is_Free(node));
        set_irn_n(node, 1, ptr);
 }
 
-ir_node *
-get_Free_size(const ir_node *node)
+ir_node *get_Free_size(const ir_node *node)
 {
        assert(is_Free(node));
        return get_irn_n(node, 2);
 }
 
-void
-set_Free_size(ir_node *node, ir_node *size)
+void set_Free_size(ir_node *node, ir_node *size)
 {
        assert(is_Free(node));
        set_irn_n(node, 2, size);
 }
 
-ir_type *
-get_Free_type(ir_node *node)
+ir_type *get_Free_type(ir_node *node)
 {
        assert(is_Free(node));
        return node->attr.free.type;
 }
 
-void
-set_Free_type(ir_node *node, ir_type *tp)
+void set_Free_type(ir_node *node, ir_type *tp)
 {
        assert(is_Free(node));
        node->attr.free.type = tp;
 }
 
-ir_where_alloc
-get_Free_where(const ir_node *node)
+ir_where_alloc get_Free_where(const ir_node *node)
 {
        assert(is_Free(node));
        return node->attr.free.where;
 }
 
-void
-set_Free_where(ir_node *node, ir_where_alloc where)
+void set_Free_where(ir_node *node, ir_where_alloc where)
 {
        assert(is_Free(node));
        node->attr.free.where = where;
@@ -2348,22 +2243,19 @@ ir_type *get_Proj_type(ir_node *n)
        return tp;
 }
 
-ir_node *
-get_Proj_pred(const ir_node *node)
+ir_node *get_Proj_pred(const ir_node *node)
 {
        assert(is_Proj(node));
        return get_irn_n(node, 0);
 }
 
-void
-set_Proj_pred(ir_node *node, ir_node *pred)
+void set_Proj_pred(ir_node *node, ir_node *pred)
 {
        assert(is_Proj(node));
        set_irn_n(node, 0, pred);
 }
 
-long
-get_Proj_proj(const ir_node *node)
+long get_Proj_proj(const ir_node *node)
 {
 #ifdef INTERPROCEDURAL_VIEW
        ir_opcode code = get_irn_opcode(node);
@@ -2381,8 +2273,7 @@ get_Proj_proj(const ir_node *node)
 #endif /* INTERPROCEDURAL_VIEW */
 }
 
-void
-set_Proj_proj(ir_node *node, long proj)
+void set_Proj_proj(ir_node *node, long proj)
 {
 #ifdef INTERPROCEDURAL_VIEW
        ir_opcode code = get_irn_opcode(node);
@@ -2406,51 +2297,44 @@ int (is_arg_Proj)(const ir_node *node)
        return _is_arg_Proj(node);
 }
 
-ir_node **
-get_Tuple_preds_arr(ir_node *node)
+ir_node **get_Tuple_preds_arr(ir_node *node)
 {
        assert(is_Tuple(node));
        return (ir_node **)&(get_irn_in(node)[1]);
 }
 
-int
-get_Tuple_n_preds(const ir_node *node)
+int get_Tuple_n_preds(const ir_node *node)
 {
        assert(is_Tuple(node));
        return get_irn_arity(node);
 }
 
 /*
-void
-set_Tuple_n_preds(ir_node *node, int n_preds)
+void set_Tuple_n_preds(ir_node *node, int n_preds)
 {
        assert(is_Tuple(node));
 }
 */
 
-ir_node *
-get_Tuple_pred(const ir_node *node, int pos)
+ir_node *get_Tuple_pred(const ir_node *node, int pos)
 {
   assert(is_Tuple(node));
   return get_irn_n(node, pos);
 }
 
-void
-set_Tuple_pred(ir_node *node, int pos, ir_node *pred)
+void set_Tuple_pred(ir_node *node, int pos, ir_node *pred)
 {
        assert(is_Tuple(node));
        set_irn_n(node, pos, pred);
 }
 
-ir_node *
-get_Id_pred(const ir_node *node)
+ir_node *get_Id_pred(const ir_node *node)
 {
        assert(is_Id(node));
        return get_irn_n(node, 0);
 }
 
-void
-set_Id_pred(ir_node *node, ir_node *pred)
+void set_Id_pred(ir_node *node, ir_node *pred)
 {
        assert(is_Id(node));
        set_irn_n(node, 0, pred);
@@ -2492,29 +2376,25 @@ void set_Confirm_cmp(ir_node *node, pn_Cmp cmp)
        node->attr.confirm.cmp = cmp;
 }
 
-ir_node *
-get_Filter_pred(ir_node *node)
+ir_node *get_Filter_pred(ir_node *node)
 {
        assert(is_Filter(node));
        return node->in[1];
 }
 
-void
-set_Filter_pred(ir_node *node, ir_node *pred)
+void set_Filter_pred(ir_node *node, ir_node *pred)
 {
        assert(is_Filter(node));
        node->in[1] = pred;
 }
 
-long
-get_Filter_proj(ir_node *node)
+long get_Filter_proj(ir_node *node)
 {
        assert(is_Filter(node));
        return node->attr.filter.proj;
 }
 
-void
-set_Filter_proj(ir_node *node, long proj)
+void set_Filter_proj(ir_node *node, long proj)
 {
        assert(is_Filter(node));
        node->attr.filter.proj = proj;
@@ -2644,72 +2524,62 @@ void set_CopyB_type(ir_node *node, ir_type *data_type)
 }
 
 
-ir_type *
-get_InstOf_type(ir_node *node)
+ir_type *get_InstOf_type(ir_node *node)
 {
        assert(node->op == op_InstOf);
        return node->attr.instof.type;
 }
 
-void
-set_InstOf_type(ir_node *node, ir_type *type)
+void set_InstOf_type(ir_node *node, ir_type *type)
 {
        assert(node->op == op_InstOf);
        node->attr.instof.type = type;
 }
 
-ir_node *
-get_InstOf_store(const ir_node *node)
+ir_node *get_InstOf_store(const ir_node *node)
 {
        assert(node->op == op_InstOf);
        return get_irn_n(node, 0);
 }
 
-void
-set_InstOf_store(ir_node *node, ir_node *obj)
+void set_InstOf_store(ir_node *node, ir_node *obj)
 {
        assert(node->op == op_InstOf);
        set_irn_n(node, 0, obj);
 }
 
-ir_node *
-get_InstOf_obj(const ir_node *node)
+ir_node *get_InstOf_obj(const ir_node *node)
 {
        assert(node->op == op_InstOf);
        return get_irn_n(node, 1);
 }
 
-void
-set_InstOf_obj(ir_node *node, ir_node *obj)
+void set_InstOf_obj(ir_node *node, ir_node *obj)
 {
        assert(node->op == op_InstOf);
        set_irn_n(node, 1, obj);
 }
 
 /* Returns the memory input of a Raise operation. */
-ir_node *
-get_Raise_mem(const ir_node *node)
+ir_node *get_Raise_mem(const ir_node *node)
 {
        assert(is_Raise(node));
        return get_irn_n(node, 0);
 }
 
-void
-set_Raise_mem(ir_node *node, ir_node *mem)
+void set_Raise_mem(ir_node *node, ir_node *mem)
 {
        assert(is_Raise(node));
        set_irn_n(node, 0, mem);
 }
 
-ir_node *
-get_Raise_exo_ptr(const ir_node *node)
+ir_node *get_Raise_exo_ptr(const ir_node *node)
 {
        assert(is_Raise(node));
        return get_irn_n(node, 1);
 }
 
-void
-set_Raise_exo_ptr(ir_node *node, ir_node *exo_ptr)
+void set_Raise_exo_ptr(ir_node *node, ir_node *exo_ptr)
 {
        assert(is_Raise(node));
        set_irn_n(node, 1, exo_ptr);
@@ -2832,8 +2702,7 @@ ident **get_ASM_clobbers(const ir_node *node)
 }
 
 /* returns the graph of a node */
-ir_graph *
-get_irn_irg(const ir_node *node)
+ir_graph *get_irn_irg(const ir_node *node)
 {
        /*
         * Do not use get_nodes_Block() here, because this
@@ -2852,8 +2721,7 @@ get_irn_irg(const ir_node *node)
 /*  Auxiliary routines                                            */
 /*----------------------------------------------------------------*/
 
-ir_node *
-skip_Proj(ir_node *node)
+ir_node *skip_Proj(ir_node *node)
 {
        /* don't assert node !!! */
        if (node == NULL)
@@ -2878,8 +2746,7 @@ skip_Proj_const(const ir_node *node)
        return node;
 }
 
-ir_node *
-skip_Tuple(ir_node *node)
+ir_node *skip_Tuple(ir_node *node)
 {
   ir_node *pred;
   ir_op   *op;
@@ -2959,8 +2826,7 @@ ir_node *skip_HighLevel_ops(ir_node *node)
  *
  * Moreover, it CANNOT be switched off using get_opt_normalize() ...
  */
-ir_node *
-skip_Id(ir_node *node)
+ir_node *skip_Id(ir_node *node)
 {
        ir_node *pred;
        /* don't assert node !!! */
@@ -3003,19 +2869,19 @@ void skip_Id_and_store(ir_node **node)
        *node = skip_Id(n);
 }
 
-int
-(is_strictConv)(const ir_node *node) {
+int (is_strictConv)(const ir_node *node)
+{
        return _is_strictConv(node);
 }
 
-int
-(is_no_Block)(const ir_node *node) {
+int (is_no_Block)(const ir_node *node)
+{
        return _is_no_Block(node);
 }
 
 /* Returns true if node is a SymConst node with kind symconst_addr_ent. */
-int
-(is_SymConst_addr_ent)(const ir_node *node) {
+int (is_SymConst_addr_ent)(const ir_node *node)
+{
        return _is_SymConst_addr_ent(node);
 }
 
@@ -3034,8 +2900,7 @@ int is_ip_cfop(const ir_node *node)
 
 /* Returns true if the operation can change the control flow because
    of an exception. */
-int
-is_fragile_op(const ir_node *node)
+int is_fragile_op(const ir_node *node)
 {
        return is_op_fragile(get_irn_op(node));
 }
index 3d6cfbf..700e0aa 100644 (file)
@@ -114,8 +114,8 @@ ir_node **get_Block_cfgpred_arr(ir_node *node);
  * Checks whether a pointer points to a ir node.
  * Intern version for libFirm.
  */
-static inline int
-_is_ir_node(const void *thing) {
+static inline int _is_ir_node(const void *thing)
+{
        return (get_kind(thing) == k_ir_node);
 }
 
@@ -123,22 +123,22 @@ _is_ir_node(const void *thing) {
  * Gets the op of a node.
  * Intern version for libFirm.
  */
-static inline ir_op *
-_get_irn_op(const ir_node *node) {
+static inline ir_op *_get_irn_op(const ir_node *node)
+{
        assert(node);
        return node->op;
 }
 
-static inline void
-_set_irn_op(ir_node *node, ir_op *op) {
+static inline void _set_irn_op(ir_node *node, ir_op *op)
+{
        assert(node);
        node->op = op;
 }
 
 /** Copies all attributes stored in the old node  to the new node.
     Assumes both have the same opcode and sufficient size. */
-static inline void
-_copy_node_attr(const ir_node *old_node, ir_node *new_node) {
+static inline void _copy_node_attr(const ir_node *old_node, ir_node *new_node)
+{
        ir_op *op = _get_irn_op(old_node);
 
        /* must always exist */
@@ -149,8 +149,8 @@ _copy_node_attr(const ir_node *old_node, ir_node *new_node) {
  * Gets the opcode of a node.
  * Intern version for libFirm.
  */
-static inline unsigned
-_get_irn_opcode(const ir_node *node) {
+static inline unsigned _get_irn_opcode(const ir_node *node)
+{
        assert(k_ir_node == get_kind(node));
        assert(node->op);
        return node->op->code;
@@ -160,8 +160,8 @@ _get_irn_opcode(const ir_node *node) {
  * Returns the number of predecessors without the block predecessor.
  * Intern version for libFirm.
  */
-static inline int
-_get_irn_intra_arity(const ir_node *node) {
+static inline int _get_irn_intra_arity(const ir_node *node)
+{
        assert(node);
        return ARR_LEN(node->in) - 1;
 }
@@ -170,8 +170,8 @@ _get_irn_intra_arity(const ir_node *node) {
  * Returns the number of predecessors without the block predecessor.
  * Intern version for libFirm.
  */
-static inline int
-_get_irn_inter_arity(const ir_node *node) {
+static inline int _get_irn_inter_arity(const ir_node *node)
+{
        assert(node);
        if (_get_irn_op(node) == op_Filter) {
                assert(node->attr.filter.in_cg);
@@ -197,8 +197,8 @@ extern int (*_get_irn_arity)(const ir_node *node);
 /**
  * Intern version for libFirm.
  */
-static inline ir_node *
-_get_irn_intra_n(const ir_node *node, int n) {
+static inline ir_node *_get_irn_intra_n(const ir_node *node, int n)
+{
        ir_node *nn;
 
        assert(node);
@@ -218,8 +218,8 @@ _get_irn_intra_n(const ir_node *node, int n) {
 /**
  * Intern version for libFirm.
  */
-static inline ir_node*
-_get_irn_inter_n(const ir_node *node, int n) {
+static inline ir_node *_get_irn_inter_n(const ir_node *node, int n)
+{
        assert(node); assert(-1 <= n && n < _get_irn_inter_arity(node));
 
        /* handle Filter and Block specially */
@@ -265,8 +265,8 @@ static inline ir_node *_get_irn_dep(const ir_node *node, int pos) {
        return node->deps[pos];
 }
 
-static inline void
-_set_irn_dep(ir_node *node, int pos, ir_node *dep) {
+static inline void _set_irn_dep(ir_node *node, int pos, ir_node *dep)
+{
        ir_node *old;
 
        assert(node->deps && "dependency array node yet allocated. use add_irn_dep()");
@@ -277,13 +277,13 @@ _set_irn_dep(ir_node *node, int pos, ir_node *dep) {
 }
 
 
-static inline int
-_get_irn_ins_or_deps(const ir_node *irn) {
+static inline int _get_irn_ins_or_deps(const ir_node *irn)
+{
        return _get_irn_deps(irn) + _get_irn_arity(irn);
 }
 
-static inline ir_node *
-_get_irn_in_or_dep(const ir_node *irn, int pos) {
+static inline ir_node *_get_irn_in_or_dep(const ir_node *irn, int pos)
+{
        int n_in = get_irn_arity(irn);
        return pos < n_in ? get_irn_n(irn, pos) : get_irn_dep(irn, pos - n_in);
 }
@@ -292,8 +292,8 @@ _get_irn_in_or_dep(const ir_node *irn, int pos) {
  * Gets the mode of a node.
  * Intern version for libFirm.
  */
-static inline ir_mode *
-_get_irn_mode(const ir_node *node) {
+static inline ir_mode *_get_irn_mode(const ir_node *node)
+{
        assert(node);
        return node->mode;
 }
@@ -302,8 +302,8 @@ _get_irn_mode(const ir_node *node) {
  * Sets the mode of a node.
  * Intern version of libFirm.
  */
-static inline void
-_set_irn_mode(ir_node *node, ir_mode *mode) {
+static inline void _set_irn_mode(ir_node *node, ir_mode *mode)
+{
        assert(node);
        node->mode = mode;
 }
@@ -312,8 +312,8 @@ _set_irn_mode(ir_node *node, ir_mode *mode) {
  * Gets the visited counter of a node.
  * Intern version for libFirm.
  */
-static inline ir_visited_t
-_get_irn_visited(const ir_node *node) {
+static inline ir_visited_t _get_irn_visited(const ir_node *node)
+{
        assert(node);
        return node->visited;
 }
@@ -322,8 +322,8 @@ _get_irn_visited(const ir_node *node) {
  * Sets the visited counter of a node.
  * Intern version for libFirm.
  */
-static inline void
-_set_irn_visited(ir_node *node, ir_visited_t visited) {
+static inline void _set_irn_visited(ir_node *node, ir_visited_t visited)
+{
        assert(node);
        node->visited = visited;
 }
@@ -332,8 +332,8 @@ _set_irn_visited(ir_node *node, ir_visited_t visited) {
  * Mark a node as visited in a graph.
  * Intern version for libFirm.
  */
-static inline void
-_mark_irn_visited(ir_node *node) {
+static inline void _mark_irn_visited(ir_node *node)
+{
        assert(node);
        node->visited = current_ir_graph->visited;
 }
@@ -342,14 +342,14 @@ _mark_irn_visited(ir_node *node) {
  * Returns non-zero if a node of was visited.
  * Intern version for libFirm.
  */
-static inline int
-_irn_visited(const ir_node *node) {
+static inline int _irn_visited(const ir_node *node)
+{
        assert(node);
        return (node->visited >= current_ir_graph->visited);
 }
 
-static inline int
-_irn_visited_else_mark(ir_node *node) {
+static inline int _irn_visited_else_mark(ir_node *node)
+{
        if (_irn_visited(node))
                return 1;
        _mark_irn_visited(node);
@@ -360,8 +360,8 @@ _irn_visited_else_mark(ir_node *node) {
  * Sets the link of a node.
  * Intern version of libFirm.
  */
-static inline void
-_set_irn_link(ir_node *node, void *link) {
+static inline void _set_irn_link(ir_node *node, void *link)
+{
        assert(node);
        node->link = link;
 }
@@ -370,8 +370,8 @@ _set_irn_link(ir_node *node, void *link) {
  * Returns the link of a node.
  * Intern version of libFirm.
  */
-static inline void *
-_get_irn_link(const ir_node *node) {
+static inline void *_get_irn_link(const ir_node *node)
+{
        assert(node && _is_ir_node(node));
        return node->link;
 }
@@ -382,8 +382,8 @@ _get_irn_link(const ir_node *node) {
  *
  * Intern version of libFirm.
  */
-static inline op_pin_state
-_get_irn_pinned(const ir_node *node) {
+static inline op_pin_state _get_irn_pinned(const ir_node *node)
+{
        op_pin_state state;
        assert(node && _is_ir_node(node));
        /* Check opcode */
@@ -394,8 +394,8 @@ _get_irn_pinned(const ir_node *node) {
        return state;
 }
 
-static inline op_pin_state
-_is_irn_pinned_in_irg(const ir_node *node) {
+static inline op_pin_state _is_irn_pinned_in_irg(const ir_node *node)
+{
        if (get_irg_pinned(get_irn_irg(node)) == op_pin_state_floats)
                return get_irn_pinned(node);
        return op_pin_state_pinned;
@@ -404,20 +404,20 @@ _is_irn_pinned_in_irg(const ir_node *node) {
 /* include generated code */
 #include "gen_irnode.h"
 
-static inline int
-_is_unop(const ir_node *node) {
+static inline int _is_unop(const ir_node *node)
+{
        assert(node && _is_ir_node(node));
        return (node->op->opar == oparity_unary);
 }
 
-static inline int
-_is_binop(const ir_node *node) {
+static inline int _is_binop(const ir_node *node)
+{
        assert(node && _is_ir_node(node));
        return (node->op->opar == oparity_binary);
 }
 
-static inline int
-_is_Phi(const ir_node *node) {
+static inline int _is_Phi(const ir_node *node)
+{
        ir_op *op;
        assert(node);
 
@@ -428,8 +428,8 @@ _is_Phi(const ir_node *node) {
        return (op == op_Phi);
 }
 
-static inline int
-_is_Proj(const ir_node *node) {
+static inline int _is_Proj(const ir_node *node)
+{
        ir_op *op;
        assert(node);
 
@@ -440,30 +440,30 @@ _is_Proj(const ir_node *node) {
        return (op == op_Proj);
 }
 
-static inline int
-_is_strictConv(const ir_node *node) {
+static inline int _is_strictConv(const ir_node *node)
+{
        return _is_Conv(node) && get_Conv_strict(node);
 }
 
-static inline int
-_is_SymConst_addr_ent(const ir_node *node) {
+static inline int _is_SymConst_addr_ent(const ir_node *node)
+{
        return is_SymConst(node) && get_SymConst_kind(node) == symconst_addr_ent;
 }
 
-static inline int
-_is_no_Block(const ir_node *node) {
+static inline int _is_no_Block(const ir_node *node)
+{
        assert(node && _is_ir_node(node));
        return (_get_irn_op(node) != op_Block);
 }
 
-static inline int
-_get_Block_n_cfgpreds(const ir_node *node) {
+static inline int _get_Block_n_cfgpreds(const ir_node *node)
+{
        assert(_is_Block(node));
        return _get_irn_arity(node);
 }
 
-static inline ir_node *
-_get_Block_cfgpred(const ir_node *node, int pos) {
+static inline ir_node *_get_Block_cfgpred(const ir_node *node, int pos)
+{
        assert(0 <= pos && pos < get_irn_arity(node));
        assert(_is_Block(node));
        return _get_irn_n(node, pos);
@@ -480,49 +480,49 @@ _get_Block_cfgpred(const ir_node *node, int pos) {
  *  - If we encounter the Bad node, this function does not return
  *    the Start block, but the Bad node.
  */
-static inline ir_node  *
-_get_Block_cfgpred_block(const ir_node *node, int pos) {
+static inline ir_node  *_get_Block_cfgpred_block(const ir_node *node, int pos)
+{
        ir_node *res = skip_Proj(get_Block_cfgpred(node, pos));
        if (!is_Bad(res))
                res = get_nodes_block(res);
        return res;
 }
 
-static inline ir_visited_t
-_get_Block_block_visited(const ir_node *node) {
+static inline ir_visited_t _get_Block_block_visited(const ir_node *node)
+{
        assert(node->op == op_Block);
        return node->attr.block.block_visited;
 }
 
-static inline void
-_set_Block_block_visited(ir_node *node, ir_visited_t visit) {
+static inline void _set_Block_block_visited(ir_node *node, ir_visited_t visit)
+{
        assert(node->op == op_Block);
        node->attr.block.block_visited = visit;
 }
 
 /* For this current_ir_graph must be set. */
-static inline void
-_mark_Block_block_visited(ir_node *node) {
+static inline void _mark_Block_block_visited(ir_node *node)
+{
        assert(node->op == op_Block);
        node->attr.block.block_visited = get_irg_block_visited(current_ir_graph);
 }
 
-static inline int
-_Block_block_visited(const ir_node *node) {
+static inline int _Block_block_visited(const ir_node *node)
+{
        assert(node->op == op_Block);
        return (node->attr.block.block_visited >= get_irg_block_visited(current_ir_graph));
 }
 
-static inline ir_node *
-_set_Block_dead(ir_node *block) {
+static inline ir_node *_set_Block_dead(ir_node *block)
+{
        assert(_get_irn_op(block) == op_Block);
        block->attr.block.dom.dom_depth = -1;
        block->attr.block.is_dead = 1;
        return block;
 }
 
-static inline int
-_is_Block_dead(const ir_node *block) {
+static inline int _is_Block_dead(const ir_node *block)
+{
        ir_op *op = _get_irn_op(block);
 
        if (op == op_Bad)
@@ -533,8 +533,8 @@ _is_Block_dead(const ir_node *block) {
        }
 }
 
-static inline ir_graph *
-_get_Block_irg(const ir_node *block) {
+static inline ir_graph *_get_Block_irg(const ir_node *block)
+{
        assert(is_Block(block) || is_Bad(block));
        return block->attr.irg.irg;
 }
@@ -637,8 +637,8 @@ static inline void _set_irn_dbg_info(ir_node *n, dbg_info *db) {
 /**
  * Sets the Phi list of a block.
  */
-static inline void
-_set_Block_phis(ir_node *block, ir_node *phi) {
+static inline void _set_Block_phis(ir_node *block, ir_node *phi)
+{
        assert(_is_Block(block));
        assert(phi == NULL || _is_Phi(phi));
        block->attr.block.phis = phi;
@@ -648,8 +648,8 @@ _set_Block_phis(ir_node *block, ir_node *phi) {
  * Returns the link of a node.
  * Intern version of libFirm.
  */
-static inline ir_node *
-_get_Block_phis(const ir_node *block) {
+static inline ir_node *_get_Block_phis(const ir_node *block)
+{
        assert(_is_Block(block));
        return block->attr.block.phis;
 }
@@ -657,8 +657,8 @@ _get_Block_phis(const ir_node *block) {
 /**
  * Sets the next link of a Phi.
  */
-static inline void
-_set_Phi_next(ir_node *phi, ir_node *next) {
+static inline void _set_Phi_next(ir_node *phi, ir_node *next)
+{
        assert(_is_Phi(phi));
        phi->attr.phi.next = next;
 }
@@ -667,36 +667,36 @@ _set_Phi_next(ir_node *phi, ir_node *next) {
  * Returns the link of a node.
  * Intern version of libFirm.
  */
-static inline ir_node *
-_get_Phi_next(const ir_node *phi) {
+static inline ir_node *_get_Phi_next(const ir_node *phi)
+{
        assert(_is_Phi(phi));
        return phi->attr.phi.next;
 }
 
 /** Add a Phi node to the list of Block Phi's. */
-static inline void
-_add_Block_phi(ir_node *block, ir_node *phi) {
+static inline void _add_Block_phi(ir_node *block, ir_node *phi)
+{
        _set_Phi_next(phi, _get_Block_phis(block));
        _set_Block_phis(block, phi);
 }
 
 /** Get the Block mark (single bit). */
-static inline unsigned
-_get_Block_mark(const ir_node *block) {
+static inline unsigned _get_Block_mark(const ir_node *block)
+{
        assert(_is_Block(block));
        return block->attr.block.marked;
 }
 
 /** Set the Block mark (single bit). */
-static inline void
-_set_Block_mark(ir_node *block, unsigned mark) {
+static inline void _set_Block_mark(ir_node *block, unsigned mark)
+{
        assert(_is_Block(block));
        block->attr.block.marked = mark;
 }
 
 /** Returns non-zero if a node is a routine parameter. */
-static inline int
-_is_arg_Proj(const ir_node *node) {
+static inline int _is_arg_Proj(const ir_node *node)
+{
        if (! is_Proj(node))
                return 0;
        node = get_Proj_pred(node);
index 3a65d88..4392a4b 100644 (file)
@@ -63,8 +63,7 @@ void default_copy_attr(const ir_node *old_node, ir_node *new_node)
 /**
  * Copies all Call attributes stored in the old node to the new node.
  */
-static void
-call_copy_attr(const ir_node *old_node, ir_node *new_node)
+static void call_copy_attr(const ir_node *old_node, ir_node *new_node)
 {
        default_copy_attr(old_node, new_node);
        remove_Call_callee_arr(new_node);
@@ -73,8 +72,7 @@ call_copy_attr(const ir_node *old_node, ir_node *new_node)
 /**
  * Copies all Block attributes stored in the old node to the new node.
  */
-static void
-block_copy_attr(const ir_node *old_node, ir_node *new_node)
+static void block_copy_attr(const ir_node *old_node, ir_node *new_node)
 {
        ir_graph *irg = current_ir_graph;
 
@@ -88,8 +86,7 @@ block_copy_attr(const ir_node *old_node, ir_node *new_node)
 /**
  * Copies all phi attributes stored in old node to the new node
  */
-static void
-phi_copy_attr(const ir_node *old_node, ir_node *new_node)
+static void phi_copy_attr(const ir_node *old_node, ir_node *new_node)
 {
        ir_graph *irg = current_ir_graph;
 
@@ -101,8 +98,7 @@ phi_copy_attr(const ir_node *old_node, ir_node *new_node)
 /**
  * Copies all filter attributes stored in old node to the new node
  */
-static void
-filter_copy_attr(const ir_node *old_node, ir_node *new_node)
+static void filter_copy_attr(const ir_node *old_node, ir_node *new_node)
 {
        ir_graph *irg = current_ir_graph;
 
@@ -113,8 +109,7 @@ filter_copy_attr(const ir_node *old_node, ir_node *new_node)
 /**
  * Copies all ASM attributes stored in old node to the new node
  */
-static void
-ASM_copy_attr(const ir_node *old_node, ir_node *new_node)
+static void ASM_copy_attr(const ir_node *old_node, ir_node *new_node)
 {
        ir_graph *irg = current_ir_graph;
 
@@ -160,10 +155,9 @@ static ir_op_ops *firm_set_default_copy_attr(ir_opcode code, ir_op_ops *ops)
 }  /* firm_set_default_copy_attr */
 
 /* Creates a new ir operation. */
-ir_op *
-new_ir_op(unsigned code, const char *name, op_pin_state p,
-          unsigned flags, op_arity opar, int op_index, size_t attr_size,
-          const ir_op_ops *ops)
+ir_op *new_ir_op(unsigned code, const char *name, op_pin_state p,
+                 unsigned flags, op_arity opar, int op_index, size_t attr_size,
+                 const ir_op_ops *ops)
 {
        ir_op *res = XMALLOCZ(ir_op);
 
index cc54521..269b250 100644 (file)
@@ -116,8 +116,8 @@ void set_value_of_func(value_of_func func);
 /**
  * Returns the associated tarval of a node.
  */
-static inline tarval *
-value_of(const ir_node *n) {
+static inline tarval *value_of(const ir_node *n)
+{
        return value_of_ptr(n);
 }
 
index c3b1461..c4adf47 100644 (file)
@@ -110,8 +110,7 @@ static hook_entry_t hook;
 /**
  * Instrument a block with code needed for profiling
  */
-static void
-instrument_block(ir_node *bb, ir_node *address, unsigned int id)
+static void instrument_block(ir_node *bb, ir_node *address, unsigned int id)
 {
        ir_graph *irg = get_irn_irg(bb);
        ir_node  *load, *store, *offset, *add, *projm, *proji, *unknown;
@@ -144,8 +143,7 @@ typedef struct fix_env {
 /**
  * SSA Construction for instrumentation code memory
  */
-static void
-fix_ssa(ir_node * bb, void * data)
+static void fix_ssa(ir_node *bb, void *data)
 {
        fix_env *env = data;
        ir_node *mem;
@@ -195,8 +193,7 @@ static void add_constructor(ir_entity *method)
  * Pseudocode:
  *      void __firmprof_initializer(void) { __init_firmprof(ent_filename, bblock_id, bblock_counts, n_blocks); }
  */
-static ir_graph *
-gen_initializer_irg(ir_entity *ent_filename, ir_entity *bblock_id, ir_entity *bblock_counts, int n_blocks)
+static ir_graph *gen_initializer_irg(ir_entity *ent_filename, ir_entity *bblock_id, ir_entity *bblock_counts, int n_blocks)
 {
        ir_node   *ins[4];
        ident     *name = new_id_from_str("__firmprof_initializer");
@@ -310,8 +307,7 @@ static void create_location_data(dbg_info *dbg, block_id_walker_data_t *wd)
  * Walker: assigns an ID to every block.
  * Builds the string table
  */
-static void
-block_id_walker(ir_node * bb, void * data)
+static void block_id_walker(ir_node *bb, void *data)
 {
        block_id_walker_data_t *wd = data;
 
@@ -327,8 +323,7 @@ block_id_walker(ir_node * bb, void * data)
 
 #define IDENT(x)       new_id_from_chars(x, sizeof(x) - 1)
 
-ir_graph *
-ir_profile_instrument(const char *filename, unsigned flags)
+ir_graph *ir_profile_instrument(const char *filename, unsigned flags)
 {
        int n, i;
        int n_blocks = 0;
@@ -533,8 +528,7 @@ ir_profile_instrument(const char *filename, unsigned flags)
        return gen_initializer_irg(ent_filename, bblock_id, bblock_counts, n_blocks);
 }
 
-static void
-profile_node_info(void *ctx, FILE *f, const ir_node *irn)
+static void profile_node_info(void *ctx, FILE *f, const ir_node *irn)
 {
        (void) ctx;
        if (is_Block(irn)) {
@@ -542,16 +536,14 @@ profile_node_info(void *ctx, FILE *f, const ir_node *irn)
        }
 }
 
-static void
-register_vcg_hook(void)
+static void register_vcg_hook(void)
 {
        memset(&hook, 0, sizeof(hook));
        hook.hook._hook_node_info = profile_node_info;
        register_hook(hook_node_info, &hook);
 }
 
-static void
-unregister_vcg_hook(void)
+static void unregister_vcg_hook(void)
 {
        unregister_hook(hook_node_info, &hook);
 }
@@ -560,8 +552,7 @@ unregister_vcg_hook(void)
  * Reads the corresponding profile info file if it exists and returns a
  * profile info struct
  */
-void
-ir_profile_read(const char *filename)
+void ir_profile_read(const char *filename)
 {
        FILE   *f;
        char    buf[8];
@@ -598,8 +589,7 @@ ir_profile_read(const char *filename)
 /**
  * Frees the profile info
  */
-void
-ir_profile_free(void)
+void ir_profile_free(void)
 {
        if (profile) {
                unregister_vcg_hook();
@@ -610,8 +600,7 @@ ir_profile_free(void)
 /**
  * Tells whether profile module has acquired data
  */
-int
-ir_profile_has_data(void)
+int ir_profile_has_data(void)
 {
        return (profile != NULL);
 }
index be5b539..f4152ec 100644 (file)
 void add_irp_mode(ir_mode *mode);
 
 /* inline functions */
-static inline ir_type *
-_get_segment_type(ir_segment_t segment)
+static inline ir_type *_get_segment_type(ir_segment_t segment)
 {
        assert(segment <= IR_SEGMENT_LAST);
        return irp->segment_types[segment];
 }
 
-static inline ir_type *
-_get_glob_type(void) {
+static inline ir_type *_get_glob_type(void)
+{
        return _get_segment_type(IR_SEGMENT_GLOBAL);
 }
 
-static inline ir_type *
-_get_tls_type(void) {
+static inline ir_type *_get_tls_type(void)
+{
        return _get_segment_type(IR_SEGMENT_THREAD_LOCAL);
 }
 
-static inline int
-_get_irp_n_irgs(void) {
+static inline int _get_irp_n_irgs(void)
+{
        assert(irp && irp->graphs);
        if (get_visit_pseudo_irgs()) return get_irp_n_allirgs();
        return ARR_LEN(irp->graphs);
 }
 
-static inline ir_graph *
-_get_irp_irg(int pos){
+static inline ir_graph *_get_irp_irg(int pos)
+{
        if (get_visit_pseudo_irgs()) return get_irp_allirg(pos);
        assert(0 <= pos && pos <= ARR_LEN(irp->graphs));
        return irp->graphs[pos];
 }
 
 
-static inline int
-_get_irp_n_types(void) {
+static inline int _get_irp_n_types(void)
+{
        assert(irp && irp->types);
        return ARR_LEN(irp->types);
 }
 
-static inline ir_type *
-_get_irp_type(int pos) {
+static inline ir_type *_get_irp_type(int pos)
+{
        assert(irp->types);
        /* Don't set the skip_tid result so that no double entries are generated. */
        return irp->types[pos];
 }
 
-static inline int
-_get_irp_n_modes(void) {
+static inline int _get_irp_n_modes(void)
+{
        assert(irp->modes);
        return ARR_LEN(irp->modes);
 }
 
-static inline ir_mode *
-_get_irp_mode(int pos) {
+static inline ir_mode *_get_irp_mode(int pos)
+{
        assert(irp && irp->modes);
        return irp->modes[pos];
 }
 
-static inline int
-_get_irp_n_opcodes(void) {
+static inline int _get_irp_n_opcodes(void)
+{
        assert(irp && irp->opcodes);
        return ARR_LEN(irp->opcodes);
 }
 
-static inline ir_op *
-_get_irp_opcode(int pos) {
+static inline ir_op *_get_irp_opcode(int pos)
+{
        assert(irp && irp->opcodes);
        return irp->opcodes[pos];
 }
 
 /** Returns a new, unique number to number nodes or the like. */
-static inline long
-get_irp_new_node_nr(void) {
+static inline long get_irp_new_node_nr(void)
+{
        assert(irp);
        return irp->max_node_nr++;
 }
 
-static inline int
-get_irp_new_irg_idx(void) {
+static inline int get_irp_new_irg_idx(void)
+{
        assert(irp);
        return irp->max_irg_idx++;
 }
 
-static inline ir_graph *
-_get_const_code_irg(void) {
+static inline ir_graph *_get_const_code_irg(void)
+{
        return irp->const_code_irg;
 }
 
 /** Returns a new, unique exception region number. */
-static inline ir_exc_region_t
-_get_irp_next_region_nr(void) {
+static inline ir_exc_region_t _get_irp_next_region_nr(void)
+{
        assert(irp);
        return ++irp->last_region_nr;
 }
 
 /** Returns a new, unique label number. */
-static inline ir_label_t
-_get_irp_next_label_nr(void) {
+static inline ir_label_t _get_irp_next_label_nr(void)
+{
        assert(irp);
        return ++irp->last_label_nr;
 }
index b2ca4a7..e53e8a3 100644 (file)
@@ -864,8 +864,7 @@ static int verify_node_Proj_Bound(ir_node *n, ir_node *p)
 /**
  * verify a Proj node
  */
-static int
-verify_node_Proj(ir_node *p, ir_graph *irg)
+static int verify_node_Proj(ir_node *p, ir_graph *irg)
 {
        ir_node *pred;
        ir_op *op;
index 597c0b7..a824fb2 100644 (file)
@@ -60,8 +60,7 @@ void add_irp_pseudo_irg(ir_graph *irg)
  *  The pseudo representation can only be used for analyses.  It may not be
  *  optimized.  Pseudo graphs are kept in a separate graph list in irprog.
  */
-ir_graph *
-new_pseudo_ir_graph(ir_entity *ent, int n_loc)
+ir_graph *new_pseudo_ir_graph(ir_entity *ent, int n_loc)
 {
        ir_graph *res = new_r_ir_graph(ent, n_loc);
        add_irp_pseudo_irg(res);          /* remember this graph global. */
index 7337e43..3cbf558 100644 (file)
@@ -69,8 +69,7 @@ static ir_valueset_entry_t null_valueset_entry;
  * Resize the hashset
  * @internal
  */
-static
-void resize(HashSet *self, size_t new_size)
+static void resize(HashSet *self, size_t new_size)
 {
        HashSetEntry *old_entries = self->entries;
        HashSetEntry *new_entries;
index d03def2..82f58b6 100644 (file)
@@ -239,11 +239,9 @@ typedef short int yytype_int16;
 #else
 #if (defined __STDC__ || defined __C99__FUNC__ \
      || defined __cplusplus || defined _MSC_VER)
-static int
-YYID (int i)
+static int YYID(int i)
 #else
-static int
-YYID (i)
+static int YYID(i)
     int i;
 #endif
 {
@@ -666,11 +664,9 @@ do {                                                                         \
 /*ARGSUSED*/
 #if (defined __STDC__ || defined __C99__FUNC__ \
      || defined __cplusplus || defined _MSC_VER)
-static void
-yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
+static void yy_symbol_value_print(FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
 #else
-static void
-yy_symbol_value_print (yyoutput, yytype, yyvaluep)
+static void yy_symbol_value_print(yyoutput, yytype, yyvaluep)
     FILE *yyoutput;
     int yytype;
     YYSTYPE const * const yyvaluep;
@@ -698,11 +694,9 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep)
 
 #if (defined __STDC__ || defined __C99__FUNC__ \
      || defined __cplusplus || defined _MSC_VER)
-static void
-yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
+static void yy_symbol_print(FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
 #else
-static void
-yy_symbol_print (yyoutput, yytype, yyvaluep)
+static void yy_symbol_print(yyoutput, yytype, yyvaluep)
     FILE *yyoutput;
     int yytype;
     YYSTYPE const * const yyvaluep;
@@ -724,11 +718,9 @@ yy_symbol_print (yyoutput, yytype, yyvaluep)
 
 #if (defined __STDC__ || defined __C99__FUNC__ \
      || defined __cplusplus || defined _MSC_VER)
-static void
-yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
+static void yy_stack_print(yytype_int16 *bottom, yytype_int16 *top)
 #else
-static void
-yy_stack_print (bottom, top)
+static void yy_stack_print(bottom, top)
     yytype_int16 *bottom;
     yytype_int16 *top;
 #endif
@@ -752,11 +744,9 @@ do {                                                               \
 
 #if (defined __STDC__ || defined __C99__FUNC__ \
      || defined __cplusplus || defined _MSC_VER)
-static void
-yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
+static void yy_reduce_print(YYSTYPE *yyvsp, int yyrule)
 #else
-static void
-yy_reduce_print (yyvsp, yyrule)
+static void yy_reduce_print(yyvsp, yyrule)
     YYSTYPE *yyvsp;
     int yyrule;
 #endif
@@ -821,11 +811,9 @@ int yydebug;
 /* Return the length of YYSTR.  */
 #if (defined __STDC__ || defined __C99__FUNC__ \
      || defined __cplusplus || defined _MSC_VER)
-static YYSIZE_T
-yystrlen (const char *yystr)
+static YYSIZE_T yystrlen(const char *yystr)
 #else
-static YYSIZE_T
-yystrlen (yystr)
+static YYSIZE_T yystrlen(yystr)
     const char *yystr;
 #endif
 {
@@ -845,11 +833,9 @@ yystrlen (yystr)
    YYDEST.  */
 #if (defined __STDC__ || defined __C99__FUNC__ \
      || defined __cplusplus || defined _MSC_VER)
-static char *
-yystpcpy (char *yydest, const char *yysrc)
+static char *yystpcpy(char *yydest, const char *yysrc)
 #else
-static char *
-yystpcpy (yydest, yysrc)
+static char *yystpcpy(yydest, yysrc)
     char *yydest;
     const char *yysrc;
 #endif
@@ -873,8 +859,7 @@ yystpcpy (yydest, yysrc)
    backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
    null, do not copy; instead, return the length of what the result
    would have been.  */
-static YYSIZE_T
-yytnamerr (char *yyres, const char *yystr)
+static YYSIZE_T yytnamerr(char *yyres, const char *yystr)
 {
   if (*yystr == '"')
     {
@@ -920,8 +905,7 @@ yytnamerr (char *yyres, const char *yystr)
    copied.  As a special case, return 0 if an ordinary "syntax error"
    message will do.  Return YYSIZE_MAXIMUM if overflow occurs during
    size calculation.  */
-static YYSIZE_T
-yysyntax_error (char *yyresult, int yystate, int yychar)
+static YYSIZE_T yysyntax_error(char *yyresult, int yystate, int yychar)
 {
   int yyn = yypact[yystate];
 
@@ -1030,11 +1014,9 @@ yysyntax_error (char *yyresult, int yystate, int yychar)
 /*ARGSUSED*/
 #if (defined __STDC__ || defined __C99__FUNC__ \
      || defined __cplusplus || defined _MSC_VER)
-static void
-yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
+static void yydestruct(const char *yymsg, int yytype, YYSTYPE *yyvaluep)
 #else
-static void
-yydestruct (yymsg, yytype, yyvaluep)
+static void yydestruct(yymsg, yytype, yyvaluep)
     const char *yymsg;
     int yytype;
     YYSTYPE *yyvaluep;
@@ -1091,21 +1073,17 @@ int yynerrs;
 #ifdef YYPARSE_PARAM
 #if (defined __STDC__ || defined __C99__FUNC__ \
      || defined __cplusplus || defined _MSC_VER)
-int
-yyparse (void *YYPARSE_PARAM)
+int yyparse (void *YYPARSE_PARAM)
 #else
-int
-yyparse (YYPARSE_PARAM)
+int yyparse (YYPARSE_PARAM)
     void *YYPARSE_PARAM;
 #endif
 #else /* ! YYPARSE_PARAM */
 #if (defined __STDC__ || defined __C99__FUNC__ \
      || defined __cplusplus || defined _MSC_VER)
-int
-yyparse (void)
+int yyparse (void)
 #else
-int
-yyparse ()
+int yyparse ()
 
 #endif
 #endif
index 4f091ff..4cdd480 100644 (file)
@@ -101,11 +101,8 @@ int obstack_exit_failure = EXIT_FAILURE;
    Return nonzero if successful, calls obstack_alloc_failed_handler if
    allocation fails.  */
 
-int
-_obstack_begin (struct obstack *h,
-               int size, int alignment,
-               void *(*chunkfun) (long),
-               void (*freefun) (void *))
+int _obstack_begin(struct obstack *h, int size, int alignment,
+                   void *(*chunkfun)(long), void (*freefun)(void *))
 {
   register struct _obstack_chunk *chunk; /* points to new chunk */
 
@@ -148,11 +145,9 @@ _obstack_begin (struct obstack *h,
   return 1;
 }
 
-int
-_obstack_begin_1 (struct obstack *h, int size, int alignment,
-                 void *(*chunkfun) (void *, long),
-                 void (*freefun) (void *, void *),
-                 void *arg)
+int _obstack_begin_1(struct obstack *h, int size, int alignment,
+                     void *(*chunkfun) (void *, long),
+                     void (*freefun) (void *, void *), void *arg)
 {
   register struct _obstack_chunk *chunk; /* points to new chunk */
 
@@ -202,8 +197,7 @@ _obstack_begin_1 (struct obstack *h, int size, int alignment,
    Copies any partial object from the end of the old chunk
    to the beginning of the new one.  */
 
-void
-_obstack_newchunk (struct obstack *h, int length)
+void _obstack_newchunk(struct obstack *h, int length)
 {
   register struct _obstack_chunk *old_chunk = h->chunk;
   register struct _obstack_chunk *new_chunk;
@@ -276,8 +270,7 @@ _obstack_newchunk (struct obstack *h, int length)
    obstack.h because it is just for debugging.  */
 int _obstack_allocated_p (struct obstack *h, void *obj);
 
-int
-_obstack_allocated_p (struct obstack *h, void *obj)
+int _obstack_allocated_p(struct obstack *h, void *obj)
 {
   register struct _obstack_chunk *lp;  /* below addr of any objects in this chunk */
   register struct _obstack_chunk *plp; /* point to previous chunk if any */
@@ -299,8 +292,7 @@ _obstack_allocated_p (struct obstack *h, void *obj)
 
 # undef obstack_free
 
-void
-obstack_free (struct obstack *h, void *obj)
+void obstack_free(struct obstack *h, void *obj)
 {
   register struct _obstack_chunk *lp;  /* below addr of any objects in this chunk */
   register struct _obstack_chunk *plp; /* point to previous chunk if any */
@@ -329,8 +321,7 @@ obstack_free (struct obstack *h, void *obj)
     abort ();
 }
 
-int
-_obstack_memory_used (struct obstack *h)
+int _obstack_memory_used(struct obstack *h)
 {
   register struct _obstack_chunk* lp;
   register int nbytes = 0;
@@ -342,9 +333,7 @@ _obstack_memory_used (struct obstack *h)
   return nbytes;
 }
 
-static void
-__attribute__ ((noreturn))
-print_and_abort (void)
+static void __attribute__((noreturn)) print_and_abort(void)
 {
   /* Don't change any of these strings.  Yes, it would be possible to add
      the newline to the string and use fputs or so.  But this must not
index de6b136..57a9d33 100644 (file)
@@ -147,8 +147,7 @@ struct obstack *_obstack;
    To recover from an out of memory error,
    free up some memory, then call this again.  */
 
-int
-_obstack_begin (h, size, alignment, chunkfun, freefun)
+int _obstack_begin(h, size, alignment, chunkfun, freefun)
      struct obstack *h;
      int size;
      int alignment;
@@ -205,8 +204,7 @@ _obstack_begin (h, size, alignment, chunkfun, freefun)
   return 1;
 }
 
-int
-_obstack_begin_1 (h, size, alignment, chunkfun, freefun, arg)
+int _obstack_begin_1 (h, size, alignment, chunkfun, freefun, arg)
      struct obstack *h;
      int size;
      int alignment;
@@ -271,8 +269,7 @@ _obstack_begin_1 (h, size, alignment, chunkfun, freefun, arg)
    Copies any partial object from the end of the old chunk
    to the beginning of the new one.  */
 
-void
-_obstack_newchunk (h, length)
+void _obstack_newchunk (h, length)
      struct obstack *h;
      int length;
 {
@@ -341,8 +338,7 @@ _obstack_newchunk (h, length)
 int _obstack_allocated_p (struct obstack *h, POINTER obj);
 #endif
 
-int
-_obstack_allocated_p (h, obj)
+int _obstack_allocated_p (h, obj)
      struct obstack *h;
      POINTER obj;
 {
@@ -369,8 +365,7 @@ _obstack_allocated_p (h, obj)
 /* This function has two names with identical definitions.
    This is the first one, called from non-ANSI code.  */
 
-void
-_obstack_free (h, obj)
+void _obstack_free (h, obj)
      struct obstack *h;
      POINTER obj;
 {
@@ -403,8 +398,7 @@ _obstack_free (h, obj)
 
 /* This function is used from ANSI code.  */
 
-void
-obstack_free (h, obj)
+void obstack_free (h, obj)
      struct obstack *h;
      POINTER obj;
 {
@@ -435,8 +429,7 @@ obstack_free (h, obj)
     abort ();
 }
 
-int
-_obstack_memory_used (h)
+int _obstack_memory_used (h)
      struct obstack *h;
 {
   register struct _obstack_chunk* lp;
@@ -461,8 +454,7 @@ _obstack_memory_used (h)
 # endif
 #endif
 
-static void
-print_and_abort ()
+static void print_and_abort(void)
 {
   fputs (_("memory exhausted\n"), stderr);
   exit (obstack_exit_failure);
index 9110b15..6ade763 100644 (file)
@@ -93,8 +93,7 @@ DEBUG_ONLY(static firm_dbg_module_t *dbg;)
  * accesses.  This function is called for all Phi and Block nodes
  * in a Block.
  */
-static inline int
-compute_new_arity(ir_node *b)
+static inline int compute_new_arity(ir_node *b)
 {
        int i, res, irn_arity;
        int irg_v, block_v;
@@ -385,8 +384,7 @@ static void copy_graph(ir_graph *irg, int copy_node_nr)
  *
  * @param copy_node_nr  If non-zero, the node number will be copied
  */
-static void
-copy_graph_env(int copy_node_nr)
+static void copy_graph_env(int copy_node_nr)
 {
        ir_graph *irg = current_ir_graph;
        ir_node *old_end, *new_anchor;
index 4dcfcbe..2e10d6e 100644 (file)
@@ -94,8 +94,8 @@ static inline void insert_entity_in_owner(ir_entity *ent)
  *
  * @return the new created entity
  */
-static inline ir_entity *
-new_rd_entity(dbg_info *db, ir_type *owner, ident *name, ir_type *type)
+static inline ir_entity *new_rd_entity(dbg_info *db, ir_type *owner,
+                                       ident *name, ir_type *type)
 {
        ir_entity *res;
        ir_graph *rem;
@@ -160,8 +160,7 @@ new_rd_entity(dbg_info *db, ir_type *owner, ident *name, ir_type *type)
        return res;
 }  /* new_rd_entity */
 
-ir_entity *
-new_d_entity(ir_type *owner, ident *name, ir_type *type, dbg_info *db)
+ir_entity *new_d_entity(ir_type *owner, ident *name, ir_type *type, dbg_info *db)
 {
        ir_entity *res;
 
@@ -174,8 +173,7 @@ new_d_entity(ir_type *owner, ident *name, ir_type *type, dbg_info *db)
        return res;
 }  /* new_d_entity */
 
-ir_entity *
-new_entity(ir_type *owner, ident *name, ir_type *type)
+ir_entity *new_entity(ir_type *owner, ident *name, ir_type *type)
 {
        return new_d_entity(owner, name, type, NULL);
 }  /* new_entity */
@@ -259,8 +257,7 @@ static ir_entity *deep_entity_copy(ir_entity *old)
  * Copies the entity if the new_owner is different from the
  * owner of the old entity,  else returns the old entity.
  */
-ir_entity *
-copy_entity_own(ir_entity *old, ir_type *new_owner)
+ir_entity *copy_entity_own(ir_entity *old, ir_type *new_owner)
 {
        ir_entity *newe;
        assert(is_entity(old));
@@ -283,8 +280,7 @@ copy_entity_own(ir_entity *old, ir_type *new_owner)
        return newe;
 }  /* copy_entity_own */
 
-ir_entity *
-copy_entity_name(ir_entity *old, ident *new_name)
+ir_entity *copy_entity_name(ir_entity *old, ident *new_name)
 {
        ir_entity *newe;
        assert(old && old->kind == k_entity);
@@ -303,8 +299,7 @@ copy_entity_name(ir_entity *old, ident *new_name)
        return newe;
 }  /* copy_entity_name */
 
-void
-free_entity(ir_entity *ent)
+void free_entity(ir_entity *ent)
 {
        assert(ent && ent->kind == k_entity);
        free_entity_attrs(ent);
@@ -313,8 +308,7 @@ free_entity(ir_entity *ent)
 }  /* free_entity */
 
 /* Outputs a unique number for this node */
-long
-get_entity_nr(const ir_entity *ent)
+long get_entity_nr(const ir_entity *ent)
 {
        assert(ent && ent->kind == k_entity);
 #ifdef DEBUG_libfirm
@@ -324,28 +318,27 @@ get_entity_nr(const ir_entity *ent)
 #endif
 }  /* get_entity_nr */
 
-const char *
-(get_entity_name)(const ir_entity *ent) {
+const char *(get_entity_name)(const ir_entity *ent)
+{
        return _get_entity_name(ent);
 }
 
-ident *
-(get_entity_ident)(const ir_entity *ent) {
+ident *(get_entity_ident)(const ir_entity *ent)
+{
        return _get_entity_ident(ent);
 }
 
-void
-(set_entity_ident)(ir_entity *ent, ident *id) {
+void (set_entity_ident)(ir_entity *ent, ident *id)
+{
        _set_entity_ident(ent, id);
 }
 
-ir_type *
-(get_entity_owner)(const ir_entity *ent) {
+ir_type *(get_entity_owner)(const ir_entity *ent)
+{
        return _get_entity_owner(ent);
 }
 
-void
-set_entity_owner(ir_entity *ent, ir_type *owner)
+void set_entity_owner(ir_entity *ent, ir_type *owner)
 {
        assert(is_entity(ent));
        assert(is_compound_type(owner));
@@ -357,8 +350,8 @@ ident *(get_entity_ld_ident)(const ir_entity *ent)
        return _get_entity_ld_ident(ent);
 }
 
-void
-(set_entity_ld_ident)(ir_entity *ent, ident *ld_ident) {
+void (set_entity_ld_ident)(ir_entity *ent, ident *ld_ident)
+{
        _set_entity_ld_ident(ent, ld_ident);
 }
 
@@ -367,23 +360,23 @@ const char *(get_entity_ld_name)(const ir_entity *ent)
        return _get_entity_ld_name(ent);
 }
 
-ir_type *
-(get_entity_type)(const ir_entity *ent) {
+ir_type *(get_entity_type)(const ir_entity *ent)
+{
        return _get_entity_type(ent);
 }
 
-void
-(set_entity_type)(ir_entity *ent, ir_type *type) {
+void (set_entity_type)(ir_entity *ent, ir_type *type)
+{
        _set_entity_type(ent, type);
 }
 
-ir_volatility
-(get_entity_volatility)(const ir_entity *ent) {
+ir_volatility (get_entity_volatility)(const ir_entity *ent)
+{
        return _get_entity_volatility(ent);
 }
 
-void
-(set_entity_volatility)(ir_entity *ent, ir_volatility vol) {
+void (set_entity_volatility)(ir_entity *ent, ir_volatility vol)
+{
        _set_entity_volatility(ent, vol);
 }
 
@@ -399,23 +392,23 @@ const char *get_volatility_name(ir_volatility var)
 #undef X
 }  /* get_volatility_name */
 
-ir_align
-(get_entity_aligned)(const ir_entity *ent) {
+ir_align (get_entity_aligned)(const ir_entity *ent)
+{
        return _get_entity_aligned(ent);
 }
 
-void
-(set_entity_aligned)(ir_entity *ent, ir_align a) {
+void (set_entity_aligned)(ir_entity *ent, ir_align a)
+{
        _set_entity_aligned(ent, a);
 }
 
-unsigned
-(get_entity_alignment)(const ir_entity *ent) {
+unsigned (get_entity_alignment)(const ir_entity *ent)
+{
        return _get_entity_alignment(ent);
 }
 
-void
-(set_entity_alignment)(ir_entity *ent, unsigned alignment) {
+void (set_entity_alignment)(ir_entity *ent, unsigned alignment)
+{
        _set_entity_alignment(ent, alignment);
 }
 
@@ -431,8 +424,7 @@ const char *get_align_name(ir_align a)
 #undef X
 }  /* get_align_name */
 
-void
-set_entity_label(ir_entity *ent, ir_label_t label)
+void set_entity_label(ir_entity *ent, ir_label_t label)
 {
        ent->attr.code_attr.label = label;
 }
index 2aa1a17..3da8059 100644 (file)
@@ -175,37 +175,36 @@ struct ir_entity {
 void firm_init_entity(void);
 
 /* ----------------------- inline functions ------------------------ */
-static inline int
-_is_entity(const void *thing) {
+static inline int _is_entity(const void *thing)
+{
        return get_kind(thing) == k_entity;
 }
 
-static inline const char *
-_get_entity_name(const ir_entity *ent) {
+static inline const char *_get_entity_name(const ir_entity *ent)
+{
        assert(ent && ent->kind == k_entity);
        return get_id_str(get_entity_ident(ent));
 }
 
-static inline ident *
-_get_entity_ident(const ir_entity *ent) {
+static inline ident *_get_entity_ident(const ir_entity *ent)
+{
        assert(ent && ent->kind == k_entity);
        return ent->name;
 }
 
-static inline void
-_set_entity_ident(ir_entity *ent, ident *id) {
+static inline void _set_entity_ident(ir_entity *ent, ident *id)
+{
        assert(ent && ent->kind == k_entity);
        ent->name = id;
 }
 
-static inline ir_type *
-_get_entity_owner(const ir_entity *ent) {
+static inline ir_type *_get_entity_owner(const ir_entity *ent)
+{
        assert(ent && ent->kind == k_entity);
        return ent->owner;
 }
 
-static inline ident *
-_get_entity_ld_ident(const ir_entity *ent)
+static inline ident *_get_entity_ld_ident(const ir_entity *ent)
 {
        assert(ent && ent->kind == k_entity);
        if (ent->ld_name == NULL)
@@ -213,134 +212,134 @@ _get_entity_ld_ident(const ir_entity *ent)
        return ent->ld_name;
 }
 
-static inline void
-_set_entity_ld_ident(ir_entity *ent, ident *ld_ident) {
+static inline void _set_entity_ld_ident(ir_entity *ent, ident *ld_ident)
+{
        assert(ent && ent->kind == k_entity);
        ent->ld_name = ld_ident;
 }
 
-static inline const char *
-_get_entity_ld_name(const ir_entity *ent) {
+static inline const char *_get_entity_ld_name(const ir_entity *ent)
+{
        assert(ent && ent->kind == k_entity);
        return get_id_str(get_entity_ld_ident(ent));
 }
 
-static inline ir_type *
-_get_entity_type(const ir_entity *ent) {
+static inline ir_type *_get_entity_type(const ir_entity *ent)
+{
        assert(ent && ent->kind == k_entity);
        return ent->type;
 }
 
-static inline void
-_set_entity_type(ir_entity *ent, ir_type *type) {
+static inline void _set_entity_type(ir_entity *ent, ir_type *type)
+{
        assert(ent && ent->kind == k_entity);
        ent->type = type;
 }
 
-static inline ir_linkage
-_get_entity_linkage(const ir_entity *ent) {
+static inline ir_linkage _get_entity_linkage(const ir_entity *ent)
+{
        assert(ent && ent->kind == k_entity);
        return ent->linkage;
 }
 
-static inline ir_volatility
-_get_entity_volatility(const ir_entity *ent) {
+static inline ir_volatility _get_entity_volatility(const ir_entity *ent)
+{
        assert(ent && ent->kind == k_entity);
        return ent->volatility;
 }
 
-static inline void
-_set_entity_volatility(ir_entity *ent, ir_volatility vol) {
+static inline void _set_entity_volatility(ir_entity *ent, ir_volatility vol)
+{
        assert(ent && ent->kind == k_entity);
        ent->volatility = vol;
 }
 
-static inline unsigned
-_get_entity_alignment(const ir_entity *ent) {
+static inline unsigned _get_entity_alignment(const ir_entity *ent)
+{
        assert(ent && ent->kind == k_entity);
        return ent->alignment;
 }
 
-static inline void
-_set_entity_alignment(ir_entity *ent, unsigned alignment) {
+static inline void _set_entity_alignment(ir_entity *ent, unsigned alignment)
+{
        assert(ent && ent->kind == k_entity);
        ent->alignment = alignment;
 }
 
-static inline ir_align
-_get_entity_aligned(const ir_entity *ent) {
+static inline ir_align _get_entity_aligned(const ir_entity *ent)
+{
        assert(ent && ent->kind == k_entity);
        return ent->aligned;
 }
 
-static inline void
-_set_entity_aligned(ir_entity *ent, ir_align a) {
+static inline void _set_entity_aligned(ir_entity *ent, ir_align a)
+{
        assert(ent && ent->kind == k_entity);
        ent->aligned = a;
 }
 
-static inline int
-_is_entity_compiler_generated(const ir_entity *ent) {
+static inline int _is_entity_compiler_generated(const ir_entity *ent)
+{
        assert(ent && ent->kind == k_entity);
        return ent->compiler_gen;
 }
 
-static inline void
-_set_entity_compiler_generated(ir_entity *ent, int flag) {
+static inline void _set_entity_compiler_generated(ir_entity *ent, int flag)
+{
        assert(ent && ent->kind == k_entity);
        ent->compiler_gen = flag ? 1 : 0;
 }
 
-static inline ir_entity_usage
-_get_entity_usage(const ir_entity *ent) {
+static inline ir_entity_usage _get_entity_usage(const ir_entity *ent)
+{
        assert(ent && ent->kind == k_entity);
        return ent->usage;
 }
 
-static inline void
-_set_entity_usage(ir_entity *ent, ir_entity_usage state) {
+static inline void _set_entity_usage(ir_entity *ent, ir_entity_usage state)
+{
        assert(ent && ent->kind == k_entity);
        ent->usage = state;
 }
 
-static inline int
-_get_entity_offset(const ir_entity *ent) {
+static inline int _get_entity_offset(const ir_entity *ent)
+{
        assert(ent && ent->kind == k_entity);
        return ent->offset;
 }
 
-static inline void
-_set_entity_offset(ir_entity *ent, int offset) {
+static inline void _set_entity_offset(ir_entity *ent, int offset)
+{
        assert(ent && ent->kind == k_entity);
        ent->offset = offset;
 }
 
-static inline unsigned char
-_get_entity_offset_bits_remainder(const ir_entity *ent) {
+static inline unsigned char _get_entity_offset_bits_remainder(const ir_entity *ent)
+{
        assert(ent && ent->kind == k_entity);
        return ent->offset_bit_remainder;
 }
 
-static inline void
-_set_entity_offset_bits_remainder(ir_entity *ent, unsigned char offset) {
+static inline void _set_entity_offset_bits_remainder(ir_entity *ent, unsigned char offset)
+{
        assert(ent && ent->kind == k_entity);
        ent->offset_bit_remainder = offset;
 }
 
-static inline void *
-_get_entity_link(const ir_entity *ent) {
+static inline void *_get_entity_link(const ir_entity *ent)
+{
        assert(ent && ent->kind == k_entity);
        return ent->link;
 }
 
-static inline void
-_set_entity_link(ir_entity *ent, void *l) {
+static inline void _set_entity_link(ir_entity *ent, void *l)
+{
        assert(ent && ent->kind == k_entity);
        ent->link = l;
 }
 
-static inline ir_graph *
-_get_entity_irg(const ir_entity *ent) {
+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) {
index aa51ed7..30da1ed 100644 (file)
@@ -59,8 +59,7 @@ new_tpop(tp_opcode code, ident *name, unsigned flags, size_t attr_size, const tp
        return res;
 }
 
-void
-free_tpop(const tp_op *tpop)
+void free_tpop(const tp_op *tpop)
 {
        xfree((void *)tpop);
 }
index bd9d073..2f80280 100644 (file)
@@ -142,18 +142,18 @@ int get_tpop_attr_size (const tp_op *op);
  * inline functions *
  * -----------------*/
 
-static inline tp_opcode
-_get_tpop_code(const tp_op *op) {
+static inline tp_opcode _get_tpop_code(const tp_op *op)
+{
        return op->code;
 }
 
-static inline ident *
-_get_tpop_ident(const tp_op *op){
+static inline ident *_get_tpop_ident(const tp_op *op)
+{
        return op->name;
 }
 
-static inline size_t
-_get_tpop_attr_size(const tp_op *op) {
+static inline size_t _get_tpop_attr_size(const tp_op *op)
+{
        return op->attr_size;
 }
 
index 1f1752b..bf1b6c0 100644 (file)
@@ -245,8 +245,7 @@ struct ir_type {
  *   @return A new type of the given type.  The remaining private attributes are not
  *           initialized.  The type is in state layout_undefined.
  */
-ir_type *
-new_type(const tp_op *type_op, ir_mode *mode, type_dbg_info *db);
+ir_type *new_type(const tp_op *type_op, ir_mode *mode, type_dbg_info *db);
 void free_type_attrs(ir_type *tp);
 
 void free_class_entities      (ir_type *clss);
@@ -306,139 +305,139 @@ static inline void _set_master_type_visited(ir_visited_t val) { firm_type_visite
 static inline ir_visited_t _get_master_type_visited(void)     { return firm_type_visited; }
 static inline void _inc_master_type_visited(void)             { ++firm_type_visited; }
 
-static inline void *
-_get_type_link(const ir_type *tp) {
+static inline void *_get_type_link(const ir_type *tp)
+{
        assert(tp && tp->kind == k_type);
        return(tp -> link);
 }
 
-static inline void
-_set_type_link(ir_type *tp, void *l) {
+static inline void _set_type_link(ir_type *tp, void *l)
+{
        assert(tp && tp->kind == k_type);
        tp -> link = l;
 }
 
-static inline const tp_op*
-_get_type_tpop(const ir_type *tp) {
+static inline const tp_op *_get_type_tpop(const ir_type *tp)
+{
        assert(tp && tp->kind == k_type);
        return tp->type_op;
 }
 
-static inline ident*
-_get_type_tpop_nameid(const ir_type *tp) {
+static inline ident *_get_type_tpop_nameid(const ir_type *tp)
+{
        assert(tp && tp->kind == k_type);
        return get_tpop_ident(tp->type_op);
 }
 
-static inline tp_opcode
-_get_type_tpop_code(const ir_type *tp) {
+static inline tp_opcode _get_type_tpop_code(const ir_type *tp)
+{
        assert(tp && tp->kind == k_type);
        return get_tpop_code(tp->type_op);
 }
 
-static inline ir_mode *
-_get_type_mode(const ir_type *tp) {
+static inline ir_mode *_get_type_mode(const ir_type *tp)
+{
        assert(tp && tp->kind == k_type);
        return tp->mode;
 }
 
-static inline unsigned
-_get_type_size_bytes(const ir_type *tp) {
+static inline unsigned _get_type_size_bytes(const ir_type *tp)
+{
        assert(tp && tp->kind == k_type);
        return tp->size;
 }
 
-static inline ir_type_state
-_get_type_state(const ir_type *tp) {
+static inline ir_type_state _get_type_state(const ir_type *tp)
+{
        assert(tp && tp->kind == k_type);
        return tp->flags & tf_layout_fixed ? layout_fixed : layout_undefined;
 }
 
-static inline ir_visited_t
-_get_type_visited(const ir_type *tp) {
+static inline ir_visited_t _get_type_visited(const ir_type *tp)
+{
        assert(tp && tp->kind == k_type);
        return tp->visit;
 }
 
-static inline void
-_set_type_visited(ir_type *tp, ir_visited_t num) {
+static inline void _set_type_visited(ir_type *tp, ir_visited_t num)
+{
        assert(tp && tp->kind == k_type);
        tp->visit = num;
 }
 
-static inline void
-_mark_type_visited(ir_type *tp) {
+static inline void _mark_type_visited(ir_type *tp)
+{
        assert(tp && tp->kind == k_type);
        assert(tp->visit < firm_type_visited);
        tp->visit = firm_type_visited;
 }
 
-static inline int
-_type_visited(const ir_type *tp) {
+static inline int _type_visited(const ir_type *tp)
+{
        assert(tp && tp->kind == k_type);
        return tp->visit >= firm_type_visited;
 }
 
-static inline int
-_type_not_visited(const ir_type *tp) {
+static inline int _type_not_visited(const ir_type *tp)
+{
        assert(tp && tp->kind == k_type);
        return tp->visit  < firm_type_visited;
 }
 
-static inline type_dbg_info *
-_get_type_dbg_info(const ir_type *tp) {
+static inline type_dbg_info *_get_type_dbg_info(const ir_type *tp)
+{
        return tp->dbi;
 }
 
-static inline void
-_set_type_dbg_info(ir_type *tp, type_dbg_info *db) {
+static inline void _set_type_dbg_info(ir_type *tp, type_dbg_info *db)
+{
        tp->dbi = db;
 }
 
-static inline int
-_is_type(const void *thing) {
+static inline int _is_type(const void *thing)
+{
        return (get_kind(thing) == k_type);
 }
 
-static inline int
-_is_class_type(const ir_type *clss) {
+static inline int _is_class_type(const ir_type *clss)
+{
        assert(clss);
        return (clss->type_op == type_class);
 }
 
-static inline int
-_get_class_n_members (const ir_type *clss) {
+static inline int _get_class_n_members (const ir_type *clss)
+{
        assert(clss && (clss->type_op == type_class));
        return (ARR_LEN (clss->attr.ca.members));
 }
 
-static inline ir_entity *
-_get_class_member   (const ir_type *clss, int pos) {
+static inline ir_entity *_get_class_member(const ir_type *clss, int pos)
+{
        assert(clss && (clss->type_op == type_class));
        assert(pos >= 0 && pos < _get_class_n_members(clss));
        return clss->attr.ca.members[pos];
 }
 
-static inline unsigned
-_get_class_vtable_size(const ir_type *clss) {
+static inline unsigned _get_class_vtable_size(const ir_type *clss)
+{
        assert(clss && (clss->type_op == type_class));
        return clss->attr.ca.vtable_size;
 }
 
-static inline void
-_set_class_vtable_size(ir_type *clss, unsigned vtable_size) {
+static inline void _set_class_vtable_size(ir_type *clss, unsigned vtable_size)
+{
        assert(clss && (clss->type_op == type_class));
        clss->attr.ca.vtable_size = vtable_size;
 }
 
-static inline int
-_is_class_final(const ir_type *clss) {
+static inline int _is_class_final(const ir_type *clss)
+{
        assert(clss && (clss->type_op == type_class));
        return clss->attr.ca.clss_flags & cf_final_class;
 }
 
-static inline void
-_set_class_final(ir_type *clss, int final) {
+static inline void _set_class_final(ir_type *clss, int final)
+{
        assert(clss && (clss->type_op == type_class));
        if (final)
                clss->attr.ca.clss_flags |= cf_final_class;
@@ -446,14 +445,14 @@ _set_class_final(ir_type *clss, int final) {
                clss->attr.ca.clss_flags &= ~cf_final_class;
 }
 
-static inline int
-_is_class_interface(const ir_type *clss) {
+static inline int _is_class_interface(const ir_type *clss)
+{
        assert(clss && (clss->type_op == type_class));
        return clss->attr.ca.clss_flags & cf_interface_class;
 }
 
-static inline void
-_set_class_interface(ir_type *clss, int final) {
+static inline void _set_class_interface(ir_type *clss, int final)
+{
        assert(clss && (clss->type_op == type_class));
        if (final)
                clss->attr.ca.clss_flags |= cf_interface_class;
@@ -461,14 +460,14 @@ _set_class_interface(ir_type *clss, int final) {
                clss->attr.ca.clss_flags &= ~cf_interface_class;
 }
 
-static inline int
-_is_class_abstract(const ir_type *clss) {
+static inline int _is_class_abstract(const ir_type *clss)
+{
        assert(clss && (clss->type_op == type_class));
        return clss->attr.ca.clss_flags & cf_absctract_class;
-       }
+}
 
-static inline void
-_set_class_abstract(ir_type *clss, int final) {
+static inline void _set_class_abstract(ir_type *clss, int final)
+{
        assert(clss && (clss->type_op == type_class));
        if (final)
                clss->attr.ca.clss_flags |= cf_absctract_class;
@@ -476,76 +475,76 @@ _set_class_abstract(ir_type *clss, int final) {
                clss->attr.ca.clss_flags &= ~cf_absctract_class;
 }
 
-static inline int
-_is_struct_type(const ir_type *strct) {
+static inline int _is_struct_type(const ir_type *strct)
+{
        assert(strct);
        return (strct->type_op == type_struct);
 }
 
-static inline int
-_is_method_type(const ir_type *method) {
+static inline int _is_method_type(const ir_type *method)
+{
        assert(method);
        return (method->type_op == type_method);
 }
 
-static inline int
-_is_union_type(const ir_type *uni) {
+static inline int _is_union_type(const ir_type *uni)
+{
        assert(uni);
        return (uni->type_op == type_union);
 }
 
-static inline int
-_is_array_type(const ir_type *array) {
+static inline int _is_array_type(const ir_type *array)
+{
        assert(array);
        return (array->type_op == type_array);
 }
 
-static inline int
-_is_enumeration_type(const ir_type *enumeration) {
+static inline int _is_enumeration_type(const ir_type *enumeration)
+{
        assert(enumeration);
        return (enumeration->type_op == type_enumeration);
 }
 
-static inline int
-_is_pointer_type(const ir_type *pointer) {
+static inline int _is_pointer_type(const ir_type *pointer)
+{
        assert(pointer);
        return (pointer->type_op == type_pointer);
 }
 
 /** Returns true if a type is a primitive type. */
-static inline int
-_is_primitive_type(const ir_type *primitive) {
+static inline int _is_primitive_type(const ir_type *primitive)
+{
        assert(primitive && primitive->kind == k_type);
        return (primitive->type_op == type_primitive);
 }
 
-static inline int
-_is_atomic_type(const ir_type *tp) {
+static inline int _is_atomic_type(const ir_type *tp)
+{
        assert(tp && tp->kind == k_type);
        return (_is_primitive_type(tp) || _is_pointer_type(tp) ||
                _is_enumeration_type(tp));
 }
 
-static inline int
-_get_method_n_params(const ir_type *method) {
+static inline int _get_method_n_params(const ir_type *method)
+{
        assert(method && (method->type_op == type_method));
        return method->attr.ma.n_params;
 }
 
-static inline int
-_get_method_n_ress(const ir_type *method) {
+static inline int _get_method_n_ress(const ir_type *method)
+{
        assert(method && (method->type_op == type_method));
        return method->attr.ma.n_res;
 }
 
-static inline unsigned
-_get_method_additional_properties(const ir_type *method) {
+static inline unsigned _get_method_additional_properties(const ir_type *method)
+{
        assert(method && (method->type_op == type_method));
        return method->attr.ma.additional_properties;
 }
 
-static inline void
-_set_method_additional_properties(ir_type *method, unsigned mask) {
+static inline void _set_method_additional_properties(ir_type *method, unsigned mask)
+{
        assert(method && (method->type_op == type_method));
 
        /* do not allow to set the mtp_property_inherited flag or
@@ -553,8 +552,8 @@ _set_method_additional_properties(ir_type *method, unsigned mask) {
        method->attr.ma.additional_properties = mask & ~mtp_property_inherited;
 }
 
-static inline void
-_set_method_additional_property(ir_type *method, mtp_additional_property flag) {
+static inline void _set_method_additional_property(ir_type *method, mtp_additional_property flag)
+{
        assert(method && (method->type_op == type_method));
 
        /* do not allow to set the mtp_property_inherited flag or
@@ -562,14 +561,14 @@ _set_method_additional_property(ir_type *method, mtp_additional_property flag) {
        method->attr.ma.additional_properties |= flag & ~mtp_property_inherited;
 }
 
-static inline unsigned
-_get_method_calling_convention(const ir_type *method) {
+static inline unsigned _get_method_calling_convention(const ir_type *method)
+{
        assert(method && (method->type_op == type_method));
        return method->attr.ma.irg_calling_conv;
 }
 
-static inline void
-_set_method_calling_convention(ir_type *method, unsigned cc_mask) {
+static inline void _set_method_calling_convention(ir_type *method, unsigned cc_mask)
+{
        assert(method && (method->type_op == type_method));
        method->attr.ma.irg_calling_conv = cc_mask;
 }
index ae88d06..656d2c7 100644 (file)
@@ -430,11 +430,9 @@ void type_walk_super2sub(type_walk_func *pre,
 
 /*****************************************************************************/
 
-static void
-type_walk_super_2(type_or_ent tore,
-                  type_walk_func *pre,
-                  type_walk_func *post,
-                  void *env) {
+static void type_walk_super_2(type_or_ent tore, type_walk_func *pre,
+                              type_walk_func *post, void *env)
+{
        type_or_ent cont;
        int         i, n;
 
@@ -519,11 +517,8 @@ void type_walk_super(type_walk_func *pre,
 /*****************************************************************************/
 
 
-static void
-class_walk_s2s_2(ir_type *tp,
-                 class_walk_func *pre,
-                 class_walk_func *post,
-                 void *env)
+static void class_walk_s2s_2(ir_type *tp, class_walk_func *pre,
+                             class_walk_func *post, void *env)
 {
        int i, n;
 
index 4554c74..8f6fa3b 100644 (file)
@@ -92,44 +92,44 @@ struct tarval {
 /*
  * Access routines for tarval fields ========================================
  */
-static inline ir_mode *
-_get_tarval_mode(const tarval *tv) {
+static inline ir_mode *_get_tarval_mode(const tarval *tv)
+{
        assert(tv);
        return tv->mode;
 }
 
-static inline tarval *
-_get_tarval_bad(void) {
+static inline tarval *_get_tarval_bad(void)
+{
        return tarval_bad;
 }
 
-static inline tarval *
-_get_tarval_undefined(void) {
+static inline tarval *_get_tarval_undefined(void)
+{
        return tarval_undefined;
 }
 
-static inline tarval *
-_get_tarval_b_false(void) {
+static inline tarval *_get_tarval_b_false(void)
+{
        return tarval_b_false;
 }
 
-static inline tarval *
-_get_tarval_b_true(void) {
+static inline tarval *_get_tarval_b_true(void)
+{
        return tarval_b_true;
 }
 
-static inline tarval *
-_get_tarval_reachable(void) {
+static inline tarval *_get_tarval_reachable(void)
+{
        return tarval_reachable;
 }
 
-static inline tarval *
-_get_tarval_unreachable(void) {
+static inline tarval *_get_tarval_unreachable(void)
+{
        return tarval_unreachable;
 }
 
-static inline int
-_is_tarval(const void *thing) {
+static inline int _is_tarval(const void *thing)
+{
        return get_kind(thing) == k_tarval;
 }
 
index 40bb8c0..c4dda15 100644 (file)
@@ -28,8 +28,7 @@ static PyObject* markup;
 static Py_ssize_t escaped_chars_delta_len[ESCAPED_CHARS_TABLE_SIZE];
 static Py_UNICODE *escaped_chars_repl[ESCAPED_CHARS_TABLE_SIZE];
 
-static int
-init_constants(void)
+static int init_constants(void)
 {
        PyObject *module;
        /* happing of characters to replace */
@@ -55,8 +54,7 @@ init_constants(void)
        return 1;
 }
 
-static PyObject*
-escape_unicode(PyUnicodeObject *in)
+static PyObject *escape_unicode(PyUnicodeObject *in)
 {
        PyUnicodeObject *out;
        Py_UNICODE *inp = in->str;
@@ -117,8 +115,7 @@ escape_unicode(PyUnicodeObject *in)
 }
 
 
-static PyObject*
-escape(PyObject *self, PyObject *text)
+static PyObject *escape(PyObject *self, PyObject *text)
 {
        PyObject *s = NULL, *rv = NULL, *html;
 
@@ -155,8 +152,7 @@ escape(PyObject *self, PyObject *text)
 }
 
 
-static PyObject*
-soft_unicode(PyObject *self, PyObject *s)
+static PyObject *soft_unicode(PyObject *self, PyObject *s)
 {
        if (!PyUnicode_Check(s))
                return PyObject_Unicode(s);
@@ -165,8 +161,7 @@ soft_unicode(PyObject *self, PyObject *s)
 }
 
 
-static PyObject*
-tb_set_next(PyObject *self, PyObject *args)
+static PyObject *tb_set_next(PyObject *self, PyObject *args)
 {
        PyTracebackObject *tb, *old;
        PyObject *next;