From 609f7f51612548410f927489aec5166b22723a72 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 17 Apr 2003 15:38:34 +0000 Subject: [PATCH] Doxygen docu updated. [r1072] --- ir/ana/irbackedge.c | 42 +++++++++++++++++++++++++----------------- ir/ir/irmode.c | 4 ++-- 2 files changed, 27 insertions(+), 19 deletions(-) diff --git a/ir/ana/irbackedge.c b/ir/ana/irbackedge.c index 0b3bc8219..bcf9f3b2f 100644 --- a/ir/ana/irbackedge.c +++ b/ir/ana/irbackedge.c @@ -13,14 +13,18 @@ #include "array.h" #include "irbackedge_t.h" -/**********************************************************************/ -/** Backedge information. **/ -/**********************************************************************/ - - -/* Returns backarray if the node can have backedges. Else returns - NULL. Does not assert whether the backarray is correct -- use - very careful! */ +/*--------------------------------------------------------------------*/ +/* Backedge information. * */ +/*--------------------------------------------------------------------*/ + + +/** + * Returns backarray if the node can have backedges, else returns + * NULL. + * + * Does not assert whether the backarray is correct -- use + * very careful! + */ static INLINE int *mere_get_backarray(ir_node *n) { switch(get_irn_opcode(n)) { case iro_Block: @@ -48,8 +52,10 @@ static INLINE int *mere_get_backarray(ir_node *n) { return NULL; } -/* Returns backarray if the node can have backedges. Else returns - NULL. */ +/** + * Returns backarray if the node can have backedges, else returns + * NULL. + */ static INLINE int *get_backarray(ir_node *n) { int *ba = mere_get_backarray(n); @@ -62,8 +68,10 @@ static INLINE int *get_backarray(ir_node *n) { return ba; } -/* returns true if node has no backarray, or - if size of backarray == size of in array. */ +/** + * Returns true if node has no backarray, or + * if size of backarray == size of in array. + */ static INLINE bool legal_backarray (ir_node *n) { int *ba = mere_get_backarray(n); if (ba && (ARR_LEN(ba) != ARR_LEN(get_irn_in(n))-1)) /* Use get_irn_in -- sensitive to view! */ @@ -95,28 +103,28 @@ INLINE void fix_backedges(struct obstack *obst, ir_node *n) { //} } -/* Returns true if the predesessor pos is a backedge. */ +/** Returns true if the predesessor pos is a backedge. */ bool is_backedge (ir_node *n, int pos) { int *ba = get_backarray (n); if (ba) return ba[pos]; return false; } -/* Remarks that edge pos is a backedge. */ +/** Remarks that edge pos is a backedge. */ void set_backedge (ir_node *n, int pos) { int *ba = get_backarray (n); assert(ba && "can only set backedges at Phi, Filter, Block nodes."); ba[pos] = 1; } -/* Remarks that edge pos is a backedge. */ +/** Remarks that edge pos is a backedge. */ void set_not_backedge (ir_node *n, int pos) { int *ba = get_backarray (n); assert(ba && "can only set backedges at Phi, Filter, Block nodes."); ba[pos] = 0; } -/* Returns true if n has backedges. */ +/** Returns true if n has backedges. */ bool has_backedges (ir_node *n) { int i; int *ba = get_backarray (n); @@ -126,7 +134,7 @@ bool has_backedges (ir_node *n) { return false; } -/* Sets all backedge information to zero. */ +/** Sets all backedge information to zero. */ void clear_backedges (ir_node *n) { int i, rem = interprocedural_view; int *ba; diff --git a/ir/ir/irmode.c b/ir/ir/irmode.c index d07496e0b..aed78dfdf 100644 --- a/ir/ir/irmode.c +++ b/ir/ir/irmode.c @@ -31,7 +31,7 @@ static long long count = 0; * * */ -/* dynamic array to hold all modes */ +/** dynamic array to hold all modes */ static ir_mode * modes; /* dynamic arrays to hold special modes' values */ static tarval** modes_min; @@ -39,7 +39,7 @@ static tarval** modes_max; static tarval** modes_null; static tarval** modes_one; -/* number of defined modes */ +/** number of defined modes */ static int num_modes; /* * * -- 2.20.1