* [PATCH] Externalize definition of create_tmp_reg_or_ssa_name
@ 2016-12-19 17:27 Will Schmidt
2016-12-20 10:48 ` Richard Biener
0 siblings, 1 reply; 5+ messages in thread
From: Will Schmidt @ 2016-12-19 17:27 UTC (permalink / raw)
To: GCC Patches; +Cc: Richard Biener
Hi,
For some future rs6000 vector folding patches, I will be needing
access to the create_tmp_reg_or_ssa_name() function in rs6000.c.
Thus...
Externalize the definition of create_tmp_reg_or_ssa_name
for use in rs6000.c. The actual usage will show up in later patches.
I'll note that I do not have any 'usage' patches quite ready to go, so
I may just sit on committing this until one of those usage patches is ready.
I've bootstrapped and make check with this patch applied in conjunction with
other patches.
OK for trunk?
[gcc]
2016-12-19 Will Schmidt <will_schmidt@vnet.ibm.com>
* gimple-fold.c (create_tmp_reg_or_ssa_name): remove static declaration.
* gimple-fold.h: add prototype.
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c
index d00625b..ac4498f 100644
--- a/gcc/gimple-fold.c
+++ b/gcc/gimple-fold.c
@@ -161,8 +161,8 @@ can_refer_decl_in_current_unit_p (tree decl, tree from_decl)
is in SSA form, a SSA name is created. Otherwise a temporary register
is made. */
-static tree
-create_tmp_reg_or_ssa_name (tree type, gimple *stmt = NULL)
+tree
+create_tmp_reg_or_ssa_name (tree type, gimple *stmt)
{
if (gimple_in_ssa_p (cfun))
return make_ssa_name (type, stmt);
diff --git a/gcc/gimple-fold.h b/gcc/gimple-fold.h
index 5add30c..e7f8fe2 100644
--- a/gcc/gimple-fold.h
+++ b/gcc/gimple-fold.h
@@ -22,6 +22,7 @@ along with GCC; see the file COPYING3. If not see
#ifndef GCC_GIMPLE_FOLD_H
#define GCC_GIMPLE_FOLD_H
+extern tree create_tmp_reg_or_ssa_name (tree, gimple *stmt = NULL);
extern tree canonicalize_constructor_val (tree, tree);
extern tree get_symbol_constant_value (tree);
extern void get_range_strlen (tree, tree[2]);
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Externalize definition of create_tmp_reg_or_ssa_name
2016-12-19 17:27 [PATCH] Externalize definition of create_tmp_reg_or_ssa_name Will Schmidt
@ 2016-12-20 10:48 ` Richard Biener
2016-12-20 11:26 ` Jakub Jelinek
0 siblings, 1 reply; 5+ messages in thread
From: Richard Biener @ 2016-12-20 10:48 UTC (permalink / raw)
To: will_schmidt; +Cc: GCC Patches
On Mon, Dec 19, 2016 at 6:27 PM, Will Schmidt <will_schmidt@vnet.ibm.com> wrote:
> Hi,
>
> For some future rs6000 vector folding patches, I will be needing
> access to the create_tmp_reg_or_ssa_name() function in rs6000.c.
> Thus...
> Externalize the definition of create_tmp_reg_or_ssa_name
> for use in rs6000.c. The actual usage will show up in later patches.
>
> I'll note that I do not have any 'usage' patches quite ready to go, so
> I may just sit on committing this until one of those usage patches is ready.
>
> I've bootstrapped and make check with this patch applied in conjunction with
> other patches.
>
> OK for trunk?
Ok.
Richard.
>
> [gcc]
>
> 2016-12-19 Will Schmidt <will_schmidt@vnet.ibm.com>
>
> * gimple-fold.c (create_tmp_reg_or_ssa_name): remove static declaration.
> * gimple-fold.h: add prototype.
>
> diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c
> index d00625b..ac4498f 100644
> --- a/gcc/gimple-fold.c
> +++ b/gcc/gimple-fold.c
> @@ -161,8 +161,8 @@ can_refer_decl_in_current_unit_p (tree decl, tree from_decl)
> is in SSA form, a SSA name is created. Otherwise a temporary register
> is made. */
>
> -static tree
> -create_tmp_reg_or_ssa_name (tree type, gimple *stmt = NULL)
> +tree
> +create_tmp_reg_or_ssa_name (tree type, gimple *stmt)
> {
> if (gimple_in_ssa_p (cfun))
> return make_ssa_name (type, stmt);
> diff --git a/gcc/gimple-fold.h b/gcc/gimple-fold.h
> index 5add30c..e7f8fe2 100644
> --- a/gcc/gimple-fold.h
> +++ b/gcc/gimple-fold.h
> @@ -22,6 +22,7 @@ along with GCC; see the file COPYING3. If not see
> #ifndef GCC_GIMPLE_FOLD_H
> #define GCC_GIMPLE_FOLD_H
>
> +extern tree create_tmp_reg_or_ssa_name (tree, gimple *stmt = NULL);
> extern tree canonicalize_constructor_val (tree, tree);
> extern tree get_symbol_constant_value (tree);
> extern void get_range_strlen (tree, tree[2]);
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Externalize definition of create_tmp_reg_or_ssa_name
2016-12-20 10:48 ` Richard Biener
@ 2016-12-20 11:26 ` Jakub Jelinek
0 siblings, 0 replies; 5+ messages in thread
From: Jakub Jelinek @ 2016-12-20 11:26 UTC (permalink / raw)
To: Richard Biener; +Cc: will_schmidt, GCC Patches
On Tue, Dec 20, 2016 at 11:45:18AM +0100, Richard Biener wrote:
> > I've bootstrapped and make check with this patch applied in conjunction with
> > other patches.
> >
> > OK for trunk?
>
> Ok.
>
> Richard.
>
> >
> > [gcc]
> >
> > 2016-12-19 Will Schmidt <will_schmidt@vnet.ibm.com>
> >
> > * gimple-fold.c (create_tmp_reg_or_ssa_name): remove static declaration.
> > * gimple-fold.h: add prototype.
Just ChangeLog nit. Only one space after *, not two, and capital letter
after : .
Also, the second line should be
* gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
or so.
Jakub
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] Externalize definition of create_tmp_reg_or_ssa_name
@ 2017-05-11 15:53 Will Schmidt
2017-05-12 7:26 ` Richard Biener
0 siblings, 1 reply; 5+ messages in thread
From: Will Schmidt @ 2017-05-11 15:53 UTC (permalink / raw)
To: GCC Patches
Cc: Richard Biener, Jakub Jelinek, Segher Boessenkool, Bill Schmidt
Hi,
I had initially posted this back in Dec, at which time it
was given an OK. Since a bunch of time has passed, I'm reposting
to refresh memories, and ensure it's still OK. :-)
I will be needing access to the create_tmp_reg_or_ssa_name()
function for some subsequent early expansion of vectors patches.
Thus...
Externalize the definition of create_tmp_reg_or_ssa_name
for use in rs6000.c. (Usage will show up in later patches).
Bootstrapped and tested on powerpc64le-unknown-linux-gnu, and
powerpc-unknown-linux, (p7,p8le,p8be) with no regressions.
OK for trunk?
2017-05-10 Will Schmidt <will_schmidt@vnet.ibm.com>
[gcc]
* gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
* gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c
index 9fd45d1..2eaeecb 100644
--- a/gcc/gimple-fold.c
+++ b/gcc/gimple-fold.c
@@ -161,8 +161,8 @@ can_refer_decl_in_current_unit_p (tree decl, tree from_decl)
is in SSA form, a SSA name is created. Otherwise a temporary register
is made. */
-static tree
-create_tmp_reg_or_ssa_name (tree type, gimple *stmt = NULL)
+tree
+create_tmp_reg_or_ssa_name (tree type, gimple *stmt)
{
if (gimple_in_ssa_p (cfun))
return make_ssa_name (type, stmt);
diff --git a/gcc/gimple-fold.h b/gcc/gimple-fold.h
index e4931a1..d34d880 100644
--- a/gcc/gimple-fold.h
+++ b/gcc/gimple-fold.h
@@ -22,6 +22,7 @@ along with GCC; see the file COPYING3. If not see
#ifndef GCC_GIMPLE_FOLD_H
#define GCC_GIMPLE_FOLD_H
+extern tree create_tmp_reg_or_ssa_name (tree, gimple *stmt = NULL);
extern tree canonicalize_constructor_val (tree, tree);
extern tree get_symbol_constant_value (tree);
extern bool get_range_strlen (tree, tree[2]);
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Externalize definition of create_tmp_reg_or_ssa_name
2017-05-11 15:53 Will Schmidt
@ 2017-05-12 7:26 ` Richard Biener
0 siblings, 0 replies; 5+ messages in thread
From: Richard Biener @ 2017-05-12 7:26 UTC (permalink / raw)
To: will_schmidt; +Cc: GCC Patches, Jakub Jelinek, Segher Boessenkool, Bill Schmidt
On Thu, May 11, 2017 at 5:52 PM, Will Schmidt <will_schmidt@vnet.ibm.com> wrote:
> Hi,
>
> I had initially posted this back in Dec, at which time it
> was given an OK. Since a bunch of time has passed, I'm reposting
> to refresh memories, and ensure it's still OK. :-)
>
> I will be needing access to the create_tmp_reg_or_ssa_name()
> function for some subsequent early expansion of vectors patches.
> Thus...
>
> Externalize the definition of create_tmp_reg_or_ssa_name
> for use in rs6000.c. (Usage will show up in later patches).
>
> Bootstrapped and tested on powerpc64le-unknown-linux-gnu, and
> powerpc-unknown-linux, (p7,p8le,p8be) with no regressions.
>
> OK for trunk?
Ok.
>
> 2017-05-10 Will Schmidt <will_schmidt@vnet.ibm.com>
>
> [gcc]
> * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
> * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
>
> diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c
> index 9fd45d1..2eaeecb 100644
> --- a/gcc/gimple-fold.c
> +++ b/gcc/gimple-fold.c
> @@ -161,8 +161,8 @@ can_refer_decl_in_current_unit_p (tree decl, tree from_decl)
> is in SSA form, a SSA name is created. Otherwise a temporary register
> is made. */
>
> -static tree
> -create_tmp_reg_or_ssa_name (tree type, gimple *stmt = NULL)
> +tree
> +create_tmp_reg_or_ssa_name (tree type, gimple *stmt)
> {
> if (gimple_in_ssa_p (cfun))
> return make_ssa_name (type, stmt);
> diff --git a/gcc/gimple-fold.h b/gcc/gimple-fold.h
> index e4931a1..d34d880 100644
> --- a/gcc/gimple-fold.h
> +++ b/gcc/gimple-fold.h
> @@ -22,6 +22,7 @@ along with GCC; see the file COPYING3. If not see
> #ifndef GCC_GIMPLE_FOLD_H
> #define GCC_GIMPLE_FOLD_H
>
> +extern tree create_tmp_reg_or_ssa_name (tree, gimple *stmt = NULL);
> extern tree canonicalize_constructor_val (tree, tree);
> extern tree get_symbol_constant_value (tree);
> extern bool get_range_strlen (tree, tree[2]);
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-05-12 7:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-19 17:27 [PATCH] Externalize definition of create_tmp_reg_or_ssa_name Will Schmidt
2016-12-20 10:48 ` Richard Biener
2016-12-20 11:26 ` Jakub Jelinek
2017-05-11 15:53 Will Schmidt
2017-05-12 7:26 ` 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).