From: Sebastian Buchwald Date: Mon, 24 Aug 2009 19:17:56 +0000 (+0000) Subject: Fixed more doxygen warnings and typos. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=acbdf295cc01d5b69b1cb8ea2c7764dca1e7b8ac;p=libfirm Fixed more doxygen warnings and typos. [r26419] --- diff --git a/include/libfirm/adt/gaussjordan.h b/include/libfirm/adt/gaussjordan.h index c89977bf6..f8457f064 100644 --- a/include/libfirm/adt/gaussjordan.h +++ b/include/libfirm/adt/gaussjordan.h @@ -8,8 +8,9 @@ /** * solves a system of linear equations and returns 0 if successful * - * @param A the linear equations as matrix - * @param b the result vector, will contain the result if successful + * @param A the linear equations as matrix + * @param b the result vector, will contain the result if successful + * @param nsize the size of the equation system */ int firm_gaussjordansolve(double *A, double *b, int nsize); diff --git a/include/libfirm/adt/hungarian.h b/include/libfirm/adt/hungarian.h index 8a653617a..0744d699a 100644 --- a/include/libfirm/adt/hungarian.h +++ b/include/libfirm/adt/hungarian.h @@ -15,7 +15,7 @@ ** "Stanford GraphGase", but I made changes to this code. ** As asked by the copyright node of the "Stanford GraphGase", ** I hereby proclaim that this file are *NOT* part of the - ** "Stanford GraphGase" distrubition! + ** "Stanford GraphGase" distribution! ** ** This file is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied @@ -65,7 +65,7 @@ void hungarian_add(hungarian_problem_t *p, int left, int right, int cost); void hungarian_remv(hungarian_problem_t *p, int left, int right); /** - * Prepares the cost matrix, dependend on the given mode. + * Prepares the cost matrix dependent on the given mode. * * @param p The hungarian object * @param mode HUNGARIAN_MODE_MAXIMIZE_UTIL or HUNGARIAN_MODE_MINIMIZE_COST (default) @@ -89,7 +89,8 @@ int hungarian_solve(hungarian_problem_t *p, int *assignment, int *final_cost, in /** * Print the cost matrix. - * @param p The hungarian object + * @param p The hungarian object + * @param cost_width The minimum field width of the costs */ void hungarian_print_costmatrix(hungarian_problem_t *p, int cost_width); diff --git a/include/libfirm/adt/pset.h b/include/libfirm/adt/pset.h index e06baf738..058cbabec 100644 --- a/include/libfirm/adt/pset.h +++ b/include/libfirm/adt/pset.h @@ -83,7 +83,7 @@ typedef int (*pset_cmp_fun) (const void *elt, const void *key); * Creates a new pset. * * @param func The compare function of this pset. - * @param slots Initial number of collision chains. I.e., #slots + * @param slots Initial number of collision chains. I.e., \#slots * different keys can be hashed without collisions. * * @returns diff --git a/include/libfirm/adt/set.h b/include/libfirm/adt/set.h index 6d736dff6..bbc8fbc0b 100644 --- a/include/libfirm/adt/set.h +++ b/include/libfirm/adt/set.h @@ -67,7 +67,7 @@ typedef int (*set_cmp_fun) (const void *elt, const void *key, size_t size); * Creates a new set. * * @param func The compare function of this set. - * @param slots Initial number of collision chains. I.e., #slots + * @param slots Initial number of collision chains. I.e., \#slots * different keys can be hashed without collisions. * * @returns diff --git a/include/libfirm/firmstat.h b/include/libfirm/firmstat.h index b5ff9b67a..e28b8c00d 100644 --- a/include/libfirm/firmstat.h +++ b/include/libfirm/firmstat.h @@ -169,7 +169,7 @@ enum firmstat_optimizations_t { * Never called from libFirm should be called from user. * * @param fname base name of the statistic output file - * @param phase a phase name. Prefix will be firmstat-- + * @param phase a phase name. Prefix will be firmstat-\- */ void stat_dump_snapshot(const char *fname, const char *phase); @@ -178,7 +178,7 @@ void stat_dump_snapshot(const char *fname, const char *phase); * * @param name the name of this pass or NULL * @param fname base name of the statistic output file - * @param phase a phase name. Prefix will be firmstat-- + * @param phase a phase name. Prefix will be firmstat-\- * * @return the newly created ir_prog pass */ diff --git a/include/libfirm/ident.h b/include/libfirm/ident.h index 0493ef103..d42c6f5ec 100644 --- a/include/libfirm/ident.h +++ b/include/libfirm/ident.h @@ -46,15 +46,15 @@ struct ident_if_t { * This function may be NULL, new_id_from_chars() * is then used to emulate its behavior. * - * @param str - the string which shall be stored + * @param str the string which shall be stored */ ident *(*new_id_from_str)(void *handle, const char *str); /** * Store a string and create an ident. * - * @param str - the string (or whatever) which shall be stored - * @param len - the length of the data in bytes + * @param str the string (or whatever) which shall be stored + * @param len the length of the data in bytes */ ident *(*new_id_from_chars)(void *handle, const char *str, int len); @@ -68,7 +68,7 @@ struct ident_if_t { * This function may be NULL, get_id_str() is then used * to emulate its behavior. * - * @param id - the ident + * @param id the ident */ int (*get_id_strlen)(void *handle, ident *id); @@ -85,9 +85,9 @@ struct ident_if_t { * * Copies the string. @p str must be zero terminated * - * @param str - the string which shall be stored + * @param str the string which shall be stored * - * @return id - a handle for the generated ident + * @return id a handle for the generated ident * * @see get_id_str(), get_id_strlen() */ @@ -98,10 +98,10 @@ ident *new_id_from_str (const char *str); * Stores a string in the ident module and returns a handle for the string. * Copies the string. This version takes non-zero-terminated strings. * - * @param str - the string (or whatever) which shall be stored - * @param len - the length of the data in bytes + * @param str the string (or whatever) which shall be stored + * @param len the length of the data in bytes * - * @return id - a handle for the generated ident + * @return id a handle for the generated ident * * @see new_id_from_str(), get_id_strlen() */ @@ -113,9 +113,9 @@ ident *new_id_from_chars (const char *str, int len); * Returns the string represented by id. This string is * NULL terminated. The string may not be changed. * - * @param id - the ident + * @param id the ident * - * @return cp - a string + * @return cp a string * * @see new_id_from_str(), new_id_from_chars(), get_id_strlen() */ @@ -124,9 +124,9 @@ const char *get_id_str (ident *id); /** * Returns the length of the string represented by an ident. * - * @param id - the ident + * @param id the ident * - * @return len - the length of the string + * @return len the length of the string * * @see new_id_from_str(), new_id_from_chars(), get_id_str() */ @@ -135,8 +135,8 @@ int get_id_strlen(ident *id); /** * Returns true if prefix is a prefix of an ident. * - * @param prefix - the prefix - * @param id - the ident + * @param prefix the prefix + * @param id the ident * * @see new_id_from_str(), new_id_from_chars(), get_id_str(), id_is_prefix() */ @@ -145,28 +145,18 @@ int id_is_prefix (ident *prefix, ident *id); /** * Returns true if suffix is a suffix of an ident. * - * @param suffix - the suffix - * @param id - the ident + * @param suffix the suffix + * @param id the ident * * @see new_id_from_str(), new_id_from_chars(), get_id_str(), id_is_prefix() */ int id_is_suffix (ident *suffix, ident *id); -/** - * Returns true if infix is contained in id. (Can be suffix or prefix) - * - * @param infix - the infix - * @param id - the ident to search in - * - * @see new_id_from_str(), new_id_from_chars(), get_id_str(), id_is_prefix() - */ -/* int id_contains(ident *infix, ident *id); */ - /** * Return true if an ident contains a given character. * - * @param id - the ident - * @param c - the character + * @param id the ident + * @param c the character * * @see new_id_from_str(), new_id_from_chars(), get_id_str() */ diff --git a/include/libfirm/irdump.h b/include/libfirm/irdump.h index 87f38713c..45de03e27 100644 --- a/include/libfirm/irdump.h +++ b/include/libfirm/irdump.h @@ -212,7 +212,7 @@ void dump_ir_block_graph_file(ir_graph *irg, FILE *out); void dump_ir_extblock_graph(ir_graph *irg, const char *suffix); void dump_ir_extblock_graph_file(ir_graph *irg, FILE *out); -/** Dumps all graphs in interprocedural view to a file named All_graphs.vcg. +/** Dumps all graphs in interprocedural view to a file named All_graphs\.vcg. * * @param suffix A suffix for the file name. */ @@ -321,7 +321,7 @@ void dump_cfg(ir_graph *irg, const char *suffix); * * Dumps the graph to a file. The file name is constructed from the * name of the entity describing the procedure the passed node is - * in, suffix and the ending -subg_.vcg. nr is a unique number + * in, suffix and the ending -subg_\.vcg. nr is a unique number * for each graph dumped. Eventually overwrites existing files. * * @return @@ -336,7 +336,7 @@ void dump_subgraph(ir_node *root, int depth, const char *suffix); /** Dump the call graph. * - * Dumps the callgraph to a file "Callgraph"".vcg". + * Dumps the callgraph to a file "Callgraph"\".vcg". * * @param suffix A suffix for the file name. * @@ -409,7 +409,7 @@ void dump_class_hierarchy(int entities, const char *suffix); /** * Dump a standalone loop tree, which contains the loop nodes and the firm nodes * belonging to one loop packed together in one subgraph. Dumps to file - * -looptree.vcg + * \\-looptree.vcg * Turns on edge labels by default. * * Implementing this dumper was stimulated by Florian Liekwegs similar dumper. @@ -422,7 +422,7 @@ void dump_loop_tree(ir_graph *irg, const char *suffix); /** Dumps the firm nodes in the sub-loop-tree of loop to a graph. * * Dumps the loop nodes if dump_loop_information() is set. - * The name of the file is loop_.vcg. + * The name of the file is loop_\.vcg. * * @param l Dump the loop tree for this loop. * @param suffix A suffix for the file name. @@ -432,7 +432,7 @@ void dump_loop(ir_loop *l, const char *suffix); /** Dumps the loop tree over the call graph. * * See for yourself what you can use this for. - * The filename is "Callgraph_looptree.vcg". + * The filename is "Callgraph_looptree\.vcg". * * @param suffix A suffix for the file name. */ @@ -470,7 +470,7 @@ void dump_graph(ir_graph *g); * but the relations between the nodes only implicitly. * * The file name is the graph name (get_entity_name()), appended by - * .txt. + * \.txt. */ void dump_graph_as_text(ir_graph *irg, const char *suffix); @@ -543,7 +543,7 @@ void dump_type(ir_type *tp); * the global type nor frame types or the like. * * The file name is the program name (get_irp_name()), or 'TextTypes' - * if the program name is not set, appended by -types.txt. + * if the program name is not set, appended by \-types.txt. * For verbosity see the documentation of the verbosity flags above. */ void dump_types_as_text(unsigned verbosity, const char *suffix); @@ -555,7 +555,7 @@ void dump_types_as_text(unsigned verbosity, const char *suffix); * Dumps a text representation of the entities in the global type. * * The file name is the program name (get_irp_name()), or 'TextTypes' - * if the program name is not set, appended by -globals.txt. + * if the program name is not set, appended by \-globals.txt. * For verbosity see the documentation of the verbosity flags above. */ void dump_globals_as_text(unsigned verbosity, const char *suffix); diff --git a/include/libfirm/iredges.h b/include/libfirm/iredges.h index febb40d48..306c9e261 100644 --- a/include/libfirm/iredges.h +++ b/include/libfirm/iredges.h @@ -65,6 +65,7 @@ const ir_edge_t *get_irn_out_edge_next(const ir_node *irn, const ir_edge_t *last * @param irn The node. * @param edge An ir_edge_t pointer which shall be set to the current edge. * @param ne The next edge, enables alteration safe edge processing. + * @param kind The kind of the edge. */ #define foreach_out_edge_kind_safe(irn, edge, ne, kind) \ for((edge) = (get_irn_out_edge_first_kind(irn, kind)), (ne) = ((edge) ? (get_irn_out_edge_next(irn, edge)) : NULL); \ @@ -101,9 +102,10 @@ int get_edge_src_pos(const ir_edge_t *edge); /** * Get the edge object of an outgoing edge at a node. - * @param irg The graph, the node is in. - * @param irn The node at which the edge originates. - * @param pos The position of the edge. + * @param irg The graph, the node is in. + * @param irn The node at which the edge originates. + * @param pos The position of the edge. + * @param kind The kind of the edge. * @return The corresponding edge object or NULL, * if no such edge exists. */ diff --git a/include/libfirm/irmemory.h b/include/libfirm/irmemory.h index 48f5c4c49..62e19dce5 100644 --- a/include/libfirm/irmemory.h +++ b/include/libfirm/irmemory.h @@ -226,14 +226,14 @@ unsigned get_irg_memory_disambiguator_options(const ir_graph *irg); * Set the memory disambiguator options for a graph. * * @param irg the graph - * @param option a set of options + * @param options a set of options */ void set_irg_memory_disambiguator_options(ir_graph *irg, unsigned options); /** * Set the global disambiguator options for all graphs not having local options. * - * @param option a set of options + * @param options a set of options */ void set_irp_memory_disambiguator_options(unsigned options); diff --git a/include/libfirm/iroptimize.h b/include/libfirm/iroptimize.h index 2a97127d8..4fae6e983 100644 --- a/include/libfirm/iroptimize.h +++ b/include/libfirm/iroptimize.h @@ -220,7 +220,7 @@ void do_gvn_pre(ir_graph *irg); /** * Creates an ir_graph pass for do_gvn_pre(). * - * @param dump should this pass result be dumped? + * @param name the name of this pass or NULL * * @return the newly created ir_graph pass */ @@ -764,13 +764,14 @@ ir_graph_pass_t *combo_pass(const char *name); * from a SymConst node that references the entity representing the called * method. * - * @param size maximum function size + * @param irg the graph + * @param size maximum function size * * The size argument is a rough measure for the code size of the method: * Methods where the obstack containing the firm graph is smaller than * size are inlined. Further only a limited number of calls are inlined. * If the method contains more than 1024 inlineable calls none will be - * nlined. + * inlined. * Inlining is only performed if flags `optimize' and `inlineing' are set. * The graph may not be in state phase_building. * It is recommended to call local_optimize_graph() after inlining as this @@ -838,21 +839,21 @@ ir_prog_pass_t *inline_leave_functions_pass( * Heuristic inliner. Calculates a benefice value for every call and inlines * those calls with a value higher than the threshold. * - * @param maxsize Do not inline any calls if a method has more than - * maxsize firm nodes. It may reach this limit by - * inlineing. - * @param threshold inlining threshold + * @param maxsize Do not inline any calls if a method has more than + * maxsize firm nodes. It may reach this limit by + * inlining. + * @param inline_threshold inlining threshold */ void inline_functions(unsigned maxsize, int inline_threshold); /** * Creates an ir_prog pass for inline_functions(). * - * @param name the name of this pass or NULL - * @param maxsize Do not inline any calls if a method has more than - * maxsize firm nodes. It may reach this limit by - * inlineing. - * @param threshold inlining threshold + * @param name the name of this pass or NULL + * @param maxsize Do not inline any calls if a method has more than + * maxsize firm nodes. It may reach this limit by + * inlineing. + * @param inline_threshold inlining threshold * * @return the newly created ir_prog pass */ diff --git a/include/libfirm/irprog.h b/include/libfirm/irprog.h index 523c3df96..53a5a5feb 100644 --- a/include/libfirm/irprog.h +++ b/include/libfirm/irprog.h @@ -96,7 +96,7 @@ ir_prog *get_irp(void); * Creates a new ir_prog (a module or compilation unit), * returns it and sets irp with it. * - * @param module_name the name of this irp (module) + * @param name the name of this irp (module) */ ir_prog *new_ir_prog(const char *name); diff --git a/include/libfirm/irtypeinfo.h b/include/libfirm/irtypeinfo.h index c7664696f..60941f9cd 100644 --- a/include/libfirm/irtypeinfo.h +++ b/include/libfirm/irtypeinfo.h @@ -54,7 +54,7 @@ extern ir_type *initial_type; * Initializes the type information module. * Generates a type inititial_type and sets the type of all nodes to this type. * Calling set/get_irn_typeinfo_type() is invalid before calling init. Requires memory - * in the order of MIN(, #irnodes). + * in the order of MIN(\, \#irnodes). */ void init_irtypeinfo(void); void free_irtypeinfo(void); diff --git a/include/libfirm/structure.h b/include/libfirm/structure.h index f0f2aef68..44917778e 100644 --- a/include/libfirm/structure.h +++ b/include/libfirm/structure.h @@ -162,6 +162,7 @@ int get_region_n_preds(const ir_region *reg); * Return the predecessor region at position pos. * * @param reg the region + * @param pos the position number */ ir_region *get_region_pred(const ir_region *reg, int pos); diff --git a/include/libfirm/trouts.h b/include/libfirm/trouts.h index fb8bcf366..8ad827cfd 100644 --- a/include/libfirm/trouts.h +++ b/include/libfirm/trouts.h @@ -77,9 +77,9 @@ int get_type_n_casts(const ir_type *tp); /** Cast node that cast a pointer to this type. */ ir_node *get_type_cast(const ir_type *tp, int pos); void add_type_cast(const ir_type *tp, ir_node *cast); -/** Return number of upcasts. O(#casts). */ +/** Return number of upcasts. O(\#casts). */ int get_class_n_upcasts(const ir_type *clss); -/** Return number of downcasts. O(#casts). */ +/** Return number of downcasts. O(\#casts). */ int get_class_n_downcasts(const ir_type *clss); /* Access all pointer types that point to tp. */ diff --git a/include/libfirm/tv.h b/include/libfirm/tv.h index a3379db3d..311e0cfdb 100644 --- a/include/libfirm/tv.h +++ b/include/libfirm/tv.h @@ -609,7 +609,7 @@ tarval *tarval_shrs(tarval *a, tarval *b); * @param a the first tarval * @param b the second tarval * - * @return a <> b or tarval_bad + * @return a \<\\> b or tarval_bad */ tarval *tarval_rotl(tarval *a, tarval *b); @@ -770,7 +770,7 @@ int tarval_ieee754_get_exponent(tarval *tv); * precision loss. * * @param tv the tarval - * param mode the mode to convert to + * @param mode the mode to convert to */ int tarval_ieee754_can_conv_lossless(tarval *tv, ir_mode *mode); diff --git a/include/libfirm/typerep.h b/include/libfirm/typerep.h index fb3446854..758b62d51 100644 --- a/include/libfirm/typerep.h +++ b/include/libfirm/typerep.h @@ -1074,7 +1074,7 @@ inh_transitive_closure_state get_irp_inh_transitive_closure_state(void); /** Compute transitive closure of the subclass/superclass and * overwrites/overwrittenby relation. * - * This function walks over the ir (O(#types+#entities)) to compute the + * This function walks over the ir (O(\#types+\#entities)) to compute the * transitive closure. */ void compute_inh_transitive_closure(void); @@ -2260,7 +2260,7 @@ ir_type *get_pointer_points_to_type(ir_type *pointer); int is_Pointer_type(const ir_type *pointer); /** Returns the first pointer type that has as points_to tp. - * Not efficient: O(#types). + * Not efficient: O(\#types). * If not found returns firm_unknown_type. */ ir_type *find_pointer_type_to_type(ir_type *tp);