Skip to content

Commit 0e7383c

Browse files
committed
added general comments to the functions in cleanup.h
1 parent 0bec813 commit 0e7383c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

utils/vqm2blif/src/base/cleanup.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,33 @@ extern int buffers_elim, inverts_elim, oneluts_elim;
1919

2020
void netlist_cleanup (t_module* module);
2121

22+
/*
23+
* Function: remove_node
24+
*
25+
* Removes a specific node within a modules node list (node array)
26+
*
27+
* Parameters:
28+
* node - a pointer to the node to remove from the module node list (node array)
29+
* nodes - The module node list containing all nodes (node array)
30+
* original_num_nodes - an integer that represents the total number of nodes within the module node list (node array)
31+
*
32+
* returns: If successful, then nothing is returned.
33+
* If the node to remove was not found, and assertion is raised.
34+
*
35+
*/
2236
void remove_node ( t_node* node, t_node** nodes, int original_num_nodes );
2337

38+
/*
39+
* Function: reorganize_module_node_list
40+
*
41+
* This function fixes a module node list (node array) that has elements
42+
* within it removed. THe removed elements create gaps within the array and
43+
* this function fills in those gaps so that the array is continuous.
44+
*
45+
* Parameters:
46+
* module - the module that contains a node list with elemets within it deleted
47+
*
48+
*/
2449
void reorganize_module_node_list(t_module* module);
2550

2651
//============================================================================================

0 commit comments

Comments
 (0)