public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [ping][vect-patterns][RFC] Refactor widening patterns to allow internal_fn's
@ 2021-08-17 10:30 Joel Hutton
  2021-08-19 12:31 ` Richard Biener
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Hutton @ 2021-08-17 10:30 UTC (permalink / raw)
  To: gcc-patches; +Cc: Richard Biener, Richard Sandiford

Ping. Is there still interest in refactoring vect-patterns to internal_fn's? 

> -----Original Message-----
> From: Joel Hutton
> Sent: 07 June 2021 14:30
> To: gcc-patches@gcc.gnu.org
> Cc: Richard Biener <rguenther@suse.de>; Richard Sandiford
> <Richard.Sandiford@arm.com>
> Subject: [vect-patterns][RFC] Refactor widening patterns to allow
> internal_fn's
> 
> Hi all,
> 
> This refactor allows widening patterns (such as widen_plus/widen_minus) to
> be represented as either internal_fns or tree_codes. The widening patterns
> were originally added as tree codes with the expectation that they would be
> refactored later.
> 
> [vect-patterns] Refactor as internal_fn's
> 
> Refactor vect-patterns to allow patterns to be internal_fns starting with
> widening_plus/minus patterns.
> 
> 
> gcc/ChangeLog:
> 
>         * gimple-match.h (class code_helper): Move code_helper class to more
> visible header.
>         * internal-fn.h (internal_fn_name): Add internal_fn range check.
>         * optabs-tree.h (supportable_convert_operation): Change function
> prototypes to use code_helper.
>         * tree-vect-patterns.c (vect_recog_widen_op_pattern): Refactor to use
> code_helper.
>         * tree-vect-stmts.c (vect_gen_widened_results_half): Refactor to use
> code_helper, build internal_fns.
>         (vect_create_vectorized_promotion_stmts): Refactor to use
> code_helper.
>         (vectorizable_conversion): Refactor to use code_helper.
>         (supportable_widening_operation): Refactor to use code_helper.
>         (supportable_narrowing_operation): Refactor to use code_helper.
>         * tree-vectorizer.h (supportable_widening_operation): Refactor to use
> code_helper.
>         (supportable_narrowing_operation): Refactor to use code_helper.
>         * tree.h (class code_helper): Refactor to use code_helper.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-19 12:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-17 10:30 [ping][vect-patterns][RFC] Refactor widening patterns to allow internal_fn's Joel Hutton
2021-08-19 12:31 ` Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).