cvsuser     05/01/13 07:25:01

  Modified:    imcc     instructions.h symreg.h
  Log:
   Tidy up comments
  
  Revision  Changes    Path
  1.47      +9 -9      parrot/imcc/instructions.h
  
  Index: instructions.h
  ===================================================================
  RCS file: /cvs/public/parrot/imcc/instructions.h,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- instructions.h    30 Nov 2004 09:35:10 -0000      1.46
  +++ instructions.h    13 Jan 2005 15:25:01 -0000      1.47
  @@ -19,19 +19,19 @@
   
   
   typedef struct _Instruction {
  -    char * op;               /* opstring w/o params */
  +    char * op;                  /* opstring w/o params */
       char * fmt;            /* printf style format string for params   */
       SymReg * r[IMCC_MAX_REGS];  /*   uses {r0-rx}->reg     */
  -    unsigned int flags;            /* how the instruction affects each of 
the values */
  +    unsigned int flags;    /* how the instruction affects each of the values 
*/
       unsigned int type;          /* 16 bit register branches, + ITxxx */
  -    int keys;                /* bitmask of keys used in this ins */
  +    int keys;                   /* bitmask of keys used in this instruction 
*/
       int index;             /* index on instructions[] */
  -    int bbindex;        /* nr of bb, where ins is in */
  +    int bbindex;        /* number of basic block containing instruction */
       struct _Instruction * prev;
       struct _Instruction * next;
  -    int opnum;               /* parrot op #*/
  -    int opsize;              /* parrot op size */
  -    int line;                /* source code line# */
  +    int opnum;                  /* parrot op number */
  +    int opsize;                 /* parrot op size   */
  +    int line;                   /* source code line number */
   } Instruction;
   
   
  @@ -41,7 +41,7 @@
    * int flags_jump
    */
   typedef enum {
  -    /* Indicate how the instruction affects each of the register */
  +    /* Indicate how the instruction affects each of the registers */
       IF_r0_read  = (1 << 0),
       IF_r1_read  = (1 << 1),
       IF_r2_read  = (1 << 2),
  @@ -55,7 +55,7 @@
       IF_binary  = (IF_r0_write|IF_r1_read|IF_r2_read), /* templ for binary op 
*/
       IF_unary   = (IF_r0_write|IF_r1_read),           /* templ for unary  op 
*/
       IF_inplace = (IF_r0_write|IF_r0_read),    /* templ for inplace unary  op 
*/
  -    /* the branch flags are the lowe 16 bits of type
  +    /* the branch flags are the low 16 bits of type
        * for upper 16 see ITXX above */
       IF_r0_branch  = (1 << 0),
       IF_r1_branch  = (1 << 1),
  
  
  
  1.61      +8 -8      parrot/imcc/symreg.h
  
  Index: symreg.h
  ===================================================================
  RCS file: /cvs/public/parrot/imcc/symreg.h,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- symreg.h  30 Nov 2004 09:35:11 -0000      1.60
  +++ symreg.h  13 Jan 2005 15:25:01 -0000      1.61
  @@ -33,10 +33,10 @@
   enum LIFEFLAG {    /* The status of a var inside a basic block can be */
       LF_use       = 1 << 0, /* block uses the the var before defining it */
       LF_def       = 1 << 1, /* block defines the variable */
  -    LF_lv_in     = 1 << 2, /* variable is alive at the beggining of the 
block */
  +    LF_lv_in     = 1 << 2, /* variable is alive at the begining of the block 
*/
       LF_lv_out    = 1 << 3, /* variable is alive at the end of the block */
  -    LF_lv_inside = 1 << 4, /* variable is alive at some momement in the 
block */
  -    LF_lv_all    = 1 << 5  /* alive during all the block */
  +    LF_lv_inside = 1 << 4, /* variable is alive at some moment in the block 
*/
  +    LF_lv_all    = 1 << 5  /* variable is alive throughout the block */
   };
   
   /* Liveness represents the usage of a var inside a basic block
  @@ -62,13 +62,13 @@
       char * name;
       enum VARTYPE type;       /* Variable type */
       enum USAGE usage;             /* s. USAGE above */
  -    int set;                /* Which register set/file it belongs to */
  +    int set;                 /* Which register set/file it belongs to */
       int want_regno;       /* wanted register number */
  -    INTVAL color;             /* Color: parrot register number
  +    INTVAL color;            /* Color: parrot register number
                                and parrot const table index of VTCONST */
  -    int score;               /* How costly is to spill this symbol */
  -    int use_count;        /* how often is this sym used */
  -    int lhs_use_count;            /* how often is this sym written to */
  +    int score;               /* How costly it is to spill this symbol */
  +    int use_count;        /* How often this symbol is used */
  +    int lhs_use_count;            /* How often this symbol is written to */
       int simplified;          /* Has it been simplified during the process? */
       Life_range **life_info;  /* Each block has its Life_range status */
       struct _SymReg * next;   /* used in the symbols hash */
  
  
  

Reply via email to