public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/wschmidt/heads/builtins10)] rs6000: Write static initializations for overload tables
@ 2021-06-25 16:16 William Schmidt
0 siblings, 0 replies; 6+ messages in thread
From: William Schmidt @ 2021-06-25 16:16 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:91cb8bcadac7f9266e83cebbe375af45626fe87f
commit 91cb8bcadac7f9266e83cebbe375af45626fe87f
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Mon Jun 7 15:03:36 2021 -0500
rs6000: Write static initializations for overload tables
2021-06-07 Bill Schmidt <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
function.
(write_init_file): Call write_ovld_static_init.
Diff:
---
gcc/config/rs6000/rs6000-gen-builtins.c | 53 +++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-gen-builtins.c b/gcc/config/rs6000/rs6000-gen-builtins.c
index 819c580b35e..acb213ca606 100644
--- a/gcc/config/rs6000/rs6000-gen-builtins.c
+++ b/gcc/config/rs6000/rs6000-gen-builtins.c
@@ -2520,6 +2520,58 @@ write_bif_static_init (void)
fprintf (init_file, " };\n\n");
}
+/* Write the decls and initializers for rs6000_overload_info[] and
+ rs6000_instance_info[]. */
+static void
+write_ovld_static_init (void)
+{
+ fprintf (init_file,
+ "ovldrecord rs6000_overload_info[RS6000_OVLD_MAX "
+ "- RS6000_OVLD_NONE] =\n");
+ fprintf (init_file, " {\n");
+ fprintf (init_file, " { /* RS6000_OVLD_NONE: */\n");
+ fprintf (init_file, " \"\", NULL\n");
+ fprintf (init_file, " },\n");
+ for (int i = 0; i <= curr_ovld_stanza; i++)
+ {
+ fprintf (init_file, " { /* RS6000_OVLD_%s: */\n",
+ ovld_stanzas[i].stanza_id);
+ fprintf (init_file, " /* ovld_name */\t\"%s\",\n",
+ ovld_stanzas[i].intern_name);
+ /* First-instance must currently be instantiated at run time. */
+ fprintf (init_file, " /* first_instance */\tNULL\n");
+ fprintf (init_file, " },\n");
+ }
+ fprintf (init_file, " };\n\n");
+
+ fprintf (init_file, "ovlddata rs6000_instance_info[RS6000_INST_MAX] =\n");
+ fprintf (init_file, " {\n");
+ fprintf (init_file, " { /* RS6000_INST_NONE: */\n");
+ fprintf (init_file, " \"\", RS6000_BIF_NONE, NULL_TREE, NULL\n");
+ fprintf (init_file, " },\n");
+ for (int i = 0; i <= curr_ovld; i++)
+ {
+ fprintf (init_file, " { /* RS6000_INST_%s: */\n",
+ ovlds[i].ovld_id_name);
+ fprintf (init_file, " /* bifname */\t\"%s\",\n",
+ ovlds[i].proto.bifname);
+ fprintf (init_file, " /* bifid */\tRS6000_BIF_%s,\n",
+ ovlds[i].bif_id_name);
+ /* Type must be instantiated at run time. */
+ fprintf (init_file, " /* fntype */\t0,\n");
+ fprintf (init_file, " /* next */\t");
+ if (i < curr_ovld
+ && !strcmp (ovlds[i+1].proto.bifname, ovlds[i].proto.bifname))
+ fprintf (init_file,
+ "&rs6000_instance_info[RS6000_INST_%s]\n",
+ ovlds[i+1].ovld_id_name);
+ else
+ fprintf (init_file, "NULL\n");
+ fprintf (init_file, " },\n");
+ }
+ fprintf (init_file, " };\n\n");
+}
+
/* Write code to initialize the built-in function table. */
static void
write_init_bif_table (void)
@@ -2708,6 +2760,7 @@ write_init_file (void)
fprintf (init_file, "tree rs6000_builtin_decls_x[RS6000_OVLD_MAX];\n\n");
write_bif_static_init ();
+ write_ovld_static_init ();
rbt_inorder_callback (&fntype_rbt, fntype_rbt.rbt_root, write_fntype);
fprintf (init_file, "\n");
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins10)] rs6000: Write static initializations for overload tables
@ 2021-06-15 17:17 William Schmidt
0 siblings, 0 replies; 6+ messages in thread
From: William Schmidt @ 2021-06-15 17:17 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:0865a2ac565b015ca6f8b847a35a31d95851720c
commit 0865a2ac565b015ca6f8b847a35a31d95851720c
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Mon Jun 7 15:03:36 2021 -0500
rs6000: Write static initializations for overload tables
2021-06-07 Bill Schmidt <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
function.
(write_init_file): Call write_ovld_static_init.
Diff:
---
gcc/config/rs6000/rs6000-gen-builtins.c | 53 +++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-gen-builtins.c b/gcc/config/rs6000/rs6000-gen-builtins.c
index 819c580b35e..acb213ca606 100644
--- a/gcc/config/rs6000/rs6000-gen-builtins.c
+++ b/gcc/config/rs6000/rs6000-gen-builtins.c
@@ -2520,6 +2520,58 @@ write_bif_static_init (void)
fprintf (init_file, " };\n\n");
}
+/* Write the decls and initializers for rs6000_overload_info[] and
+ rs6000_instance_info[]. */
+static void
+write_ovld_static_init (void)
+{
+ fprintf (init_file,
+ "ovldrecord rs6000_overload_info[RS6000_OVLD_MAX "
+ "- RS6000_OVLD_NONE] =\n");
+ fprintf (init_file, " {\n");
+ fprintf (init_file, " { /* RS6000_OVLD_NONE: */\n");
+ fprintf (init_file, " \"\", NULL\n");
+ fprintf (init_file, " },\n");
+ for (int i = 0; i <= curr_ovld_stanza; i++)
+ {
+ fprintf (init_file, " { /* RS6000_OVLD_%s: */\n",
+ ovld_stanzas[i].stanza_id);
+ fprintf (init_file, " /* ovld_name */\t\"%s\",\n",
+ ovld_stanzas[i].intern_name);
+ /* First-instance must currently be instantiated at run time. */
+ fprintf (init_file, " /* first_instance */\tNULL\n");
+ fprintf (init_file, " },\n");
+ }
+ fprintf (init_file, " };\n\n");
+
+ fprintf (init_file, "ovlddata rs6000_instance_info[RS6000_INST_MAX] =\n");
+ fprintf (init_file, " {\n");
+ fprintf (init_file, " { /* RS6000_INST_NONE: */\n");
+ fprintf (init_file, " \"\", RS6000_BIF_NONE, NULL_TREE, NULL\n");
+ fprintf (init_file, " },\n");
+ for (int i = 0; i <= curr_ovld; i++)
+ {
+ fprintf (init_file, " { /* RS6000_INST_%s: */\n",
+ ovlds[i].ovld_id_name);
+ fprintf (init_file, " /* bifname */\t\"%s\",\n",
+ ovlds[i].proto.bifname);
+ fprintf (init_file, " /* bifid */\tRS6000_BIF_%s,\n",
+ ovlds[i].bif_id_name);
+ /* Type must be instantiated at run time. */
+ fprintf (init_file, " /* fntype */\t0,\n");
+ fprintf (init_file, " /* next */\t");
+ if (i < curr_ovld
+ && !strcmp (ovlds[i+1].proto.bifname, ovlds[i].proto.bifname))
+ fprintf (init_file,
+ "&rs6000_instance_info[RS6000_INST_%s]\n",
+ ovlds[i+1].ovld_id_name);
+ else
+ fprintf (init_file, "NULL\n");
+ fprintf (init_file, " },\n");
+ }
+ fprintf (init_file, " };\n\n");
+}
+
/* Write code to initialize the built-in function table. */
static void
write_init_bif_table (void)
@@ -2708,6 +2760,7 @@ write_init_file (void)
fprintf (init_file, "tree rs6000_builtin_decls_x[RS6000_OVLD_MAX];\n\n");
write_bif_static_init ();
+ write_ovld_static_init ();
rbt_inorder_callback (&fntype_rbt, fntype_rbt.rbt_root, write_fntype);
fprintf (init_file, "\n");
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins10)] rs6000: Write static initializations for overload tables
@ 2021-04-26 20:50 William Schmidt
0 siblings, 0 replies; 6+ messages in thread
From: William Schmidt @ 2021-04-26 20:50 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:3d275becf95fb0ad9cedad8ac8ea11aa7d89c27a
commit 3d275becf95fb0ad9cedad8ac8ea11aa7d89c27a
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Wed Mar 3 17:29:36 2021 -0600
rs6000: Write static initializations for overload tables
2021-03-03 Bill Schmidt <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init):
New function.
(write_init_file): Call write_ovld_static_init.
Diff:
---
gcc/config/rs6000/rs6000-gen-builtins.c | 53 +++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-gen-builtins.c b/gcc/config/rs6000/rs6000-gen-builtins.c
index aeedb77faf5..39080e838f3 100644
--- a/gcc/config/rs6000/rs6000-gen-builtins.c
+++ b/gcc/config/rs6000/rs6000-gen-builtins.c
@@ -2543,6 +2543,58 @@ write_bif_static_init ()
fprintf (init_file, " };\n\n");
}
+/* Write the decls and initializers for rs6000_overload_info[] and
+ rs6000_instance_info[]. */
+static void
+write_ovld_static_init ()
+{
+ fprintf (init_file,
+ "ovldrecord rs6000_overload_info[RS6000_OVLD_MAX "
+ "- RS6000_OVLD_NONE] =\n");
+ fprintf (init_file, " {\n");
+ fprintf (init_file, " { /* RS6000_OVLD_NONE: */\n");
+ fprintf (init_file, " \"\", NULL\n");
+ fprintf (init_file, " },\n");
+ for (int i = 0; i <= curr_ovld_stanza; i++)
+ {
+ fprintf (init_file, " { /* RS6000_OVLD_%s: */\n",
+ ovld_stanzas[i].stanza_id);
+ fprintf (init_file, " /* ovld_name */\t\"%s\",\n",
+ ovld_stanzas[i].intern_name);
+ /* First-instance must currently be instantiated at run time. */
+ fprintf (init_file, " /* first_instance */\tNULL\n");
+ fprintf (init_file, " },\n");
+ }
+ fprintf (init_file, " };\n\n");
+
+ fprintf (init_file, "ovlddata rs6000_instance_info[RS6000_INST_MAX] =\n");
+ fprintf (init_file, " {\n");
+ fprintf (init_file, " { /* RS6000_INST_NONE: */\n");
+ fprintf (init_file, " \"\", RS6000_BIF_NONE, NULL_TREE, NULL\n");
+ fprintf (init_file, " },\n");
+ for (int i = 0; i <= curr_ovld; i++)
+ {
+ fprintf (init_file, " { /* RS6000_INST_%s: */\n",
+ ovlds[i].ovld_id_name);
+ fprintf (init_file, " /* bifname */\t\"%s\",\n",
+ ovlds[i].proto.bifname);
+ fprintf (init_file, " /* bifid */\tRS6000_BIF_%s,\n",
+ ovlds[i].bif_id_name);
+ /* Type must be instantiated at run time. */
+ fprintf (init_file, " /* fntype */\t0,\n");
+ fprintf (init_file, " /* next */\t");
+ if (i < curr_ovld
+ && !strcmp (ovlds[i+1].proto.bifname, ovlds[i].proto.bifname))
+ fprintf (init_file,
+ "&rs6000_instance_info[RS6000_INST_%s]\n",
+ ovlds[i+1].ovld_id_name);
+ else
+ fprintf (init_file, "NULL\n");
+ fprintf (init_file, " },\n");
+ }
+ fprintf (init_file, " };\n\n");
+}
+
/* Write code to initialize the built-in function table. */
static void
write_init_bif_table ()
@@ -2711,6 +2763,7 @@ write_init_file ()
fprintf (init_file, "tree rs6000_builtin_decls_x[RS6000_OVLD_MAX];\n\n");
write_bif_static_init ();
+ write_ovld_static_init ();
rbt_inorder_callback (&fntype_rbt, fntype_rbt.rbt_root, write_fntype);
fprintf (init_file, "\n");
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins10)] rs6000: Write static initializations for overload tables
@ 2021-04-02 22:10 William Schmidt
0 siblings, 0 replies; 6+ messages in thread
From: William Schmidt @ 2021-04-02 22:10 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:96d8d8d6bcc506ef85112e808f1f00a86d78e3f3
commit 96d8d8d6bcc506ef85112e808f1f00a86d78e3f3
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Wed Mar 3 17:29:36 2021 -0600
rs6000: Write static initializations for overload tables
2021-03-03 Bill Schmidt <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init):
New function.
(write_init_file): Call write_ovld_static_init.
Diff:
---
gcc/config/rs6000/rs6000-gen-builtins.c | 53 +++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-gen-builtins.c b/gcc/config/rs6000/rs6000-gen-builtins.c
index aeedb77faf5..39080e838f3 100644
--- a/gcc/config/rs6000/rs6000-gen-builtins.c
+++ b/gcc/config/rs6000/rs6000-gen-builtins.c
@@ -2543,6 +2543,58 @@ write_bif_static_init ()
fprintf (init_file, " };\n\n");
}
+/* Write the decls and initializers for rs6000_overload_info[] and
+ rs6000_instance_info[]. */
+static void
+write_ovld_static_init ()
+{
+ fprintf (init_file,
+ "ovldrecord rs6000_overload_info[RS6000_OVLD_MAX "
+ "- RS6000_OVLD_NONE] =\n");
+ fprintf (init_file, " {\n");
+ fprintf (init_file, " { /* RS6000_OVLD_NONE: */\n");
+ fprintf (init_file, " \"\", NULL\n");
+ fprintf (init_file, " },\n");
+ for (int i = 0; i <= curr_ovld_stanza; i++)
+ {
+ fprintf (init_file, " { /* RS6000_OVLD_%s: */\n",
+ ovld_stanzas[i].stanza_id);
+ fprintf (init_file, " /* ovld_name */\t\"%s\",\n",
+ ovld_stanzas[i].intern_name);
+ /* First-instance must currently be instantiated at run time. */
+ fprintf (init_file, " /* first_instance */\tNULL\n");
+ fprintf (init_file, " },\n");
+ }
+ fprintf (init_file, " };\n\n");
+
+ fprintf (init_file, "ovlddata rs6000_instance_info[RS6000_INST_MAX] =\n");
+ fprintf (init_file, " {\n");
+ fprintf (init_file, " { /* RS6000_INST_NONE: */\n");
+ fprintf (init_file, " \"\", RS6000_BIF_NONE, NULL_TREE, NULL\n");
+ fprintf (init_file, " },\n");
+ for (int i = 0; i <= curr_ovld; i++)
+ {
+ fprintf (init_file, " { /* RS6000_INST_%s: */\n",
+ ovlds[i].ovld_id_name);
+ fprintf (init_file, " /* bifname */\t\"%s\",\n",
+ ovlds[i].proto.bifname);
+ fprintf (init_file, " /* bifid */\tRS6000_BIF_%s,\n",
+ ovlds[i].bif_id_name);
+ /* Type must be instantiated at run time. */
+ fprintf (init_file, " /* fntype */\t0,\n");
+ fprintf (init_file, " /* next */\t");
+ if (i < curr_ovld
+ && !strcmp (ovlds[i+1].proto.bifname, ovlds[i].proto.bifname))
+ fprintf (init_file,
+ "&rs6000_instance_info[RS6000_INST_%s]\n",
+ ovlds[i+1].ovld_id_name);
+ else
+ fprintf (init_file, "NULL\n");
+ fprintf (init_file, " },\n");
+ }
+ fprintf (init_file, " };\n\n");
+}
+
/* Write code to initialize the built-in function table. */
static void
write_init_bif_table ()
@@ -2711,6 +2763,7 @@ write_init_file ()
fprintf (init_file, "tree rs6000_builtin_decls_x[RS6000_OVLD_MAX];\n\n");
write_bif_static_init ();
+ write_ovld_static_init ();
rbt_inorder_callback (&fntype_rbt, fntype_rbt.rbt_root, write_fntype);
fprintf (init_file, "\n");
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins10)] rs6000: Write static initializations for overload tables
@ 2021-04-01 19:48 William Schmidt
0 siblings, 0 replies; 6+ messages in thread
From: William Schmidt @ 2021-04-01 19:48 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:b9d5b3d6887966ebadca624e95b9e22052ea55f7
commit b9d5b3d6887966ebadca624e95b9e22052ea55f7
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Wed Mar 3 17:29:36 2021 -0600
rs6000: Write static initializations for overload tables
2021-03-03 Bill Schmidt <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init):
New function.
(write_init_file): Call write_ovld_static_init.
Diff:
---
gcc/config/rs6000/rs6000-gen-builtins.c | 53 +++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-gen-builtins.c b/gcc/config/rs6000/rs6000-gen-builtins.c
index 58892d015b0..fd3d5728c33 100644
--- a/gcc/config/rs6000/rs6000-gen-builtins.c
+++ b/gcc/config/rs6000/rs6000-gen-builtins.c
@@ -2542,6 +2542,58 @@ write_bif_static_init ()
fprintf (init_file, " };\n\n");
}
+/* Write the decls and initializers for rs6000_overload_info[] and
+ rs6000_instance_info[]. */
+static void
+write_ovld_static_init ()
+{
+ fprintf (init_file,
+ "ovldrecord rs6000_overload_info[RS6000_OVLD_MAX "
+ "- RS6000_OVLD_NONE] =\n");
+ fprintf (init_file, " {\n");
+ fprintf (init_file, " { /* RS6000_OVLD_NONE: */\n");
+ fprintf (init_file, " \"\", NULL\n");
+ fprintf (init_file, " },\n");
+ for (int i = 0; i <= curr_ovld_stanza; i++)
+ {
+ fprintf (init_file, " { /* RS6000_OVLD_%s: */\n",
+ ovld_stanzas[i].stanza_id);
+ fprintf (init_file, " /* ovld_name */\t\"%s\",\n",
+ ovld_stanzas[i].intern_name);
+ /* First-instance must currently be instantiated at run time. */
+ fprintf (init_file, " /* first_instance */\tNULL\n");
+ fprintf (init_file, " },\n");
+ }
+ fprintf (init_file, " };\n\n");
+
+ fprintf (init_file, "ovlddata rs6000_instance_info[RS6000_INST_MAX] =\n");
+ fprintf (init_file, " {\n");
+ fprintf (init_file, " { /* RS6000_INST_NONE: */\n");
+ fprintf (init_file, " \"\", RS6000_BIF_NONE, NULL_TREE, NULL\n");
+ fprintf (init_file, " },\n");
+ for (int i = 0; i <= curr_ovld; i++)
+ {
+ fprintf (init_file, " { /* RS6000_INST_%s: */\n",
+ ovlds[i].ovld_id_name);
+ fprintf (init_file, " /* bifname */\t\"%s\",\n",
+ ovlds[i].proto.bifname);
+ fprintf (init_file, " /* bifid */\tRS6000_BIF_%s,\n",
+ ovlds[i].bif_id_name);
+ /* Type must be instantiated at run time. */
+ fprintf (init_file, " /* fntype */\t0,\n");
+ fprintf (init_file, " /* next */\t");
+ if (i < curr_ovld
+ && !strcmp (ovlds[i+1].proto.bifname, ovlds[i].proto.bifname))
+ fprintf (init_file,
+ "&rs6000_instance_info[RS6000_INST_%s]\n",
+ ovlds[i+1].ovld_id_name);
+ else
+ fprintf (init_file, "NULL\n");
+ fprintf (init_file, " },\n");
+ }
+ fprintf (init_file, " };\n\n");
+}
+
/* Write code to initialize the built-in function table. */
static void
write_init_bif_table ()
@@ -2710,6 +2762,7 @@ write_init_file ()
fprintf (init_file, "tree rs6000_builtin_decls_x[RS6000_OVLD_MAX];\n\n");
write_bif_static_init ();
+ write_ovld_static_init ();
rbt_inorder_callback (&fntype_rbt, fntype_rbt.rbt_root, write_fntype);
fprintf (init_file, "\n");
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins10)] rs6000: Write static initializations for overload tables
@ 2021-03-25 15:46 William Schmidt
0 siblings, 0 replies; 6+ messages in thread
From: William Schmidt @ 2021-03-25 15:46 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:b333d4506cbab20001b9baa02574b8945db9ac7f
commit b333d4506cbab20001b9baa02574b8945db9ac7f
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Wed Mar 3 17:29:36 2021 -0600
rs6000: Write static initializations for overload tables
2021-03-03 Bill Schmidt <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init):
New function.
(write_init_file): Call write_ovld_static_init.
Diff:
---
gcc/config/rs6000/rs6000-gen-builtins.c | 53 +++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-gen-builtins.c b/gcc/config/rs6000/rs6000-gen-builtins.c
index 77ce7a22826..3d3a2770c57 100644
--- a/gcc/config/rs6000/rs6000-gen-builtins.c
+++ b/gcc/config/rs6000/rs6000-gen-builtins.c
@@ -2542,6 +2542,58 @@ write_bif_static_init ()
fprintf (init_file, " };\n\n");
}
+/* Write the decls and initializers for rs6000_overload_info[] and
+ rs6000_instance_info[]. */
+static void
+write_ovld_static_init ()
+{
+ fprintf (init_file,
+ "ovldrecord rs6000_overload_info[RS6000_OVLD_MAX "
+ "- RS6000_OVLD_NONE] =\n");
+ fprintf (init_file, " {\n");
+ fprintf (init_file, " { /* RS6000_OVLD_NONE: */\n");
+ fprintf (init_file, " \"\", NULL\n");
+ fprintf (init_file, " },\n");
+ for (int i = 0; i <= curr_ovld_stanza; i++)
+ {
+ fprintf (init_file, " { /* RS6000_OVLD_%s: */\n",
+ ovld_stanzas[i].stanza_id);
+ fprintf (init_file, " /* ovld_name */\t\"%s\",\n",
+ ovld_stanzas[i].intern_name);
+ /* First-instance must currently be instantiated at run time. */
+ fprintf (init_file, " /* first_instance */\tNULL\n");
+ fprintf (init_file, " },\n");
+ }
+ fprintf (init_file, " };\n\n");
+
+ fprintf (init_file, "ovlddata rs6000_instance_info[RS6000_INST_MAX] =\n");
+ fprintf (init_file, " {\n");
+ fprintf (init_file, " { /* RS6000_INST_NONE: */\n");
+ fprintf (init_file, " \"\", RS6000_BIF_NONE, NULL_TREE, NULL\n");
+ fprintf (init_file, " },\n");
+ for (int i = 0; i <= curr_ovld; i++)
+ {
+ fprintf (init_file, " { /* RS6000_INST_%s: */\n",
+ ovlds[i].ovld_id_name);
+ fprintf (init_file, " /* bifname */\t\"%s\",\n",
+ ovlds[i].proto.bifname);
+ fprintf (init_file, " /* bifid */\tRS6000_BIF_%s,\n",
+ ovlds[i].bif_id_name);
+ /* Type must be instantiated at run time. */
+ fprintf (init_file, " /* fntype */\t0,\n");
+ fprintf (init_file, " /* next */\t");
+ if (i < curr_ovld
+ && !strcmp (ovlds[i+1].proto.bifname, ovlds[i].proto.bifname))
+ fprintf (init_file,
+ "&rs6000_instance_info[RS6000_INST_%s]\n",
+ ovlds[i+1].ovld_id_name);
+ else
+ fprintf (init_file, "NULL\n");
+ fprintf (init_file, " },\n");
+ }
+ fprintf (init_file, " };\n\n");
+}
+
/* Write code to initialize the built-in function table. */
static void
write_init_bif_table ()
@@ -2693,6 +2745,7 @@ write_init_file ()
fprintf (init_file, "tree rs6000_builtin_decls_x[RS6000_OVLD_MAX];\n\n");
write_bif_static_init ();
+ write_ovld_static_init ();
rbt_inorder_callback (&fntype_rbt, fntype_rbt.rbt_root, write_fntype);
fprintf (init_file, "\n");
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-06-25 16:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-25 16:16 [gcc(refs/users/wschmidt/heads/builtins10)] rs6000: Write static initializations for overload tables William Schmidt
-- strict thread matches above, loose matches on Subject: below --
2021-06-15 17:17 William Schmidt
2021-04-26 20:50 William Schmidt
2021-04-02 22:10 William Schmidt
2021-04-01 19:48 William Schmidt
2021-03-25 15:46 William Schmidt
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).