[svn:parrot] r37793 - trunk/compilers/imcc

coke at svn.parrot.org coke at svn.parrot.org
Sat Mar 28 01:53:06 UTC 2009


Author: coke
Date: Sat Mar 28 01:53:06 2009
New Revision: 37793
URL: https://trac.parrot.org/parrot/changeset/37793

Log:
[docs] Fixup function docs to pass t/codingstd/c_function_docs.t 
(Just needed signature updates)

Modified:
   trunk/compilers/imcc/cfg.c

Modified: trunk/compilers/imcc/cfg.c
==============================================================================
--- trunk/compilers/imcc/cfg.c	Sat Mar 28 01:50:21 2009	(r37792)
+++ trunk/compilers/imcc/cfg.c	Sat Mar 28 01:53:06 2009	(r37793)
@@ -206,7 +206,8 @@
 
 /*
 
-=item C<static int check_invoke_type>
+=item C<static int check_invoke_type(PARROT_INTERP, const IMC_Unit *unit,
+const Instruction *ins)>
 
 Given an invoke-type instruction, returns the type of the invocation.
 
@@ -246,7 +247,7 @@
 
 /*
 
-=item C<void find_basic_blocks>
+=item C<void find_basic_blocks(PARROT_INTERP, IMC_Unit *unit, int first)>
 
 Finds all basic blocks in the given IMC_Unit, expanding PCC calls if first is
 true.
@@ -358,7 +359,8 @@
 
 /*
 
-=item C<static void bb_check_set_addr>
+=item C<static void bb_check_set_addr(PARROT_INTERP, IMC_Unit *unit,
+Basic_block *bb, const SymReg *label)>
 
 Looks for a C<set_addr> op in the current unit referring to the given label.
 
@@ -394,7 +396,7 @@
 
 /*
 
-=item C<void build_cfg>
+=item C<void build_cfg(PARROT_INTERP, IMC_Unit *unit)>
 
 Once the basic blocks have been computed, build_cfg computes the dependencies
 between them.
@@ -536,7 +538,8 @@
 
 /*
 
-=item C<static void bb_findadd_edge>
+=item C<static void bb_findadd_edge(PARROT_INTERP, IMC_Unit *unit,
+Basic_block *from, const SymReg *label)>
 
 Finds the placement of the given label and links its containing block to the
 given basic block.
@@ -577,7 +580,7 @@
 
 /*
 
-=item C<int blocks_are_connected>
+=item C<int blocks_are_connected(const Basic_block *from, const Basic_block *to)>
 
 Returns true or false whether the given blocks are linked.
 
@@ -607,7 +610,7 @@
 
 /*
 
-=item C<static void bb_add_edge>
+=item C<static void bb_add_edge(IMC_Unit *unit, Basic_block *from, Basic_block *to)>
 
 Adds an edge between the two given blocks.
 
@@ -650,7 +653,7 @@
 
 /*
 
-=item C<static void bb_remove_edge>
+=item C<static void bb_remove_edge(IMC_Unit *unit, Edge *edge)>
 
 Removes the given edge from the graph.
 
@@ -705,7 +708,7 @@
 
 /*
 
-=item C<static void free_edge>
+=item C<static void free_edge(IMC_Unit *unit)>
 
 Frees the memory of an IMC_Unit's edge list.
 
@@ -731,7 +734,7 @@
 
 /*
 
-=item C<int edge_count>
+=item C<int edge_count(const IMC_Unit *unit)>
 
 Counts and returns the number of edges in the specified IMC_Unit.
 
@@ -757,7 +760,7 @@
 
 /*
 
-=item C<void life_analysis>
+=item C<void life_analysis(PARROT_INTERP, const IMC_Unit *unit)>
 
 This driver routine calls analyse_life_symbol for each reglist in the specified
 IMC_Unit.
@@ -782,7 +785,7 @@
 
 /*
 
-=item C<static void analyse_life_symbol>
+=item C<static void analyse_life_symbol(const IMC_Unit *unit, SymReg* r)>
 
 Analyzes the lifetime for a given symbol.
 
@@ -845,7 +848,7 @@
 
 /*
 
-=item C<void free_life_info>
+=item C<void free_life_info(const IMC_Unit *unit, SymReg *r)>
 
 Frees memory of the life analysis info structures.
 
@@ -875,7 +878,7 @@
 
 /*
 
-=item C<static void analyse_life_block>
+=item C<static void analyse_life_block(const Basic_block* bb, SymReg *r)>
 
 Studies the state of the var r in the block bb.
 
@@ -956,7 +959,7 @@
 
 /*
 
-=item C<static void propagate_need>
+=item C<static void propagate_need(Basic_block *bb, const SymReg *r, int i)>
 
 Follows the uses of the given symbol through all of the basic blocks of the
 unit.
@@ -1023,7 +1026,7 @@
 
 /*
 
-=item C<void compute_dominators>
+=item C<void compute_dominators(PARROT_INTERP, IMC_Unit *unit)>
 
 Computes the dominators tree of the CFG.  Basic block A dominates B if each
 path to B passes through A
@@ -1164,7 +1167,7 @@
 
 /*
 
-=item C<void compute_dominance_frontiers>
+=item C<void compute_dominance_frontiers(PARROT_INTERP, IMC_Unit *unit)>
 
 Algorithm to find dominance frontiers described in paper "A Simple, Fast
 Dominance Algorithm", Cooper et al. (2001)
@@ -1227,7 +1230,7 @@
 
 /*
 
-=item C<static void free_dominators>
+=item C<static void free_dominators(IMC_Unit *unit)>
 
 Frees the memory in the given unit related to all dominators.
 
@@ -1255,7 +1258,7 @@
 
 /*
 
-=item C<static void free_dominance_frontiers>
+=item C<static void free_dominance_frontiers(IMC_Unit *unit)>
 
 Frees the memory in the given unit related to all dominance frontiers.
 
@@ -1282,7 +1285,7 @@
 
 /*
 
-=item C<static void sort_loops>
+=item C<static void sort_loops(PARROT_INTERP, IMC_Unit *unit)>
 
 Sorts the loops found in the CFG of the current unit.
 
@@ -1362,7 +1365,7 @@
 
 /*
 
-=item C<void find_loops>
+=item C<void find_loops(PARROT_INTERP, IMC_Unit *unit)>
 
 Searches for loops in the CFG. We search for edges that go from a node to one
 of its dominators.
@@ -1397,7 +1400,7 @@
 
 /*
 
-=item C<int natural_preheader>
+=item C<int natural_preheader(const IMC_Unit *unit, const Loop_info *loop_info)>
 
 For loop_info, finds the natural preheader of the loop, if any, and returns its
 index, otherwise returns -1.  A natural preheader exists if there is only one
@@ -1440,7 +1443,7 @@
 
 /*
 
-=item C<static void mark_loop>
+=item C<static void mark_loop(PARROT_INTERP, IMC_Unit *unit, const Edge *e)>
 
 Increases the loop_depth of all the nodes in a loop.
 
@@ -1527,7 +1530,7 @@
 
 /*
 
-=item C<static void free_loops>
+=item C<static void free_loops(IMC_Unit *unit)>
 
 Frees the memory associated with the loops in this unit.
 
@@ -1556,7 +1559,7 @@
 
 /*
 
-=item C<void search_predecessors_not_in>
+=item C<void search_predecessors_not_in(const Basic_block *node, Set *s)>
 
 Searches for predecessor edges for this node not in the given set (and adds
 them).
@@ -1586,7 +1589,7 @@
 
 /*
 
-=item C<static void init_basic_blocks>
+=item C<static void init_basic_blocks(IMC_Unit *unit)>
 
 Initializes the basic blocks memory for this unit.
 
@@ -1612,7 +1615,7 @@
 
 /*
 
-=item C<void clear_basic_blocks>
+=item C<void clear_basic_blocks(IMC_Unit *unit)>
 
 Frees all of the blocks and CFG memory allocated for this unit.
 
@@ -1644,7 +1647,8 @@
 
 /*
 
-=item C<static Basic_block* make_basic_block>
+=item C<static Basic_block* make_basic_block(IMC_Unit *unit,
+Instruction *ins)>
 
 Creates, initializes, and returns a new Basic_block.
 
@@ -1685,7 +1689,7 @@
 
 /*
 
-=item C<Life_range * make_life_range>
+=item C<Life_range * make_life_range(SymReg *r, int idx)>
 
 Creates and returns a Life_range for the given register at the specified index.
 


More information about the parrot-commits mailing list