diff options
author | Robin Dapp <rdapp@ventanamicro.com> | 2024-11-26 14:44:17 +0100 |
---|---|---|
committer | Robin Dapp <rdapp@ventanamicro.com> | 2024-12-13 14:20:13 +0100 |
commit | 6dcfe8743134936db17ffdfd0a5102a87338f494 (patch) | |
tree | f6a357e2f46bff856e16a1279609915ca92ee218 /gcc/read-md.h | |
parent | 959a80a46dbc4d3ad1bf8560dfacb585ccd8cac4 (diff) | |
download | gcc-6dcfe8743134936db17ffdfd0a5102a87338f494.zip gcc-6dcfe8743134936db17ffdfd0a5102a87338f494.tar.gz gcc-6dcfe8743134936db17ffdfd0a5102a87338f494.tar.bz2 |
genrecog: Split into separate partitions [PR111600].
Hi,
this patch makes genrecog split its output into separate files (10 by
default) in the same vein genemit does. The changes are mostly
mechanical again, changing printfs and puts to fprintf.
As insn-recog.cc relies on being able to call other recog functions a
header insn-recog.h is introduced that pre declares all of those.
For simplicity the number of files is determined by (re-using)
--with-insnemit-partitions. Naming suggestions welcome :)
Bootstrapped and regtested on x86 and power10, regtested on riscv.
aarch64 bootstrap is currently blocked because of the
"maybe uninitialized" issue discussed on IRC.
Regards
Robin
PR target/111600
gcc/ChangeLog:
* Makefile.in: Add insn-recog split.
* configure: Regenerate.
* configure.ac: Document that the number of insnemit partitions is
used for insn-recog as well.
* genconditions.cc (write_one_condition): Use fprintf.
* genpreds.cc (write_predicate_expr): Ditto.
(write_init_reg_class_start_regs): Ditto.
* genrecog.cc (write_header): Add header file to includes.
(printf_indent): Use fprintf.
(change_state): Ditto.
(print_code): Ditto.
(print_host_wide_int): Ditto.
(print_parameter_value): Ditto.
(print_test_rtx): Ditto.
(print_nonbool_test): Ditto.
(print_label_value): Ditto.
(print_test): Ditto.
(print_decision): Ditto.
(print_state): Ditto.
(print_subroutine_call): Ditto.
(print_acceptance): Ditto.
(print_subroutine_start): Ditto.
(print_pattern): Ditto.
(print_subroutine): Ditto.
(print_subroutine_group): Ditto.
(handle_arg): Add -O and -H for output and header file handling.
(main): Use callback.
* gentarget-def.cc (def_target_insn): Use fprintf.
* read-md.cc (md_reader::print_c_condition): Ditto.
* read-md.h (class md_reader): Ditto.
Diffstat (limited to 'gcc/read-md.h')
-rw-r--r-- | gcc/read-md.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/read-md.h b/gcc/read-md.h index e613c42..b42add3 100644 --- a/gcc/read-md.h +++ b/gcc/read-md.h @@ -205,7 +205,7 @@ class md_reader const char *join_c_conditions (const char *cond1, const char *cond2); void fprint_c_condition (FILE *outf, const char *cond); - void print_c_condition (const char *cond); + void print_c_condition (FILE *outf, const char *cond); /* Defined in read-rtl.cc. */ const char *apply_iterator_to_string (const char *string); |