Lines Matching defs:curr_state

7641   memcpy (prev_cycle_state, curr_state, dfa_state_size);
7749 state_transition (curr_state, dfa_stop_insn);
7761 state_reset (curr_state);
7764 memcpy (curr_state, prev_cycle_state, dfa_state_size);
7765 state_transition (curr_state, dfa_stop_insn);
7766 state_transition (curr_state, dfa_pre_cycle_insn);
7767 state_transition (curr_state, NULL);
8669 struct bundle_state *curr_state, *next_state;
8671 for (curr_state = allocated_bundle_states_chain;
8672 curr_state != NULL;
8673 curr_state = next_state)
8675 next_state = curr_state->allocated_states_chain;
8676 free (curr_state->dfa_state);
8677 free (curr_state);
8789 try_issue_nops (struct bundle_state *curr_state, int nops_num)
8794 if (state_transition (curr_state->dfa_state, ia64_nop) >= 0)
8796 free_bundle_state (curr_state);
8807 try_issue_insn (struct bundle_state *curr_state, rtx insn)
8809 if (insn && state_transition (curr_state->dfa_state, insn) >= 0)
8811 free_bundle_state (curr_state);
8829 struct bundle_state *curr_state;
8831 curr_state = get_free_bundle_state ();
8832 memcpy (curr_state->dfa_state, originator->dfa_state, dfa_state_size);
8833 curr_state->insn = insn;
8834 curr_state->insn_num = originator->insn_num + 1;
8835 curr_state->cost = originator->cost;
8836 curr_state->originator = originator;
8837 curr_state->before_nops_num = before_nops_num;
8838 curr_state->after_nops_num = 0;
8839 curr_state->accumulated_insns_num
8841 curr_state->branch_deviation = originator->branch_deviation;
8842 curr_state->middle_bundle_stops = originator->middle_bundle_stops;
8847 if (!try_issue_nops (curr_state, before_nops_num))
8849 if (!try_issue_insn (curr_state, insn))
8851 memcpy (temp_dfa_state, curr_state->dfa_state, dfa_state_size);
8852 if (curr_state->accumulated_insns_num % 3 != 0)
8853 curr_state->middle_bundle_stops++;
8855 && curr_state->accumulated_insns_num % 3 != 0)
8857 free_bundle_state (curr_state);
8863 if (!try_issue_nops (curr_state, before_nops_num))
8865 if (!try_issue_insn (curr_state, insn))
8867 curr_state->accumulated_insns_num++;
8871 curr_state->accumulated_insns_num++;
8882 free_bundle_state (curr_state);
8886 state_transition (curr_state->dfa_state, dfa_pre_cycle_insn);
8887 state_transition (curr_state->dfa_state, NULL);
8888 curr_state->cost++;
8889 if (!try_issue_nops (curr_state, before_nops_num))
8891 if (!try_issue_insn (curr_state, insn))
8893 curr_state->accumulated_insns_num++;
8897 curr_state->after_nops_num
8898 = 3 - curr_state->accumulated_insns_num % 3;
8899 curr_state->accumulated_insns_num
8900 += 3 - curr_state->accumulated_insns_num % 3;
8903 curr_state->accumulated_insns_num++;
8906 curr_state->branch_deviation
8907 += 2 - (curr_state->accumulated_insns_num - 1) % 3;
8908 if (try_bundle_end_p && curr_state->accumulated_insns_num % 3 != 0)
8910 if (!only_bundle_end_p && insert_bundle_state (curr_state))
8919 *curr_state1 = *curr_state;
8922 memcpy (curr_state1->dfa_state, curr_state->dfa_state,
8924 curr_state = curr_state1;
8926 if (!try_issue_nops (curr_state,
8927 3 - curr_state->accumulated_insns_num % 3))
8929 curr_state->after_nops_num
8930 = 3 - curr_state->accumulated_insns_num % 3;
8931 curr_state->accumulated_insns_num
8932 += 3 - curr_state->accumulated_insns_num % 3;
8934 if (!insert_bundle_state (curr_state))
8935 free_bundle_state (curr_state);
9146 struct bundle_state *curr_state, *next_state, *best_state;
9168 curr_state = get_free_bundle_state ();
9169 curr_state->insn = NULL;
9170 curr_state->before_nops_num = 0;
9171 curr_state->after_nops_num = 0;
9172 curr_state->insn_num = 0;
9173 curr_state->cost = 0;
9174 curr_state->accumulated_insns_num = 0;
9175 curr_state->branch_deviation = 0;
9176 curr_state->middle_bundle_stops = 0;
9177 curr_state->next = NULL;
9178 curr_state->originator = NULL;
9179 state_reset (curr_state->dfa_state);
9180 index_to_bundle_states [0] = curr_state;
9211 for (curr_state = index_to_bundle_states [insn_num - 1];
9212 curr_state != NULL;
9213 curr_state = next_state)
9215 pos = curr_state->accumulated_insns_num % 3;
9216 next_state = curr_state->next;
9232 issue_nops_and_insn (curr_state, 2, insn, bundle_end_p,
9234 issue_nops_and_insn (curr_state, 1, insn, bundle_end_p,
9236 issue_nops_and_insn (curr_state, 0, insn, bundle_end_p,
9240 for (curr_state = index_to_bundle_states [insn_num];
9241 curr_state != NULL;
9242 curr_state = curr_state->next)
9260 curr_state->unique_num,
9261 (curr_state->originator == NULL
9262 ? -1 : curr_state->originator->unique_num),
9263 curr_state->cost,
9264 curr_state->before_nops_num, curr_state->after_nops_num,
9265 curr_state->accumulated_insns_num, curr_state->branch_deviation,
9266 curr_state->middle_bundle_stops,
9267 ((struct DFA_chip *) curr_state->dfa_state)->twob_automaton_state,
9277 for (curr_state = index_to_bundle_states [insn_num];
9278 curr_state != NULL;
9279 curr_state = curr_state->next)
9284 if (curr_state->accumulated_insns_num % 3 == 0
9285 && (best_state == NULL || best_state->cost > curr_state->cost
9286 || (best_state->cost == curr_state->cost
9287 && (curr_state->accumulated_insns_num
9289 || (curr_state->accumulated_insns_num
9291 && (curr_state->branch_deviation
9293 || (curr_state->branch_deviation
9295 && curr_state->middle_bundle_stops
9297 best_state = curr_state;
9302 for (curr_state = best_state;
9303 curr_state->originator != NULL;
9304 curr_state = curr_state->originator)
9306 insn = curr_state->insn;
9322 curr_state->unique_num,
9323 (curr_state->originator == NULL
9324 ? -1 : curr_state->originator->unique_num),
9325 curr_state->cost,
9326 curr_state->before_nops_num, curr_state->after_nops_num,
9327 curr_state->accumulated_insns_num, curr_state->branch_deviation,
9328 curr_state->middle_bundle_stops,
9329 ((struct DFA_chip *) curr_state->dfa_state)->twob_automaton_state,
9335 max_pos = get_max_pos (curr_state->dfa_state);
9345 template0 = get_template (curr_state->dfa_state, 3);
9348 template1 = get_template (curr_state->dfa_state, 3);
9349 template0 = get_template (curr_state->dfa_state, 6);
9356 template1 = get_template (curr_state->dfa_state, 3);
9361 for (i = 0; i < curr_state->after_nops_num; i++)
9405 for (i = 0; i < curr_state->before_nops_num; i++)