aboutsummaryrefslogtreecommitdiff
path: root/gcc/genmatch.cc
diff options
context:
space:
mode:
authorTamar Christina <tamar.christina@arm.com>2023-05-05 13:37:49 +0100
committerTamar Christina <tamar.christina@arm.com>2023-05-05 13:47:35 +0100
commit27fcf994c5515e1bbf2ff03d28fd2fa927c7e7b5 (patch)
tree580c379e1d2315b3394f0e42a6120544c198d0a4 /gcc/genmatch.cc
parentc0ce29bc1ce329001b6c02bb3d34bcbb086e1b72 (diff)
downloadgcc-27fcf994c5515e1bbf2ff03d28fd2fa927c7e7b5.zip
gcc-27fcf994c5515e1bbf2ff03d28fd2fa927c7e7b5.tar.gz
gcc-27fcf994c5515e1bbf2ff03d28fd2fa927c7e7b5.tar.bz2
genmatch: split shared code to gimple-match-exports.cc
In preparation for automatically splitting match.pd files I split off the non-static helper functions that are shared between the match.pd functions off to another file. This file can be compiled in parallel and also allows us to later avoid duplicate symbols errors. gcc/ChangeLog: PR bootstrap/84402 * Makefile.in (OBJS): Add gimple-match-exports.o. * genmatch.cc (decision_tree::gen): Export gimple_gimplify helpers. * gimple-match-head.cc (gimple_simplify, gimple_resimplify1, gimple_resimplify2, gimple_resimplify3, gimple_resimplify4, gimple_resimplify5, constant_for_folding, convert_conditional_op, maybe_resimplify_conditional_op, gimple_match_op::resimplify, maybe_build_generic_op, build_call_internal, maybe_push_res_to_seq, do_valueize, try_conditional_simplification, gimple_extract, gimple_extract_op, canonicalize_code, commutative_binary_op_p, commutative_ternary_op_p, first_commutative_argument, associative_binary_op_p, directly_supported_p, get_conditional_internal_fn): Moved to gimple-match-exports.cc * gimple-match-exports.cc: New file.
Diffstat (limited to 'gcc/genmatch.cc')
-rw-r--r--gcc/genmatch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/genmatch.cc b/gcc/genmatch.cc
index b2e01de..09548bd 100644
--- a/gcc/genmatch.cc
+++ b/gcc/genmatch.cc
@@ -3955,7 +3955,7 @@ decision_tree::gen (FILE *f, bool gimple)
if (! has_kids_p)
{
if (gimple)
- fprintf (f, "\nstatic bool\n"
+ fprintf (f, "\nbool\n"
"gimple_simplify (gimple_match_op*, gimple_seq*,\n"
" tree (*)(tree), code_helper,\n"
" const tree");
@@ -3978,7 +3978,7 @@ decision_tree::gen (FILE *f, bool gimple)
/* Then generate the main entry with the outermost switch and
tail-calls to the split-out functions. */
if (gimple)
- fprintf (f, "\nstatic bool\n"
+ fprintf (f, "\nbool\n"
"gimple_simplify (gimple_match_op *res_op, gimple_seq *seq,\n"
" tree (*valueize)(tree) ATTRIBUTE_UNUSED,\n"
" code_helper code, const tree type");