Fix typos in comments: s/wether/whether/ and related corrections.
authorMichael Beck <mm.beck@gmx.net>
Thu, 24 Mar 2011 23:30:05 +0000 (00:30 +0100)
committerMichael Beck <mm.beck@gmx.net>
Thu, 24 Mar 2011 23:33:09 +0000 (00:33 +0100)
12 files changed:
include/libfirm/adt/hungarian.h
include/libfirm/irgraph.h
include/libfirm/iropt.h
include/libfirm/typerep.h
ir/adt/raw_bitset.h
ir/be/beabihelper.c
ir/be/beflags.h
ir/be/beprefalloc.c
ir/be/bespillutil.c
ir/be/ia32/ia32_optimize.c
ir/be/sparc/bearch_sparc_t.h
scripts/ir_spec.py

index fa44bae..97513fa 100644 (file)
@@ -77,7 +77,7 @@ FIRM_API void hungarian_remove(hungarian_problem_t *p, unsigned left,
  * Prepares the cost matrix dependent on the given mode.
  *
  * @param p     The hungarian object
- * @param mode  specify wether to minimize or maximize the costs
+ * @param mode  specify whether to minimize or maximize the costs
  */
 FIRM_API void hungarian_prepare_cost_matrix(hungarian_problem_t *p,
                                             hungarian_mode_t mode);
index 851035f..9b36cb4 100644 (file)
@@ -532,7 +532,7 @@ ENUM_BITSET(ir_graph_state_t)
 FIRM_API void set_irg_state(ir_graph *irg, ir_graph_state_t state);
 /** clear some state flags of the graph */
 FIRM_API void clear_irg_state(ir_graph *irg, ir_graph_state_t state);
-/** query wether a set of graph state flags are activated */
+/** query whether a set of graph state flags are activated */
 FIRM_API int is_irg_state(const ir_graph *irg, ir_graph_state_t state);
 
 /** Set a description for local value n. */
index 46a3cd1..4339258 100644 (file)
@@ -92,7 +92,7 @@ FIRM_API ir_tarval *computed_value(const ir_node *n);
 FIRM_API ir_node *optimize_in_place(ir_node *n);
 
 /**
- * checks wether 1 value is the negated other value
+ * checks whether 1 value is the negated other value
  */
 FIRM_API int ir_is_negated_value(const ir_node *a, const ir_node *b);
 
@@ -104,7 +104,7 @@ FIRM_API ir_relation ir_get_possible_cmp_relations(const ir_node *left,
                                                    const ir_node *right);
 
 /**
- * tests wether a given Cmp node is an equal/not-equal test with 0
+ * tests whether a given Cmp node is an equal/not-equal test with 0
  * (this is a bit tricky because it has to catch x!=0 for the signed case and
  *  x>0 for the unsigned case)
  */
index d2e8956..9965b05 100644 (file)
@@ -322,13 +322,13 @@ typedef enum {
 } ir_align;
 
 /**
- * Returns indication wether entity is aligned in memory.
+ * Returns indication whether entity is aligned in memory.
  * @deprecated
  */
 FIRM_API ir_align get_entity_aligned(const ir_entity *ent);
 
 /**
- * Sets indication wether entity is aligned in memory
+ * Sets indication whether entity is aligned in memory
  * @deprecated
  */
 FIRM_API void set_entity_aligned(ir_entity *ent, ir_align a);
@@ -2142,7 +2142,7 @@ FIRM_API void default_layout_compound_type(ir_type *tp);
 FIRM_API int is_compound_type(const ir_type *tp);
 
 /**
- * Checks wether a type is a code type.
+ * Checks whether a type is a code type.
  */
 FIRM_API int is_code_type(const ir_type *tp);
 
index e5056c4..8a4999d 100644 (file)
@@ -420,7 +420,7 @@ static inline void rbitset_xor(unsigned *dst, const unsigned *src, size_t size)
  * @param bitset   the bitset
  * @param from     first bit to set
  * @param to       last bit (the first bit which is not set anymore)
- * @param val      wether to set to 1 or 0
+ * @param val      whether to set to 1 or 0
  */
 static inline void rbitset_set_range(unsigned *bitset, size_t from,
                                      size_t to, bool val)
@@ -487,7 +487,7 @@ static inline bool rbitsets_equal(const unsigned *bitset1,
 }
 
 /**
- * Tests wether 2 bitsets wether at least 1 bit is set in both.
+ * Tests whether 2 bitsets have at least one common set bit.
  *
  * @param bitset1  the first bitset
  * @param bitset2  the second bitset
@@ -506,7 +506,7 @@ static inline bool rbitsets_have_common(const unsigned *bitset1,
 }
 
 /**
- * Tests wether all bits set in bitset1 are also set in bitset2.
+ * Tests whether all bits set in bitset1 are also set in bitset2.
  *
  * @param bitset1  the first bitset
  * @param bitset2  the second bitset
index 647a8bf..62d8591 100644 (file)
@@ -382,7 +382,7 @@ ir_node *be_epilog_create_return(beabi_helper_env_t *env, dbg_info *dbgi,
 }
 
 /**
- * Tests wether a node has a real user and is not just kept by the End or
+ * Tests whether a node has a real user and is not just kept by the End or
  * Anchor node
  */
 static bool has_real_user(const ir_node *node)
index c0ce0fc..b05f9de 100644 (file)
@@ -35,7 +35,7 @@
 typedef ir_node * (*func_rematerialize) (ir_node *node, ir_node *after);
 
 /**
- * Callback function that checks wether a node modifies the flags
+ * Callback function that checks whether a node modifies the flags
  */
 typedef bool (*check_modifies_flags) (const ir_node *node);
 
index d3ce882..d879489 100644 (file)
@@ -1239,7 +1239,7 @@ static void enforce_constraints(ir_nodeset_t *live_nodes, ir_node *node,
        permute_values(live_nodes, node, assignment);
 }
 
-/** test wether a node @p n is a copy of the value of node @p of */
+/** test whether a node @p n is a copy of the value of node @p of */
 static bool is_copy_of(ir_node *value, ir_node *test_value)
 {
        allocation_info_t *test_info;
index d7b1e47..ea4d2f0 100644 (file)
@@ -597,7 +597,7 @@ static int check_remat_conditions_costs(spill_env_t *env,
                return REMAT_COST_INFINITE;
        }
        /* never rematerialize a node which modifies the flags.
-        * (would be better to test wether the flags are actually live at point
+        * (would be better to test whether the flags are actually live at point
         * reloader...)
         */
        if (arch_irn_is(insn, modify_flags)) {
index 7d0fdd1..73544f6 100644 (file)
@@ -578,8 +578,8 @@ static void peephole_store_incsp(ir_node *store)
        /* we have to be at offset 0 */
        int my_offset = get_ia32_am_offs_int(store);
        if (my_offset != 0) {
-               /* TODO here: find out wether there is a store with offset 0 before
-                * us and wether we can move it down to our place */
+               /* TODO here: find out whether there is a store with offset 0 before
+                * us and whether we can move it down to our place */
                return;
        }
        ir_mode *ls_mode = get_ia32_ls_mode(store);
index ea9491f..5648fc7 100644 (file)
@@ -51,14 +51,14 @@ struct sparc_transform_env_t {
 };
 
 /**
- * Sparc ABI requires some space which is always available at the top of
+ * SPARC ABI requires some space which is always available at the top of
  * the stack. It contains:
  * 16*4 bytes space for spilling the register window
- * 1*4 byte   holding a pointer to space for agregate returns (the space is
- *            always reserved, regardless wether we have an agregate return
+ * 1*4 byte   holding a pointer to space for aggregate returns (the space is
+ *            always reserved, regardless whether we have an aggregate return
  *            or not)
  * 6*4 bytes  Space for spilling parameters 0-5. For the cases when someone
- *            takes the adress of a parameter. I guess this is also there so
+ *            takes the address of a parameter. I guess this is also there so
  *            the implementation of va_args gets easier -> We can simply store
  *            param 0-5 in this spaces and then handle va_next by simply
  *            incrementing the stack pointer
index 4a763d1..0866a18 100755 (executable)
@@ -302,7 +302,7 @@ class Cast(Unop):
        init     = "assert(is_atomic_type(type));"
 
 class Cmp(Binop):
-       """Compares its two operands and checks wether a specified
+       """Compares its two operands and checks whether a specified
           relation (like less or equal) is fulfilled."""
        flags = []
        mode  = "mode_b"
@@ -539,7 +539,7 @@ class IJmp(Op):
        flags    = [ "cfopcode", "forking", "keep" ]
 
 class InstOf(Op):
-       """Tests wether an object is an instance of a class-type"""
+       """Tests whether an object is an instance of a class-type"""
        ins   = [
           ("store", "memory dependency"),
           ("obj",   "pointer to object being queried")