src/map.c
static inline void read_reg_map(Op* op) {
  uns ii;
  for(ii = 0; ii < op->table_info->num_src_regs; ii++) {
    uns        id        = op->inst_info->srcs[ii].id;
    uns        ind       = id << 1 | map_data->map_flags[id];
    Map_Entry* map_entry = &map_data->reg_map[ind];

    DEBUG(map_data->proc_id,
          "Reading map  op_num:%s  off_path:%d  id:%d  flag:%d  ind:%d\n",
          unsstr64(op->op_num), op->off_path, id, map_data->map_flags[id], ind);

    add_src_from_map_entry(op, map_entry, REG_DATA_DEP);
    /* address predictor is called if op is a load & this is first mem op reg
     * read for this reg instance */
  }
}
/**************************************************************************************/
/* read_reg_map: read and set srcs based on registers */
read and set srcs based on registers
read and set srcs based on registers
static inline void read_reg_map(Op* op) {
  uns ii;
  for(ii = 0; ii < op->table_info->num_src_regs; ii++) {
    uns        id        = op->inst_info->srcs[ii].id;
    uns        ind       = id << 1 | map_data->map_flags[id];
    Map_Entry* map_entry = &map_data->reg_map[ind];
    DEBUG(map_data->proc_id,
          "Reading map  op_num:%s  off_path:%d  id:%d  flag:%d  ind:%d\n",
          unsstr64(op->op_num), op->off_path, id, map_data->map_flags[id], ind);
    add_src_from_map_entry(op, map_entry, REG_DATA_DEP);
  }
}
static inline void read_reg_map ( Op * op ) { uns ii ; for ( ii = 0 ; ii < op -> table_info -> num_src_regs ; ii ++ ) { uns id = op -> inst_info -> srcs [ ii ] . id ; uns ind = id << 1 | map_data -> map_flags [ id ] ; Map_Entry * map_entry = & map_data -> reg_map [ ind ] ; DEBUG ( map_data -> proc_id , " \n " , unsstr64 ( op -> op_num ) , op -> off_path , id , map_data -> map_flags [ id ] , ind ) ; add_src_from_map_entry ( op , map_entry , REG_DATA_DEP ) ; } }
read_reg_map: read and set srcs based on registers
read_reg_map : read and set srcs based on registers
/* address predictor is called if op is a load & this is first mem op reg
     * read for this reg instance */