ir.cpp
/* Get information about which operand
 * is read from, or written to.
 */
Get information about which operand
is read from, or written to.
Get information about which operand is read from or written to .
static void ir_op_read_write(int op, size_t *read, size_t *write)
{
    switch (op)
    {
    case VINSTR_JUMP:
    case INSTR_GOTO:
        *write = 0;
        *read = 0;
        break;
    case INSTR_IF:
    case INSTR_IFNOT:
#if 0
    case INSTR_IF_S:
    case INSTR_IFNOT_S:
#endif
    case INSTR_RETURN:
    case VINSTR_COND:
        *write = 0;
        *read = 1;
        break;
    case INSTR_STOREP_F:
    case INSTR_STOREP_V:
    case INSTR_STOREP_S:
    case INSTR_STOREP_ENT:
    case INSTR_STOREP_FLD:
    case INSTR_STOREP_FNC:
        *write = 0;
        *read  = 7;
        break;
    default:
        *write = 1;
        *read = 6;
        break;
    };
}
static void ir_op_read_write ( int op , size_t * read , size_t * write ) { switch ( op ) { case VINSTR_JUMP : case INSTR_GOTO : * write = 0 ; * read = 0 ; break ; case INSTR_IF : case INSTR_IFNOT : #if 0 case INSTR_IF_S : case INSTR_IFNOT_S : #endif case INSTR_RETURN : case VINSTR_COND : * write = 0 ; * read = 1 ; break ; case INSTR_STOREP_F : case INSTR_STOREP_V : case INSTR_STOREP_S : case INSTR_STOREP_ENT : case INSTR_STOREP_FLD : case INSTR_STOREP_FNC : * write = 0 ; * read = 7 ; break ; default : * write = 1 ; * read = 6 ; break ; } ; }
Get information about which operand
 is read from, or written to.
Get information about which operand is read from or written to .