Fix typos in comments: s/it's/its/ and related corrections.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 9 Mar 2011 14:17:15 +0000 (15:17 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 9 Mar 2011 14:17:15 +0000 (15:17 +0100)
53 files changed:
include/libfirm/adt/pset.h
include/libfirm/adt/set.h
include/libfirm/ircons.h
include/libfirm/irextbb.h
include/libfirm/irgraph.h
include/libfirm/irgwalk.h
include/libfirm/irnode.h
include/libfirm/iroptimize.h
include/libfirm/irouts.h
ir/adt/cpset.c
ir/adt/gaussjordan.c
ir/ana/callgraph.c
ir/ana/cgana.c
ir/ana/irconsconfirm.c
ir/ana/irextbb.c
ir/ana/irmemory.c
ir/ana/irouts.c
ir/be/becopyheur4.c
ir/be/begnuas.c
ir/be/beirg.h
ir/be/beloopana.c
ir/be/belower.c
ir/be/bepeephole.c
ir/be/bepeephole.h
ir/be/bespillbelady.c
ir/be/bespillutil.h
ir/be/bessaconstr.c
ir/be/bessaconstr.h
ir/be/ia32/ia32_optimize.c
ir/be/scripts/generate_new_opcodes.pl
ir/common/debug.c
ir/ident/mangle.c
ir/ir/irdump.c
ir/ir/iredges.c
ir/ir/irgopt.c
ir/ir/irgraph.c
ir/ir/irgwalk.c
ir/ir/iropt.c
ir/opt/cfopt.c
ir/opt/code_placement.c
ir/opt/combo.c
ir/opt/opt_frame.c
ir/opt/opt_inline.c
ir/opt/opt_ldst.c
ir/opt/opt_osr.c
ir/opt/return.c
ir/opt/scalar_replace.c
ir/opt/scalar_replace.h
ir/tr/entity.c
ir/tr/tpop_t.h
ir/tr/type_finalization.c
ir/tr/type_t.h
scripts/ir_spec.py

index 773d276..851daa4 100644 (file)
@@ -64,7 +64,7 @@ typedef struct pset pset;
 #define pset_new_ptr(slots)       new_pset(pset_default_ptr_cmp, slots)
 #define pset_new_ptr_default()    pset_new_ptr(64)
 
-/** The entry of a pset, representing an element pointer in the set and it's meta-information */
+/** The entry of a pset, representing an element pointer in the set and its meta-information */
 typedef struct {
   unsigned hash;
   void *dptr;
@@ -99,7 +99,7 @@ FIRM_API pset *new_pset(pset_cmp_fun func, size_t slots);
  * @param pset   the pset
  *
  * @note
- *    This does NOT delete the elements of this pset, just it's pointers!
+ *    This does NOT delete the elements of this pset, just its pointers!
  */
 FIRM_API void del_pset(pset *pset);
 
index 7e762dc..1c9be8e 100644 (file)
@@ -40,7 +40,7 @@
  */
 typedef struct set set;
 
-/** The entry of a set, representing an element in the set and it's meta-information */
+/** The entry of a set, representing an element in the set and its meta-information */
 typedef struct set_entry {
        unsigned hash;  /**< the hash value of the element */
        size_t size;    /**< the size of the element */
index 171eebc..2d0a7a5 100644 (file)
  *    Parameter
  *      arity            number of predecessors
  *      **in             array with predecessors
- *      *mode            The mode of it's inputs and output.
+ *      *mode            The mode of its inputs and output.
  *    Inputs:
  *      A Phi node has as many inputs as the block it belongs to.
  *      Each input points to a definition of the same value on a
  *    replaced by the Tuple operation so that the following Proj nodes have not to
  *    be changed.  (They are hard to find due to the implementation with pointers
  *    in only one direction.)  The Tuple node is smaller than any other
- *    node, so that a node can be changed into a Tuple by just changing it's
+ *    node, so that a node can be changed into a Tuple by just changing its
  *    opcode and giving it a new in array.
  *
  *    Parameters
  *    ir_node *new_Id (ir_node *val, ir_mode *mode)
  *    ---------------------------------------------
  *
- *    The single output of the Id operation is it's input.  Also needed
+ *    The single output of the Id operation is its input.  Also needed
  *    for optimizations.
  *
  *
  *    e.g. if there is only one definition of this value, but this
  *    definition reaches the currend block on several different
  *    paths.  This Phi node will be eliminated if optimizations are
- *    turned on right after it's creation.
+ *    turned on right after its creation.
  *    Requires current_block to be set correctly.
  *
  *    There are two special routines for the global store:
index a4a2c85..39fce5f 100644 (file)
@@ -165,7 +165,7 @@ FIRM_API long get_extbb_node_nr(const ir_extblk *blk);
  *               visited
  * @param env  - environment, passed to pre and post
  *
- * This function Walks only over Block nodes in the graph. Has it's own visited
+ * This function Walks only over Block nodes in the graph. Has its own visited
  * flag, so that it can be interleaved with the other walker.
  * If a none block is passed, starts at the block this node belongs to.
  * If end is passed also visits kept alive blocks. Does not use the link field.
index a433bcb..851035f 100644 (file)
@@ -76,7 +76,7 @@
  *                   with a Sel node the pointer to a thread local variable.
  *
  * - args            The ir_node that produces the arguments of the method as
- *                   it's result.  This is a Proj node on the fourth output of
+ *                   its result.  This is a Proj node on the fourth output of
  *                   the start node.  This output is tagged as pn_Start_T_args.
  *
  * - proj_args       The proj nodes of the args node.
@@ -138,11 +138,11 @@ FIRM_API void set_current_ir_graph(ir_graph *graph);
  * to point to this graph. Further it allocates the following nodes needed
  * for every procedure:
  *
- * - The start block containing a start node and Proj nodes for it's
+ * - The start block containing a start node and Proj nodes for its
  *   seven results (X, M, P, P, P, T, P).
  * - The end block containing an end node. This block is not matured
  *   after executing new_ir_graph() as predecessors need to be added to it.
- *   (Maturing a block means fixing it's number of predecessors.)
+ *   (Maturing a block means fixing its number of predecessors.)
  * - The current block, which is empty and also not matured.
  *
  * Further it enters the global store into the data structure of the start
index 33592ef..98d80c2 100644 (file)
@@ -137,7 +137,7 @@ FIRM_API void all_irg_walk(irg_walk_func *pre, irg_walk_func *post, void *env);
  * @param post  walker function, executed after the predecessor of a node are visited
  * @param env   environment, passed to pre and post
  *
- * This function Walks only over Block nodes in the graph. Has it's own visited
+ * This function Walks only over Block nodes in the graph. Has its own visited
  * flag, so that it can be interleaved with the other walker.
  * If a none block is passed, starts at the block this node belongs to.
  * If end is passed also visits kept alive blocks. Does not use the link field.
index 36553e2..eb9cbf3 100644 (file)
@@ -164,7 +164,7 @@ FIRM_API unsigned get_irn_opcode(const ir_node *node);
 FIRM_API const char *get_irn_opname(const ir_node *node);
 /** Get the ident for a string representation of the opcode. */
 FIRM_API ident *get_irn_opident(const ir_node *node);
-/** If arg is an argument of the node, returns it's position, -1 otherwise */
+/** If arg is an argument of the node, returns its position, -1 otherwise */
 FIRM_API int get_irn_pred_pos(ir_node *node, ir_node *arg);
 /** Gets the visited counter of a node. */
 FIRM_API ir_visited_t get_irn_visited(const ir_node *node);
index 221366c..c71f276 100644 (file)
@@ -343,7 +343,7 @@ FIRM_API ir_graph_pass_t *opt_ldst_pass(const char *name);
  *
  * @param irg  The graph whose loops will be processed
  *
- * This function did not change the graph, only it's frame type.
+ * This function did not change the graph, only its frame type.
  * The layout state of the frame type will be set to layout_undefined
  * if entities were removed.
  */
@@ -355,7 +355,7 @@ FIRM_API void loop_optimization(ir_graph *irg);
  *
  * @param irg  The graph whose frame type will be optimized
  *
- * This function did not change the graph, only it's frame type.
+ * This function did not change the graph, only its frame type.
  * The layout state of the frame type will be set to layout_undefined
  * if entities were removed.
  */
index f18dee5..93c7770 100644 (file)
@@ -81,7 +81,7 @@ FIRM_API ir_node *get_Block_cfg_out_ka(const ir_node *node, int pos);
 FIRM_API void irg_out_walk(ir_node *node, irg_walk_func *pre,
                            irg_walk_func *post, void *env);
 
-/** Walks only over Block nodes in the graph.  Has it's own visited
+/** Walks only over Block nodes in the graph.  Has its own visited
    flag, so that it can be interleaved with the other walker.
    node must be either op_Block or mode_X.  */
 FIRM_API void irg_out_block_walk(ir_node *node, irg_walk_func *pre,
index 8c0ee88..0edffd7 100644 (file)
@@ -24,7 +24,7 @@
  * @version $Id$
  *
  * This implements a set of pointers which allows to specify custom callbacks
- * for comparing and hashing it's elements.
+ * for comparing and hashing its elements.
  */
 #include "config.h"
 
index 3318fec..7773238 100644 (file)
@@ -56,7 +56,7 @@ int firm_gaussjordansolve(double *A, double *vec, int nsize)
                x[i] = i;
 
        /* triangularize A */
-       /* ie A has zeros below it's diagonal */
+       /* ie A has zeros below its diagonal */
        for (col = 0; col < nsize - 1; ++col) {
                big = 0;
                /* find the largest left in LRH box */
index 5fe0a09..6b5c6dd 100644 (file)
@@ -83,7 +83,7 @@ int is_irg_caller_backedge(const ir_graph *irg, size_t pos)
        return irg->caller_isbe != NULL ? rbitset_is_set(irg->caller_isbe, pos) : 0;
 }
 
-/** Search the caller in the list of all callers and set it's backedge property. */
+/** Search the caller in the list of all callers and set its backedge property. */
 static void set_irg_caller_backedge(ir_graph *irg, const ir_graph *caller)
 {
        size_t i, n_callers = get_irg_n_callers(irg);
index a88227f..0ffdd8b 100644 (file)
@@ -448,7 +448,7 @@ static void free_ana_walker(ir_node *node, void *env)
  * Add all method addresses in global new style initializers to the set.
  *
  * @note
- * We do NOT check the type here, just it it's an entity address.
+ * We do NOT check the type here, just if it's an entity address.
  * The reason for this is code like:
  *
  * void *p = function;
@@ -491,7 +491,7 @@ static void add_method_address_inititializer(ir_initializer_t *initializer,
  * Add all method addresses in global initializers to the set.
  *
  * @note
- * We do NOT check the type here, just it it's an entity address.
+ * We do NOT check the type here, just if it's an entity address.
  * The reason for this is code like:
  *
  * void *p = function;
@@ -502,7 +502,7 @@ static void add_method_address(ir_entity *ent, eset *set)
 {
        ir_type *tp;
 
-       /* ignore methods: these of course reference it's address
+       /* ignore methods: these of course reference their addresses
         * TODO: remove this later once this incorrect self-initialisation is gone
         */
        tp = get_entity_type(ent);
index 877004a..c2821fb 100644 (file)
@@ -57,7 +57,7 @@ typedef struct env_t {
 DEBUG_ONLY(static firm_dbg_module_t *dbg;)
 
 /**
- * Return the effective use block of a node and it's predecessor on
+ * Return the effective use block of a node and its predecessor on
  * position pos.
  *
  * @param node  the node
@@ -319,7 +319,7 @@ static void handle_if(ir_node *block, ir_node *cmp, ir_relation rel, env_t *env)
                                                /*
                                                 * The user of the user is dominated by our true/false
                                                 * block. So, create a copy of user WITH the constant
-                                                * replacing it's pos'th input.
+                                                * replacing its pos'th input.
                                                 *
                                                 * This is always good for unop's and might be good
                                                 * for binops.
index b9e9a72..71506c1 100644 (file)
@@ -380,7 +380,7 @@ static void irg_extblock_walk_2(ir_extblk *blk, extbb_walk_func *pre, extbb_walk
        }
 }
 
-/* walks only over extended Block nodes in the graph.  Has it's own visited
+/* walks only over extended Block nodes in the graph.  Has its own visited
    flag, so that it can be interleaved with the other walker.         */
 void irg_extblock_walk(ir_extblk *blk, extbb_walk_func *pre, extbb_walk_func *post, void *env)
 {
index b995c0d..495ac54 100644 (file)
@@ -567,7 +567,7 @@ static ir_alias_relation _get_alias_relation(
        /*
         * Bitfields can be constructed as Sels from its base address.
         * As they have different entities, the disambiguator would find that they are
-        * alias free. While this is true for it's values, it is false for the addresses
+        * alias free. While this is true for its values, it is false for the addresses
         * (strictly speaking, the Sel's are NOT the addresses of the bitfields).
         * So, skip those bitfield selecting Sel's.
         */
index ce7ea21..cb32aa9 100644 (file)
@@ -257,7 +257,7 @@ static void irg_out_block_walk2(ir_node *bl, irg_walk_func *pre,
        }
 }
 
-/* Walks only over Block nodes in the graph.  Has it's own visited
+/* Walks only over Block nodes in the graph.  Has its own visited
    flag, so that it can be interleaved with the other walker.         */
 void irg_out_block_walk(ir_node *node, irg_walk_func *pre, irg_walk_func *post,
                         void *env)
index 84a69ae..f96cc26 100644 (file)
@@ -1118,7 +1118,7 @@ static int recolor_nodes(co_mst_env_t *env, co_mst_irn_t *node, col_cost_t *cost
 }
 
 /**
- * Tries to bring node @p node and all it's neighbours to color @p tgt_col.
+ * Tries to bring node @p node and all its neighbours to color @p tgt_col.
  * @return 1 if color @p col could be applied, 0 otherwise
  */
 static int change_node_color(co_mst_env_t *env, co_mst_irn_t *node, int tgt_col, struct list_head *changed)
@@ -1135,7 +1135,7 @@ static int change_node_color(co_mst_env_t *env, co_mst_irn_t *node, int tgt_col,
 
        /*
                Node has not yet a fixed color and target color is admissible
-               -> try to recolor node and it's affinity neighbours
+               -> try to recolor node and its affinity neighbours
        */
        if (is_loose(node) && bitset_is_set(node->adm_colors, tgt_col)) {
                col_cost_t *costs = env->single_cols[tgt_col];
index f09bddb..b41baf3 100644 (file)
@@ -722,7 +722,7 @@ static void do_emit_atomic_init(be_gas_decl_env_t *env, ir_node *init)
        case iro_Const:
                tv = get_Const_tarval(init);
 
-               /* it's a arithmetic value */
+               /* it's an arithmetic value */
                emit_arith_tarval(tv, bytes);
                return;
 
index a3f9e5f..1b7c1a8 100644 (file)
@@ -49,7 +49,7 @@ void be_free_birg(ir_graph *irg);
 /**
  * This type describes the stack layout.
  * The stack is divided into 3 parts:
- * - arg_type:     A struct type describing the stack arguments and it's order.
+ * - arg_type:     A struct type describing the stack arguments and its order.
  * - between_type: A struct type describing the stack layout between arguments
  *                 and frame type. In architectures that put the return address
  *                 automatically on the stack, the return address is put here.
index 9c33d76..762b7f1 100644 (file)
@@ -105,7 +105,7 @@ static unsigned be_compute_block_pressure(const ir_graph *irg,
 }
 
 /**
- * Compute the highest register pressure in a loop and it's sub-loops.
+ * Compute the highest register pressure in a loop and its sub-loops.
  * @param loop_ana  The loop ana object.
  * @param loop      The loop to compute pressure for.
  * @param cls       The register class to compute pressure for.
index f1d5a17..dc93e6b 100644 (file)
@@ -52,7 +52,7 @@ DEBUG_ONLY(static firm_dbg_module_t *dbg;)
 DEBUG_ONLY(static firm_dbg_module_t *dbg_constr;)
 DEBUG_ONLY(static firm_dbg_module_t *dbg_permmove;)
 
-/** Associates an ir_node with it's copy and CopyKeep. */
+/** Associates an ir_node with its copy and CopyKeep. */
 typedef struct {
        ir_nodeset_t copies; /**< all non-spillable copies of this irn */
        const arch_register_class_t *cls;
@@ -554,7 +554,7 @@ static void gen_assure_different_pattern(ir_node *irn, ir_node *other_different,
                sched_add_before(skip_Proj(irn), cpy);
        sched_add_after(skip_Proj(irn), keep);
 
-       /* insert the other different and it's copies into the map */
+       /* insert the other different and its copies into the map */
        entry = (op_copy_assoc_t*)ir_nodemap_get(op_set, other_different);
        if (! entry) {
                entry      = OALLOC(&env->obst, op_copy_assoc_t);
@@ -804,7 +804,7 @@ void assure_constraints(ir_graph *irg)
 
                DB((dbg_constr, LEVEL_1, "\n"));
 
-               /* introduce the copies for the operand and it's copies */
+               /* introduce the copies for the operand and its copies */
                be_ssa_construction_init(&senv, irg);
                be_ssa_construction_add_copy(&senv, map_entry.node);
                be_ssa_construction_add_copies(&senv, nodes, n);
index 07e3ab1..484a5ac 100644 (file)
@@ -132,9 +132,9 @@ void be_peephole_new_node(ir_node * nw)
 /**
  * must be called from peephole optimisations before a node will be killed
  * and its users will be redirected to new_node.
- * so bepeephole can update it's internal state.
+ * so bepeephole can update its internal state.
  *
- * Note: killing a node and rewiring os only allowed if new_node produces
+ * Note: killing a node and rewiring is only allowed if new_node produces
  * the same registers as old_node.
  */
 static void be_peephole_before_exchange(const ir_node *old_node,
index 924d8a9..34fafab 100644 (file)
@@ -62,7 +62,7 @@ void be_peephole_new_node(ir_node *nw);
 void be_peephole_exchange(ir_node *old, ir_node *nw);
 
 /**
- * Tries to optimize a beIncSp node with it's previous IncSP node.
+ * Tries to optimize a beIncSp node with its previous IncSP node.
  * Must be run from a be_peephole_opt() context.
  *
  * @param node  a be_IncSP node
index 962d1c3..28ee082 100644 (file)
@@ -766,7 +766,7 @@ static void process_block(ir_node *block)
                /* no predecessor -> empty set */
                workset_clear(ws);
        } else if (arity == 1) {
-               /* one predecessor, copy it's end workset */
+               /* one predecessor, copy its end workset */
                ir_node      *pred_block = get_Block_cfgpred_block(block, 0);
                block_info_t *pred_info  = get_block_info(pred_block);
 
index 17c0c5c..356aa91 100644 (file)
@@ -100,7 +100,7 @@ void be_add_reload_on_edge(spill_env_t *senv, ir_node *to_spill, ir_node *bl,
 void be_insert_spills_reloads(spill_env_t *senv);
 
 /**
- * There are 2 possibilities to spill a phi node: Only it's value, or replacing
+ * There are 2 possibilities to spill a phi node: Only its value, or replacing
  * the whole phi-node with a memory phi. Normally only the value of a phi will
  * be spilled unless you mark the phi with be_spill_phi.
  * (Remember that each phi needs a register, so you have to spill phis when
index 616b94e..031493b 100644 (file)
@@ -29,7 +29,7 @@
  * to their closest copy while introducing phis as necessary.
  *
  * Algorithm: Mark all blocks in the iterated dominance frontiers of the value
- * and it's copies. Link the copies ordered by dominance to the blocks.  Then
+ * and its copies. Link the copies ordered by dominance to the blocks.  Then
  * we search for each use all definitions in the current block, if none is
  * found, then we search one in the immediate dominator. If we are in a block
  * of the dominance frontier, create a phi and do the same search for all
index a2e404e..914dec1 100644 (file)
@@ -29,7 +29,7 @@
  * to their closest copy while introducing phis as necessary.
  *
  * Algorithm: Mark all blocks in the iterated dominance frontiers of the value
- * and it's copies. Link the copies ordered by dominance to the blocks.  Then
+ * and its copies. Link the copies ordered by dominance to the blocks.  Then
  * we search for each use all definitions in the current block, if none is
  * found, then we search one in the immediate dominator. If we are in a block
  * of the dominance frontier, create a phi and do the same search for all
index 82b20a3..7d0fdd1 100644 (file)
@@ -1271,7 +1271,7 @@ void ia32_peephole_optimization(ir_graph *irg)
 
 /**
  * Removes node from schedule if it is not used anymore. If irn is a mode_T node
- * all it's Projs are removed as well.
+ * all its Projs are removed as well.
  * @param irn  The irn to be removed from schedule
  */
 static inline void try_kill(ir_node *node)
index 0cfacf3..edc9c5f 100755 (executable)
@@ -1028,7 +1028,7 @@ sub get_reg_class {
 }
 
 ###
-# Returns the index of a given register within it's register class.
+# Returns the index of a given register within its register class.
 # @return index or undef
 ###
 sub get_reg_index {
index 7ff6ef6..f8e3dca 100644 (file)
@@ -51,7 +51,7 @@ struct firm_dbg_module_t {
 };
 
 /**
- * Compares two modules by comparing it's names
+ * Compares two modules by comparing their names
  */
 static int module_cmp(const void *p1, const void *p2, size_t size)
 {
index 41177fd..c514f05 100644 (file)
@@ -127,7 +127,7 @@ ident *id_mangle_dot(ident *first, ident *scnd)
        return id_mangle_3(first, '.', scnd);
 }
 
-/* returns a mangled name for a Win32 function using it's calling convention */
+/* returns a mangled name for a Win32 function using its calling convention */
 ident *id_decorate_win32_c_fkt(const ir_entity *ent, ident *id)
 {
        ir_type *tp      = get_entity_type(ent);
index 105a366..e070407 100644 (file)
@@ -540,7 +540,7 @@ static void ird_walk_graph(ir_graph *irg, irg_walk_func *pre, irg_walk_func *pos
 }
 
 /**
- * Walker, allocates an array for all blocks and puts it's nodes non-floating
+ * Walker, allocates an array for all blocks and puts their non-floating
  * nodes into this array.
  */
 static void collect_node(ir_node *node, void *env)
@@ -1370,7 +1370,7 @@ static void print_mem_edge_vcgattr(FILE *F, ir_node *from, int to)
                fprintf(F, INTER_MEM_EDGE_ATTR);
 }
 
-/** Print the vcg attributes for the edge from node from to it's to's input */
+/** Print the vcg attributes for the edge from node "from" to its "to"th input */
 static void print_edge_vcgattr(FILE *F, ir_node *from, int to)
 {
        assert(from);
@@ -1831,7 +1831,7 @@ static void dump_entity_initializer(FILE *F, const ir_entity *ent)
        (void) ent;
 }
 
-/** Dumps a type or entity and it's edges. */
+/** Dumps a type or entity and its edges. */
 static void dump_type_info(type_or_ent tore, void *env)
 {
        FILE *F = (FILE*)env;
index 1b16fe7..17dbad4 100644 (file)
@@ -264,7 +264,7 @@ static inline void edge_change_cnt(ir_node *tgt, ir_edge_kind_t kind, int ofs)
        ir_graph *irg = get_irn_irg(tgt);
        assert(info->out_count >= 0);
        if (info->out_count == 0 && kind == EDGE_KIND_NORMAL) {
-               /* tgt lost it's last user */
+               /* tgt lost its last user */
                int i;
 
                for (i = get_irn_arity(tgt) - 1; i >= -1; --i) {
index 097e96f..9c06123 100644 (file)
@@ -155,7 +155,7 @@ static void enqueue_users(ir_node *n, pdeq *waitq)
 
 /**
  * Data flow optimization walker.
- * Optimizes all nodes and enqueue it's users
+ * Optimizes all nodes and enqueue its users
  * if done.
  */
 static void opt_walker(ir_node *n, void *env)
index c5b4a9c..0299456 100644 (file)
@@ -142,7 +142,7 @@ void irg_set_nloc(ir_graph *res, int n_loc)
 }
 
 /* Allocates a list of nodes:
-    - The start block containing a start node and Proj nodes for it's four
+    - The start block containing a start node and Proj nodes for its four
       results (X, M, P, Tuple).
     - The end block containing an end node. This block is not matured after
       new_ir_graph as predecessors need to be added to it.
index 98c5c9f..440dc61 100644 (file)
@@ -373,7 +373,7 @@ static void irg_block_walk_2(ir_node *node, irg_walk_func *pre,
 }
 
 
-/* walks only over Block nodes in the graph.  Has it's own visited
+/* walks only over Block nodes in the graph.  Has its own visited
    flag, so that it can be interleaved with the other walker.         */
 void irg_block_walk(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void *env)
 {
index 16d824f..7a7d41e 100644 (file)
@@ -1075,11 +1075,11 @@ static ir_node *equivalent_node_Or(ir_node *n)
        ir_tarval *tv;
 
        if (a == b) {
-               n = a;    /* Or has it's own neutral element */
+               n = a;    /* idempotence */
                DBG_OPT_ALGSIM0(oldn, n, FS_OPT_OR);
                return n;
        }
-       /* constants are cormalized to right, check this site first */
+       /* constants are normalized to right, check this side first */
        tv = value_of(b);
        if (tarval_is_null(tv)) {
                n = a;
@@ -1108,11 +1108,11 @@ static ir_node *equivalent_node_And(ir_node *n)
        ir_tarval *tv;
 
        if (a == b) {
-               n = a;    /* And has it's own neutral element */
+               n = a;    /* idempotence */
                DBG_OPT_ALGSIM0(oldn, n, FS_OPT_AND);
                return n;
        }
-       /* constants are normalized to right, check this site first */
+       /* constants are normalized to right, check this side first */
        tv = value_of(b);
        if (tarval_is_all_one(tv)) {
                n = a;
@@ -1322,11 +1322,11 @@ static ir_node *equivalent_node_Phi(ir_node *n)
                first_val = get_Phi_pred(n, i);
                if (   (first_val != n)                            /* not self pointer */
 #if 0
-                   /* BEWARE: when the if is changed to 1, Phi's will ignore it's Bad
-                    * predecessors. Then, Phi nodes in dead code might be removed, causing
-                    * nodes pointing to themself (Add's for instance).
-                    * This is really bad and causes endless recursions in several
-                    * code pathes, so we do NOT optimize such code.
+                   /* BEWARE: when the if is changed to 1, Phis will ignore their Bad
+                    * predecessors. Then, Phi nodes in unreachable code might be removed,
+                    * causing nodes pointing to themselev (Adds for instance).
+                    * This is really bad and causes endless recursion on several
+                    * code pathes, so we do NOT optimize such code.
                     * This is not that bad as it sounds, optimize_cf() removes bad control flow
                     * (and bad Phi predecessors), so live code is optimized later.
                     */
@@ -1592,7 +1592,7 @@ static ir_node *equivalent_node_Proj_Store(ir_node *proj)
 }  /* equivalent_node_Proj_Store */
 
 /**
- * Does all optimizations on nodes that must be done on it's Proj's
+ * Does all optimizations on nodes that must be done on its Projs
  * because of creating new nodes.
  */
 static ir_node *equivalent_node_Proj(ir_node *proj)
@@ -4537,7 +4537,7 @@ static ir_node *transform_node_Proj_Bound(ir_node *proj)
 }  /* transform_node_Proj_Bound */
 
 /**
- * Does all optimizations on nodes that must be done on it's Proj's
+ * Does all optimizations on nodes that must be done on its Projs
  * because of creating new nodes.
  */
 static ir_node *transform_node_Proj(ir_node *proj)
@@ -6308,7 +6308,7 @@ static ir_node *gigo(ir_node *node)
 #if 0
                        /* Propagating Unknowns here seems to be a bad idea, because
                           sometimes we need a node as a input and did not want that
-                          it kills it's user.
+                          it kills its user.
                           However, it might be useful to move this into a later phase
                           (if you think that optimizing such code is useful). */
                        if (is_Unknown(pred) && mode_is_data(get_irn_mode(node)))
@@ -6371,7 +6371,7 @@ ir_node *optimize_node(ir_node *n)
                                size_t node_size;
 
                                /*
-                                * we MUST copy the node here temporary, because it's still
+                                * we MUST copy the node here temporarily, because it's still
                                 * needed for DBG_OPT_CSTEVAL
                                 */
                                node_size = offsetof(ir_node, attr) +  n->op->attr_size;
index 84d7322..d01d1a7 100644 (file)
@@ -179,7 +179,7 @@ static void merge_blocks(ir_node *node, void *ctx)
                        }
 
                        /* normally, we would create a Bad block here, but this must be
-                        * prevented, so just set it's cf to Bad.
+                        * prevented, so just set its cf to Bad.
                         */
                        if (is_Block_dead(new_block)) {
                                ir_graph *irg = get_irn_irg(node);
index a04a727..56c7cdb 100644 (file)
@@ -55,7 +55,7 @@ static int is_Block_unreachable(ir_node *block)
  * all "living" nodes into a living block. That's why we must
  * move nodes in dead block with "live" successors into a valid
  * block.
- * We move them just into the same block as it's successor (or
+ * We move them just into the same block as its successor (or
  * in case of a Phi into the effective use block). For Phi successors,
  * this may still be a dead block, but then there is no real use, as
  * the control flow will be dead later.
@@ -319,7 +319,7 @@ static inline int get_block_loop_depth(ir_node *block)
 }
 
 /**
- * Move n to a block with less loop depth than it's current block. The
+ * Move n to a block with less loop depth than its current block. The
  * new block must be dominated by early.
  *
  * @param n      the node that should be moved
index 384617c..94c116b 100644 (file)
@@ -845,7 +845,7 @@ static void add_to_cprop(node_t *y, environment_t *env)
        irn = y->node;
        if (get_irn_mode(irn) == mode_T) {
                /* mode_T nodes always produce tarval_bottom, so we must explicitly
-                  add it's Proj's to get constant evaluation to work */
+                * add its Projs to get constant evaluation to work */
                int i;
 
                for (i = get_irn_n_outs(irn) - 1; i >= 0; --i) {
@@ -1813,7 +1813,7 @@ static void split_by(partition_t *X, environment_t *env)
        dump_partition("split_by", X);
 
        if (X->n_leader == 1) {
-               /* we have only one leader, no need to split, just check it's type */
+               /* we have only one leader, no need to split, just check its type */
                node_t *x = get_first_node(X);
                X->type_is_T_or_C = x->type.tv == tarval_top || is_con(x->type);
                return;
index 258d4ae..1e6420c 100644 (file)
@@ -106,7 +106,7 @@ void opt_frame_irg(ir_graph *irg)
                        list = (ir_entity*)get_entity_link(ent);
                        free_entity(ent);
                }
-               /* we changed the frame type, it's layout should be redefined */
+               /* we changed the frame type, its layout should be redefined */
                set_type_state(frame_tp, layout_undefined);
        }
        irp_free_resources(irp, IR_RESOURCE_ENTITY_LINK);
index 35bdacf..c463306 100644 (file)
@@ -1154,7 +1154,7 @@ void inline_leave_functions(unsigned maxsize, unsigned leavesize,
                                        /* call was inlined, Phi/Projs for current graph must be recomputed */
                                        phiproj_computed = 0;
 
-                                       /* callee was inline. Append it's call list. */
+                                       /* callee was inline. Append its call list. */
                                        env->got_inline = 1;
                                        --env->n_call_nodes;
                                        append_call_list(env, callee_env, entry->loop_depth);
@@ -1679,7 +1679,7 @@ static void inline_into(ir_graph *irg, unsigned maxsize,
                /* remove it from the caller list */
                list_del(&curr_call->list);
 
-               /* callee was inline. Append it's call list. */
+               /* callee was inline. Append its call list. */
                env->got_inline = 1;
                --env->n_call_nodes;
 
index 6ad21a3..d0770f3 100644 (file)
@@ -1235,7 +1235,7 @@ static void update_DivOp_memop(memop_t *m)
  */
 static void update_Phi_memop(memop_t *m)
 {
-       /* the Phi is it's own mem */
+       /* the Phi is its own mem */
        m->mem = m->node;
 }  /* update_Phi_memop */
 
index c610164..9f8043e 100644 (file)
@@ -1440,8 +1440,8 @@ void opt_osr(ir_graph *irg, unsigned flags)
        env.process_scc   = process_scc;
 
        /* Clear all links and move Proj nodes into the
-          the same block as it's predecessors.
-          This can improve the placement of new nodes.
+        * the same block as its predecessors.
+        * This can improve the placement of new nodes.
         */
        projs_moved = 0;
        irg_walk_graph(irg, NULL, clear_and_fix, &projs_moved);
index 426f7e6..10dd2c7 100644 (file)
@@ -181,7 +181,7 @@ ir_graph_pass_t *normalize_one_return_pass(const char *name)
  * with the Return, otherwise they are dead (because the Return leaves
  * the graph, so no more users of the other nodes can exists.
  *
- * We can move a Return, if it's predecessors are Phi nodes or
+ * We can move a Return, if its predecessors are Phi nodes or
  * comes from another block. In the later case, it is always possible
  * to move the Return one block up, because the predecessor block must
  * dominate the Return block (SSA) and then it dominates the predecessor
index 99c0a70..67be049 100644 (file)
@@ -172,7 +172,7 @@ static int check_load_store_mode(ir_mode *mode, ir_mode *ent_mode)
 
 /*
  * Returns non-zero, if the address of an entity
- * represented by a Sel node (or it's successor Sels) is taken.
+ * represented by a Sel node (or its successor Sels) is taken.
  */
 int is_address_taken(ir_node *sel)
 {
@@ -321,7 +321,7 @@ static void *ADDRESS_TAKEN = &_x;
  *
  * This function finds variables on the (members of the) frame type
  * that can be scalar replaced, because their address is never taken.
- * If such a variable is found, it's entity link will hold a list of all
+ * If such a variable is found, its entity link will hold a list of all
  * Sel nodes, that selects the atomic fields of this entity.
  * Otherwise, the link will be ADDRESS_TAKEN or NULL.
  *
@@ -431,7 +431,7 @@ static int find_possible_replacements(ir_graph *irg)
 }
 
 /**
- * Return a path from the Sel node sel to it's root.
+ * Return a path from the Sel node "sel" to its root.
  *
  * @param sel  the Sel node
  * @param len  the length of the path so far
index e5482b9..16ed488 100644 (file)
@@ -30,7 +30,7 @@
 
 /**
  * Returns non-zero, if the address of an entity
- * represented by a Sel node (or it's successor Sels) is taken.
+ * represented by a Sel node (or its successor Sels) is taken.
  *
  * @param sel  the Sel node
  */
index 065397a..0051f86 100644 (file)
@@ -105,7 +105,7 @@ ir_entity *new_d_entity(ir_type *owner, ident *name, ir_type *type,
                res->attr.code_attr.label = (ir_label_t) -1;
        }
 
-       /* Remember entity in it's owner. */
+       /* Remember entity in its owner. */
        if (owner != NULL)
                add_compound_member(owner, res);
 
index ecbca4f..d4b922c 100644 (file)
@@ -89,7 +89,7 @@ struct tp_op {
 /**
  * Returns a new type opcode.
  *
- * Allocates a new tp_op struct and initializes it's fields with
+ * Allocates a new tp_op struct and initializes its fields with
  * the passed values.  This function is only to be used during
  * initialization of the library.
  *
index 7fec331..9e7f744 100644 (file)
@@ -91,6 +91,6 @@ void types_calc_finalization(void)
 
        FIRM_DBG_REGISTER(dbg, "firm.tr.finalization");
 
-       /* types must be visited before it's entities */
+       /* types must be visited before their entities */
        type_walk(do_finalization, NULL, get_glob_type());
 }
index c3e1856..73c7c78 100644 (file)
@@ -216,7 +216,7 @@ struct ir_type {
                                      when fixing the layout of this class.  Size must be
                                      given in bytes. */
        unsigned align;          /**< Alignment of an ir_entity of this type. This should be
-                                     set according to the source language needs. If not set it's
+                                     set according to the source language needs. If not set, it's
                                      calculated automatically by get_type_alignment().
                                      Alignment must be given in bytes. */
        ir_mode *mode;           /**< The mode for atomic types */
index 7f55e91..4a763d1 100755 (executable)
@@ -901,7 +901,7 @@ class Tuple(Op):
        following Proj nodes have not to be changed. (They are hard to find due to
        the implementation with pointers in only one direction.) The Tuple node is
        smaller than any other node, so that a node can be changed into a Tuple by
-       just changing it's opcode and giving it a new in array."""
+       just changing its opcode and giving it a new in array."""
        arity  = "variable"
        mode   = "mode_T"
        pinned = "no"