Lines Matching refs:regexp
173 struct regexp;
190 typedef struct regexp *regexp_t;
440 regexp_t regexp; member
457 regexp_t regexp; member
561 regexp_t regexp; member
581 struct regexp struct
595 } regexp; argument
987 (({ struct regexp *const _regexp = (r); \
991 &(_regexp)->regexp.unit; }))
994 (({ struct regexp *const _regexp = (r); \
998 &(_regexp)->regexp.reserv; }))
1001 (({ struct regexp *const _regexp = (r); \
1005 &(_regexp)->regexp.sequence; }))
1008 (({ struct regexp *const _regexp = (r); \
1012 &(_regexp)->regexp.repeat; }))
1015 (({ struct regexp *const _regexp = (r); \
1019 &(_regexp)->regexp.allof; }))
1022 (({ struct regexp *const _regexp = (r); \
1026 &(_regexp)->regexp.oneof; }))
1084 #define REGEXP_UNIT(r) (&(r)->regexp.unit)
1085 #define REGEXP_RESERV(r) (&(r)->regexp.reserv)
1086 #define REGEXP_SEQUENCE(r) (&(r)->regexp.sequence)
1087 #define REGEXP_REPEAT(r) (&(r)->regexp.repeat)
1088 #define REGEXP_ALLOF(r) (&(r)->regexp.allof)
1089 #define REGEXP_ONEOF(r) (&(r)->regexp.oneof)
1555 regexp_t regexp; in gen_regexp_el() local
1567 regexp = gen_regexp_sequence (dstr); in gen_regexp_el()
1571 regexp = XCREATENODE (struct regexp); in gen_regexp_el()
1572 regexp->mode = rm_nothing; in gen_regexp_el()
1576 regexp = XCREATENODE (struct regexp); in gen_regexp_el()
1577 regexp->mode = rm_unit; in gen_regexp_el()
1578 REGEXP_UNIT (regexp)->name = str; in gen_regexp_el()
1580 return regexp; in gen_regexp_el()
1587 regexp_t regexp; in gen_regexp_repeat() local
1598 regexp = gen_regexp_el (repeat_vect [0]); in gen_regexp_repeat()
1601 repeat = XCREATENODE (struct regexp); in gen_regexp_repeat()
1603 REGEXP_REPEAT (repeat)->regexp = regexp; in gen_regexp_repeat()
1608 regexp = repeat; in gen_regexp_repeat()
1610 return regexp; in gen_regexp_repeat()
1630 allof = XCREATENODEVAR (struct regexp, sizeof (struct regexp) in gen_regexp_allof()
1656 oneof = XCREATENODEVAR (struct regexp, sizeof (struct regexp) in gen_regexp_oneof()
1684 sequence = XCREATENODEVAR (struct regexp, sizeof (struct regexp) in gen_regexp_sequence()
1720 DECL_RESERV (decl)->regexp = gen_regexp (XSTR (def, 1)); in gen_reserv()
1742 DECL_INSN_RESERV (decl)->regexp = gen_regexp (XSTR (def, 3)); in gen_insn_reserv()
2756 process_regexp (regexp_t regexp) in process_regexp() argument
2762 switch (regexp->mode) in process_regexp()
2765 decl_in_table = find_decl (REGEXP_UNIT (regexp)->name); in process_regexp()
2768 REGEXP_UNIT (regexp)->name); in process_regexp()
2774 REGEXP_UNIT (regexp)->unit_decl = DECL_UNIT (decl_in_table); in process_regexp()
2779 new_regexp = XCREATENODE (struct regexp); in process_regexp()
2781 new_regexp->pos = regexp->pos; in process_regexp()
2782 REGEXP_RESERV (new_regexp)->name = REGEXP_UNIT (regexp)->name; in process_regexp()
2785 regexp = new_regexp; in process_regexp()
2793 for (i = 0; i <REGEXP_SEQUENCE (regexp)->regexps_num; i++) in process_regexp()
2794 REGEXP_SEQUENCE (regexp)->regexps [i] in process_regexp()
2795 = process_regexp (REGEXP_SEQUENCE (regexp)->regexps [i]); in process_regexp()
2798 for (i = 0; i < REGEXP_ALLOF (regexp)->regexps_num; i++) in process_regexp()
2799 REGEXP_ALLOF (regexp)->regexps [i] in process_regexp()
2800 = process_regexp (REGEXP_ALLOF (regexp)->regexps [i]); in process_regexp()
2803 for (i = 0; i < REGEXP_ONEOF (regexp)->regexps_num; i++) in process_regexp()
2804 REGEXP_ONEOF (regexp)->regexps [i] in process_regexp()
2805 = process_regexp (REGEXP_ONEOF (regexp)->regexps [i]); in process_regexp()
2808 REGEXP_REPEAT (regexp)->regexp in process_regexp()
2809 = process_regexp (REGEXP_REPEAT (regexp)->regexp); in process_regexp()
2816 return regexp; in process_regexp()
2832 DECL_RESERV (decl)->regexp in process_regexp_decls()
2833 = process_regexp (DECL_RESERV (decl)->regexp); in process_regexp_decls()
2835 DECL_INSN_RESERV (decl)->regexp in process_regexp_decls()
2836 = process_regexp (DECL_INSN_RESERV (decl)->regexp); in process_regexp_decls()
2878 loop_in_regexp (regexp_t regexp, decl_t start_decl) in loop_in_regexp() argument
2882 if (regexp == NULL) in loop_in_regexp()
2884 switch (regexp->mode) in loop_in_regexp()
2891 && REGEXP_RESERV (regexp)->reserv_decl == DECL_RESERV (start_decl)) in loop_in_regexp()
2893 else if (REGEXP_RESERV (regexp)->reserv_decl->loop_pass_num in loop_in_regexp()
2899 REGEXP_RESERV (regexp)->reserv_decl->loop_pass_num in loop_in_regexp()
2901 return loop_in_regexp (REGEXP_RESERV (regexp)->reserv_decl->regexp, in loop_in_regexp()
2906 for (i = 0; i <REGEXP_SEQUENCE (regexp)->regexps_num; i++) in loop_in_regexp()
2907 if (loop_in_regexp (REGEXP_SEQUENCE (regexp)->regexps [i], start_decl)) in loop_in_regexp()
2912 for (i = 0; i < REGEXP_ALLOF (regexp)->regexps_num; i++) in loop_in_regexp()
2913 if (loop_in_regexp (REGEXP_ALLOF (regexp)->regexps [i], start_decl)) in loop_in_regexp()
2918 for (i = 0; i < REGEXP_ONEOF (regexp)->regexps_num; i++) in loop_in_regexp()
2919 if (loop_in_regexp (REGEXP_ONEOF (regexp)->regexps [i], start_decl)) in loop_in_regexp()
2924 return loop_in_regexp (REGEXP_REPEAT (regexp)->regexp, start_decl); in loop_in_regexp()
2956 if (loop_in_regexp (DECL_RESERV (decl)->regexp, decl)) in check_loops_in_regexps()
2958 gcc_assert (DECL_RESERV (decl)->regexp); in check_loops_in_regexps()
2969 process_regexp_cycles (regexp_t regexp, int max_start_cycle, in process_regexp_cycles() argument
2975 switch (regexp->mode) in process_regexp_cycles()
2978 if (REGEXP_UNIT (regexp)->unit_decl->max_occ_cycle_num < max_start_cycle) in process_regexp_cycles()
2979 REGEXP_UNIT (regexp)->unit_decl->max_occ_cycle_num = max_start_cycle; in process_regexp_cycles()
2980 if (REGEXP_UNIT (regexp)->unit_decl->min_occ_cycle_num > min_start_cycle in process_regexp_cycles()
2981 || REGEXP_UNIT (regexp)->unit_decl->min_occ_cycle_num == -1) in process_regexp_cycles()
2982 REGEXP_UNIT (regexp)->unit_decl->min_occ_cycle_num = min_start_cycle; in process_regexp_cycles()
2988 process_regexp_cycles (REGEXP_RESERV (regexp)->reserv_decl->regexp, in process_regexp_cycles()
2994 for (i = 0; i < REGEXP_REPEAT (regexp)->repeat_num; i++) in process_regexp_cycles()
2996 process_regexp_cycles (REGEXP_REPEAT (regexp)->regexp, in process_regexp_cycles()
3005 for (i = 0; i <REGEXP_SEQUENCE (regexp)->regexps_num; i++) in process_regexp_cycles()
3007 process_regexp_cycles (REGEXP_SEQUENCE (regexp)->regexps [i], in process_regexp_cycles()
3020 for (i = 0; i < REGEXP_ALLOF (regexp)->regexps_num; i++) in process_regexp_cycles()
3022 process_regexp_cycles (REGEXP_ALLOF (regexp)->regexps [i], in process_regexp_cycles()
3040 for (i = 0; i < REGEXP_ONEOF (regexp)->regexps_num; i++) in process_regexp_cycles()
3042 process_regexp_cycles (REGEXP_ONEOF (regexp)->regexps [i], in process_regexp_cycles()
3081 process_regexp_cycles (DECL_INSN_RESERV (decl)->regexp, 0, 0, in evaluate_max_reserv_cycles()
3227 DECL_INSN_RESERV (advance_cycle_insn_decl)->regexp = NULL; in add_advance_cycle_insn_decl()
3243 DECL_INSN_RESERV (collapse_ndfa_insn_decl)->regexp = NULL; in add_collapse_ndfa_insn_decl()
4489 copy_insn_regexp (regexp_t regexp) in copy_insn_regexp() argument
4494 switch (regexp->mode) in copy_insn_regexp()
4497 result = copy_insn_regexp (REGEXP_RESERV (regexp)->reserv_decl->regexp); in copy_insn_regexp()
4501 result = XCOPYNODE (struct regexp, regexp); in copy_insn_regexp()
4505 result = XCOPYNODE (struct regexp, regexp); in copy_insn_regexp()
4506 REGEXP_REPEAT (result)->regexp in copy_insn_regexp()
4507 = copy_insn_regexp (REGEXP_REPEAT (regexp)->regexp); in copy_insn_regexp()
4511 result = XCOPYNODEVAR (struct regexp, regexp, in copy_insn_regexp()
4512 sizeof (struct regexp) + sizeof (regexp_t) in copy_insn_regexp()
4513 * (REGEXP_SEQUENCE (regexp)->regexps_num - 1)); in copy_insn_regexp()
4514 for (i = 0; i <REGEXP_SEQUENCE (regexp)->regexps_num; i++) in copy_insn_regexp()
4516 = copy_insn_regexp (REGEXP_SEQUENCE (regexp)->regexps [i]); in copy_insn_regexp()
4520 result = XCOPYNODEVAR (struct regexp, regexp, in copy_insn_regexp()
4521 sizeof (struct regexp) + sizeof (regexp_t) in copy_insn_regexp()
4522 * (REGEXP_ALLOF (regexp)->regexps_num - 1)); in copy_insn_regexp()
4523 for (i = 0; i < REGEXP_ALLOF (regexp)->regexps_num; i++) in copy_insn_regexp()
4525 = copy_insn_regexp (REGEXP_ALLOF (regexp)->regexps [i]); in copy_insn_regexp()
4529 result = XCOPYNODEVAR (struct regexp, regexp, in copy_insn_regexp()
4530 sizeof (struct regexp) + sizeof (regexp_t) in copy_insn_regexp()
4531 * (REGEXP_ONEOF (regexp)->regexps_num - 1)); in copy_insn_regexp()
4532 for (i = 0; i < REGEXP_ONEOF (regexp)->regexps_num; i++) in copy_insn_regexp()
4534 = copy_insn_regexp (REGEXP_ONEOF (regexp)->regexps [i]); in copy_insn_regexp()
4538 result = XCOPYNODE (struct regexp, regexp); in copy_insn_regexp()
4554 transform_1 (regexp_t regexp) in transform_1() argument
4561 if (regexp->mode == rm_repeat) in transform_1()
4563 repeat_num = REGEXP_REPEAT (regexp)->repeat_num; in transform_1()
4565 operand = REGEXP_REPEAT (regexp)->regexp; in transform_1()
4566 pos = regexp->mode; in transform_1()
4567 regexp = XCREATENODEVAR (struct regexp, sizeof (struct regexp) in transform_1()
4569 regexp->mode = rm_sequence; in transform_1()
4570 regexp->pos = pos; in transform_1()
4571 REGEXP_SEQUENCE (regexp)->regexps_num = repeat_num; in transform_1()
4573 REGEXP_SEQUENCE (regexp)->regexps [i] = copy_insn_regexp (operand); in transform_1()
4576 return regexp; in transform_1()
4584 transform_2 (regexp_t regexp) in transform_2() argument
4586 if (regexp->mode == rm_sequence) in transform_2()
4593 for (i = 0; i < REGEXP_SEQUENCE (regexp)->regexps_num; i++) in transform_2()
4594 if (REGEXP_SEQUENCE (regexp)->regexps [i]->mode == rm_sequence) in transform_2()
4597 sequence = REGEXP_SEQUENCE (regexp)->regexps [i]; in transform_2()
4600 if (i < REGEXP_SEQUENCE (regexp)->regexps_num) in transform_2()
4603 && REGEXP_SEQUENCE (regexp)->regexps_num > 1); in transform_2()
4604 result = XCREATENODEVAR (struct regexp, sizeof (struct regexp) in transform_2()
4606 * (REGEXP_SEQUENCE (regexp)->regexps_num in transform_2()
4610 result->pos = regexp->pos; in transform_2()
4612 = (REGEXP_SEQUENCE (regexp)->regexps_num in transform_2()
4614 for (i = 0; i < REGEXP_SEQUENCE (regexp)->regexps_num; i++) in transform_2()
4617 = copy_insn_regexp (REGEXP_SEQUENCE (regexp)->regexps [i]); in transform_2()
4621 = copy_insn_regexp (REGEXP_SEQUENCE (regexp)->regexps [i]); in transform_2()
4627 regexp = result; in transform_2()
4630 else if (regexp->mode == rm_allof) in transform_2()
4637 for (i = 0; i < REGEXP_ALLOF (regexp)->regexps_num; i++) in transform_2()
4638 if (REGEXP_ALLOF (regexp)->regexps [i]->mode == rm_allof) in transform_2()
4641 allof = REGEXP_ALLOF (regexp)->regexps [i]; in transform_2()
4644 if (i < REGEXP_ALLOF (regexp)->regexps_num) in transform_2()
4647 && REGEXP_ALLOF (regexp)->regexps_num > 1); in transform_2()
4648 result = XCREATENODEVAR (struct regexp, sizeof (struct regexp) in transform_2()
4650 * (REGEXP_ALLOF (regexp)->regexps_num in transform_2()
4653 result->pos = regexp->pos; in transform_2()
4655 = (REGEXP_ALLOF (regexp)->regexps_num in transform_2()
4657 for (i = 0; i < REGEXP_ALLOF (regexp)->regexps_num; i++) in transform_2()
4660 = copy_insn_regexp (REGEXP_ALLOF (regexp)->regexps [i]); in transform_2()
4664 = copy_insn_regexp (REGEXP_ALLOF (regexp)->regexps [i]); in transform_2()
4670 regexp = result; in transform_2()
4673 else if (regexp->mode == rm_oneof) in transform_2()
4680 for (i = 0; i < REGEXP_ONEOF (regexp)->regexps_num; i++) in transform_2()
4681 if (REGEXP_ONEOF (regexp)->regexps [i]->mode == rm_oneof) in transform_2()
4684 oneof = REGEXP_ONEOF (regexp)->regexps [i]; in transform_2()
4687 if (i < REGEXP_ONEOF (regexp)->regexps_num) in transform_2()
4690 && REGEXP_ONEOF (regexp)->regexps_num > 1); in transform_2()
4691 result = XCREATENODEVAR (struct regexp, sizeof (struct regexp) in transform_2()
4693 * (REGEXP_ONEOF (regexp)->regexps_num in transform_2()
4696 result->pos = regexp->pos; in transform_2()
4698 = (REGEXP_ONEOF (regexp)->regexps_num in transform_2()
4700 for (i = 0; i < REGEXP_ONEOF (regexp)->regexps_num; i++) in transform_2()
4703 = copy_insn_regexp (REGEXP_ONEOF (regexp)->regexps [i]); in transform_2()
4707 = copy_insn_regexp (REGEXP_ONEOF (regexp)->regexps [i]); in transform_2()
4713 regexp = result; in transform_2()
4716 return regexp; in transform_2()
4725 transform_3 (regexp_t regexp) in transform_3() argument
4727 if (regexp->mode == rm_sequence) in transform_3()
4735 for (i = 0; i <REGEXP_SEQUENCE (regexp)->regexps_num; i++) in transform_3()
4736 if (REGEXP_SEQUENCE (regexp)->regexps [i]->mode == rm_oneof) in transform_3()
4739 oneof = REGEXP_SEQUENCE (regexp)->regexps [i]; in transform_3()
4742 if (i < REGEXP_SEQUENCE (regexp)->regexps_num) in transform_3()
4745 && REGEXP_SEQUENCE (regexp)->regexps_num > 1); in transform_3()
4746 result = XCREATENODEVAR (struct regexp, sizeof (struct regexp) in transform_3()
4750 result->pos = regexp->pos; in transform_3()
4756 = XCREATENODEVAR (struct regexp, sizeof (struct regexp) in transform_3()
4758 * (REGEXP_SEQUENCE (regexp)->regexps_num - 1)); in transform_3()
4760 sequence->pos = regexp->pos; in transform_3()
4762 = REGEXP_SEQUENCE (regexp)->regexps_num; in transform_3()
4767 = copy_insn_regexp (REGEXP_SEQUENCE (regexp)->regexps [j]); in transform_3()
4773 regexp = result; in transform_3()
4776 else if (regexp->mode == rm_allof) in transform_3()
4787 for (i = 0; i < REGEXP_ALLOF (regexp)->regexps_num; i++) in transform_3()
4788 if (REGEXP_ALLOF (regexp)->regexps [i]->mode == rm_oneof) in transform_3()
4791 oneof = REGEXP_ALLOF (regexp)->regexps [i]; in transform_3()
4794 if (i < REGEXP_ALLOF (regexp)->regexps_num) in transform_3()
4797 && REGEXP_ALLOF (regexp)->regexps_num > 1); in transform_3()
4798 result = XCREATENODEVAR (struct regexp, sizeof (struct regexp) in transform_3()
4802 result->pos = regexp->pos; in transform_3()
4808 = XCREATENODEVAR (struct regexp, sizeof (struct regexp) in transform_3()
4810 * (REGEXP_ALLOF (regexp)->regexps_num - 1)); in transform_3()
4812 allof->pos = regexp->pos; in transform_3()
4814 = REGEXP_ALLOF (regexp)->regexps_num; in transform_3()
4819 = copy_insn_regexp (REGEXP_ALLOF (regexp)->regexps [j]); in transform_3()
4825 regexp = result; in transform_3()
4828 if (regexp->mode == rm_allof) in transform_3()
4829 for (i = 0; i < REGEXP_ALLOF (regexp)->regexps_num; i++) in transform_3()
4831 switch (REGEXP_ALLOF (regexp)->regexps [i]->mode) in transform_3()
4834 seq = REGEXP_ALLOF (regexp)->regexps [i]; in transform_3()
4852 && REGEXP_ALLOF (regexp)->regexps_num > 1); in transform_3()
4853 result = XCREATENODEVAR (struct regexp, sizeof (struct regexp) in transform_3()
4856 result->pos = regexp->pos; in transform_3()
4861 for (j = 0; j < REGEXP_ALLOF (regexp)->regexps_num; j++) in transform_3()
4862 switch (REGEXP_ALLOF (regexp)->regexps [j]->mode) in transform_3()
4865 if (i < (REGEXP_SEQUENCE (REGEXP_ALLOF (regexp) in transform_3()
4869 = (REGEXP_SEQUENCE (REGEXP_ALLOF (regexp) in transform_3()
4879 allof_op = REGEXP_ALLOF (regexp)->regexps [j]; in transform_3()
4891 allof = XCREATENODEVAR (struct regexp, sizeof (struct regexp) in transform_3()
4895 allof->pos = regexp->pos; in transform_3()
4899 for (j = 0; j < REGEXP_ALLOF (regexp)->regexps_num; j++) in transform_3()
4900 if (REGEXP_ALLOF (regexp)->regexps [j]->mode == rm_sequence in transform_3()
4902 (REGEXP_SEQUENCE (REGEXP_ALLOF (regexp) in transform_3()
4905 allof_op = (REGEXP_SEQUENCE (REGEXP_ALLOF (regexp) in transform_3()
4913 && (REGEXP_ALLOF (regexp)->regexps [j]->mode in transform_3()
4915 || (REGEXP_ALLOF (regexp)->regexps [j]->mode in transform_3()
4918 allof_op = REGEXP_ALLOF (regexp)->regexps [j]; in transform_3()
4926 regexp = result; in transform_3()
4929 return regexp; in transform_3()
4935 regexp_transform_func (regexp_t regexp, regexp_t (*func) (regexp_t regexp)) in regexp_transform_func() argument
4939 switch (regexp->mode) in regexp_transform_func()
4942 for (i = 0; i < REGEXP_SEQUENCE (regexp)->regexps_num; i++) in regexp_transform_func()
4943 REGEXP_SEQUENCE (regexp)->regexps [i] in regexp_transform_func()
4944 = regexp_transform_func (REGEXP_SEQUENCE (regexp)->regexps [i], in regexp_transform_func()
4949 for (i = 0; i < REGEXP_ALLOF (regexp)->regexps_num; i++) in regexp_transform_func()
4950 REGEXP_ALLOF (regexp)->regexps [i] in regexp_transform_func()
4951 = regexp_transform_func (REGEXP_ALLOF (regexp)->regexps [i], func); in regexp_transform_func()
4955 for (i = 0; i < REGEXP_ONEOF (regexp)->regexps_num; i++) in regexp_transform_func()
4956 REGEXP_ONEOF (regexp)->regexps [i] in regexp_transform_func()
4957 = regexp_transform_func (REGEXP_ONEOF (regexp)->regexps [i], func); in regexp_transform_func()
4961 REGEXP_REPEAT (regexp)->regexp in regexp_transform_func()
4962 = regexp_transform_func (REGEXP_REPEAT (regexp)->regexp, func); in regexp_transform_func()
4972 return (*func) (regexp); in regexp_transform_func()
4978 transform_regexp (regexp_t regexp) in transform_regexp() argument
4980 regexp = regexp_transform_func (regexp, transform_1); in transform_regexp()
4984 regexp = regexp_transform_func (regexp, transform_2); in transform_regexp()
4985 regexp = regexp_transform_func (regexp, transform_3); in transform_regexp()
4988 return regexp; in transform_regexp()
5011 (DECL_INSN_RESERV (decl)->regexp)); in transform_insn_regexps()
5055 store_alt_unit_usage (regexp_t regexp, regexp_t unit, int cycle, in store_alt_unit_usage() argument
5063 gcc_assert (regexp && regexp->mode == rm_oneof in store_alt_unit_usage()
5064 && alt_num < REGEXP_ONEOF (regexp)->regexps_num); in store_alt_unit_usage()
5067 length = (cycle + 1) * REGEXP_ONEOF (regexp)->regexps_num; in store_alt_unit_usage()
5071 index = cycle * REGEXP_ONEOF (regexp)->regexps_num + alt_num; in store_alt_unit_usage()
5148 regexp_t regexp) in check_regexp_units_distribution() argument
5155 if (regexp == NULL || regexp->mode != rm_oneof) in check_regexp_units_distribution()
5161 for (i = REGEXP_ONEOF (regexp)->regexps_num - 1; i >= 0; i--) in check_regexp_units_distribution()
5163 seq = REGEXP_ONEOF (regexp)->regexps [i]; in check_regexp_units_distribution()
5177 store_alt_unit_usage (regexp, unit, j, i); in check_regexp_units_distribution()
5184 store_alt_unit_usage (regexp, allof, j, i); in check_regexp_units_distribution()
5203 store_alt_unit_usage (regexp, unit, 0, i); in check_regexp_units_distribution()
5216 store_alt_unit_usage (regexp, seq, 0, i); in check_regexp_units_distribution()
5232 n_alts = REGEXP_ONEOF (regexp)->regexps_num; in check_regexp_units_distribution()
5353 process_seq_for_forming_states (regexp_t regexp, automaton_t automaton, in process_seq_for_forming_states() argument
5358 if (regexp == NULL) in process_seq_for_forming_states()
5361 switch (regexp->mode) in process_seq_for_forming_states()
5364 if (REGEXP_UNIT (regexp)->unit_decl->corresponding_automaton_num in process_seq_for_forming_states()
5367 REGEXP_UNIT (regexp)->unit_decl->unit_num); in process_seq_for_forming_states()
5371 for (i = 0; i < REGEXP_SEQUENCE (regexp)->regexps_num; i++) in process_seq_for_forming_states()
5374 (REGEXP_SEQUENCE (regexp)->regexps [i], automaton, curr_cycle) + 1; in process_seq_for_forming_states()
5382 for (i = 0; i < REGEXP_ALLOF (regexp)->regexps_num; i++) in process_seq_for_forming_states()
5384 cycle = process_seq_for_forming_states (REGEXP_ALLOF (regexp) in process_seq_for_forming_states()
5427 process_alts_for_forming_states (regexp_t regexp, automaton_t automaton, in process_alts_for_forming_states() argument
5432 if (regexp->mode != rm_oneof) in process_alts_for_forming_states()
5442 (void) process_seq_for_forming_states (regexp, automaton, 0); in process_alts_for_forming_states()
5451 for (i = REGEXP_ONEOF (regexp)->regexps_num - 1; i >= 0; i--) in process_alts_for_forming_states()
5452 process_alts_for_forming_states (REGEXP_ONEOF (regexp)->regexps [i], in process_alts_for_forming_states()
6792 form_regexp (regexp_t regexp) in form_regexp() argument
6796 switch (regexp->mode) in form_regexp()
6800 const char *name = (regexp->mode == rm_unit in form_regexp()
6801 ? REGEXP_UNIT (regexp)->name in form_regexp()
6802 : REGEXP_RESERV (regexp)->name); in form_regexp()
6809 for (i = 0; i < REGEXP_SEQUENCE (regexp)->regexps_num; i++) in form_regexp()
6813 form_regexp (REGEXP_SEQUENCE (regexp)->regexps [i]); in form_regexp()
6819 for (i = 0; i < REGEXP_ALLOF (regexp)->regexps_num; i++) in form_regexp()
6823 if (REGEXP_ALLOF (regexp)->regexps[i]->mode == rm_sequence in form_regexp()
6824 || REGEXP_ALLOF (regexp)->regexps[i]->mode == rm_oneof) in form_regexp()
6826 form_regexp (REGEXP_ALLOF (regexp)->regexps [i]); in form_regexp()
6827 if (REGEXP_ALLOF (regexp)->regexps[i]->mode == rm_sequence in form_regexp()
6828 || REGEXP_ALLOF (regexp)->regexps[i]->mode == rm_oneof) in form_regexp()
6835 for (i = 0; i < REGEXP_ONEOF (regexp)->regexps_num; i++) in form_regexp()
6839 if (REGEXP_ONEOF (regexp)->regexps[i]->mode == rm_sequence) in form_regexp()
6841 form_regexp (REGEXP_ONEOF (regexp)->regexps [i]); in form_regexp()
6842 if (REGEXP_ONEOF (regexp)->regexps[i]->mode == rm_sequence) in form_regexp()
6851 if (REGEXP_REPEAT (regexp)->regexp->mode == rm_sequence in form_regexp()
6852 || REGEXP_REPEAT (regexp)->regexp->mode == rm_allof in form_regexp()
6853 || REGEXP_REPEAT (regexp)->regexp->mode == rm_oneof) in form_regexp()
6855 form_regexp (REGEXP_REPEAT (regexp)->regexp); in form_regexp()
6856 if (REGEXP_REPEAT (regexp)->regexp->mode == rm_sequence in form_regexp()
6857 || REGEXP_REPEAT (regexp)->regexp->mode == rm_allof in form_regexp()
6858 || REGEXP_REPEAT (regexp)->regexp->mode == rm_oneof) in form_regexp()
6860 sprintf (digits, "*%d", REGEXP_REPEAT (regexp)->repeat_num); in form_regexp()
6877 regexp_representation (regexp_t regexp) in regexp_representation() argument
6879 form_regexp (regexp); in regexp_representation()
8544 regexp_representation (DECL_INSN_RESERV (decl)->regexp)); in output_print_reservation_func()
8768 output_regexp (regexp_t regexp) in output_regexp() argument
8770 fprintf (output_description_file, "%s", regexp_representation (regexp)); in output_regexp()
8865 output_regexp (DECL_RESERV (decl)->regexp); in output_description()
8875 output_regexp (DECL_INSN_RESERV (decl)->regexp); in output_description()