]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2014-11-01 Andrew MacLeod <amacleod@redhat,com>
authorAndrew MacLeod <amacleod@redhat.com>
Sat, 1 Nov 2014 13:34:15 +0000 (13:34 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Sat, 1 Nov 2014 13:34:15 +0000 (13:34 +0000)
* optabs.h: Flatten insn-codes.h to source files.  Move some prototypes
and structs to genopinit.c.  Adjust protyoptypes to match optabs.c.
* genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
* optabs.c: (gen_move_insn): Move to expr.c.
* expr.h: Move protypes and enums to optabs.h.
* expr.c: (gen_move_insn): Relocate from optabs.c.
* genemit.c (main): Include insn-codes.h.
* gengtype.c (open_base_files): Include insn-codes.h.
* asan.c: Include insn-codes.h.
* bb-reorder.c: Ditto.
* builtins.c: Ditto.
* calls.c: Ditto.
* cfgexpand.c: Ditto.
* cilk-common.c: Ditto.
* combine.c: Ditto.
* dojump.c: Ditto.
* dse.c: Ditto.
* except.c: Ditto.
* explow.c: Ditto.
* expmed.c: Ditto.
* function.c: Ditto.
* ifcvt.c: Ditto.
* internal-fn.c: Ditto.
* loop-unroll.c: Ditto.
* lra.c: Ditto.
* modulo-sched.c: Ditto.
* omp-low.c: Ditto.
* postreload.c: Ditto.
* ree.c: Ditto.
* reload.c: Ditto.
* reload1.c: Ditto.
* shrink-wrap.c: Ditto.
* simplify-rtx.c: Ditto.
* stmt.c: Ditto.
* target-globals.c: Ditto.
* targhooks.c: Ditto.
* toplev.c: Ditto.
* tree-if-conv.c: Ditto.
* tree-ssa-forwprop.c: Ditto.
* tree-ssa-loop-prefetch.c: Ditto.
* tree-ssa-math-opts.c: Ditto.
* tree-ssa-phiopt.c: Ditto.
* tree-ssa-reassoc.c: Ditto.
* tree-switch-conversion.c: Ditto.
* tree-vect-data-refs.c: Ditto.
* tree-vect-generic.c: Ditto.
* tree-vect-loop.c: Ditto.
* tree-vect-patterns.c: Ditto.
* tree-vect-slp.c: Ditto.
* tree-vect-stmts.c: Ditto.
* tree-vrp.c: Ditto.
* value-prof.c: Ditto.
* config/aarch64/aarch64-builtins.c: Ditto.
* config/alpha/alpha.c: Ditto.
* config/arm/arm.c: Ditto.
* config/cris/cris.c: Ditto.
* config/epiphany/epiphany.c: Ditto.
* config/frv/frv.c: Ditto.
* config/h8300/h8300.c: Ditto.
* config/ia64/ia64.c: Ditto.
* config/iq2000/iq2000.c: Ditto.
* config/m32c/m32c.c: Ditto.
* config/mep/mep.c: Ditto.
* config/microblaze/microblaze.c: Ditto.
* config/mips/mips.c: Ditto.
* config/mn10300/mn10300.c: Ditto.
* config/moxie/moxie.c: Ditto.
* config/msp430/msp430.c: Ditto.
* config/nios2/nios2.c: Ditto.
* config/pa/pa.c: Ditto.
* config/rl78/rl78.c: Ditto.
* config/rs6000/rs6000.c: Ditto.
* config/rx/rx.c: Ditto.
* config/s390/s390.c: Ditto.
* config/sh/sh.c: Ditto.
* config/sh/sh_treg_combine.cc: Ditto.
* config/spu/spu.c: Ditto.
* config/stormy16/stormy16.c: Ditto.
* config/tilegx/mul-tables.c: Ditto.
* config/tilegx/tilegx.c: Ditto.
* config/tilepro/mul-tables.c: Ditto.
* config/tilepro/tilepro.c: Ditto.
* config/vax/vax.c: Ditto.

From-SVN: r217005

83 files changed:
gcc/ChangeLog
gcc/asan.c
gcc/bb-reorder.c
gcc/builtins.c
gcc/calls.c
gcc/cfgexpand.c
gcc/cilk-common.c
gcc/combine.c
gcc/config/aarch64/aarch64-builtins.c
gcc/config/alpha/alpha.c
gcc/config/arm/arm.c
gcc/config/cris/cris.c
gcc/config/epiphany/epiphany.c
gcc/config/frv/frv.c
gcc/config/h8300/h8300.c
gcc/config/ia64/ia64.c
gcc/config/iq2000/iq2000.c
gcc/config/m32c/m32c.c
gcc/config/mep/mep.c
gcc/config/microblaze/microblaze.c
gcc/config/mips/mips.c
gcc/config/mn10300/mn10300.c
gcc/config/moxie/moxie.c
gcc/config/msp430/msp430.c
gcc/config/nios2/nios2.c
gcc/config/pa/pa.c
gcc/config/rl78/rl78.c
gcc/config/rs6000/rs6000.c
gcc/config/rx/rx.c
gcc/config/s390/s390.c
gcc/config/sh/sh.c
gcc/config/sh/sh_treg_combine.cc
gcc/config/spu/spu.c
gcc/config/stormy16/stormy16.c
gcc/config/tilegx/mul-tables.c
gcc/config/tilegx/tilegx.c
gcc/config/tilepro/mul-tables.c
gcc/config/tilepro/tilepro.c
gcc/config/vax/vax.c
gcc/dojump.c
gcc/dse.c
gcc/except.c
gcc/explow.c
gcc/expmed.c
gcc/expr.c
gcc/expr.h
gcc/function.c
gcc/genemit.c
gcc/gengtype.c
gcc/genopinit.c
gcc/ifcvt.c
gcc/internal-fn.c
gcc/loop-unroll.c
gcc/lra.c
gcc/modulo-sched.c
gcc/omp-low.c
gcc/optabs.c
gcc/optabs.h
gcc/postreload.c
gcc/ree.c
gcc/reload.c
gcc/reload1.c
gcc/shrink-wrap.c
gcc/simplify-rtx.c
gcc/stmt.c
gcc/target-globals.c
gcc/targhooks.c
gcc/toplev.c
gcc/tree-if-conv.c
gcc/tree-ssa-forwprop.c
gcc/tree-ssa-loop-prefetch.c
gcc/tree-ssa-math-opts.c
gcc/tree-ssa-phiopt.c
gcc/tree-ssa-reassoc.c
gcc/tree-switch-conversion.c
gcc/tree-vect-data-refs.c
gcc/tree-vect-generic.c
gcc/tree-vect-loop.c
gcc/tree-vect-patterns.c
gcc/tree-vect-slp.c
gcc/tree-vect-stmts.c
gcc/tree-vrp.c
gcc/value-prof.c

index f1641af3ff8a166bb517519f2541220c615606db..68c15afb19a09209ef9c8cafee54a26ae9a29c9f 100644 (file)
@@ -1,3 +1,89 @@
+2014-11-01  Andrew MacLeod  <amacleod@redhat,com>
+
+       * optabs.h: Flatten insn-codes.h to source files.  Move some prototypes
+       and structs to genopinit.c.  Adjust protyoptypes to match optabs.c.
+       * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
+       * optabs.c: (gen_move_insn): Move to expr.c.
+       * expr.h: Move protypes and enums to optabs.h.
+       * expr.c: (gen_move_insn): Relocate from optabs.c.
+       * genemit.c (main): Include insn-codes.h.
+       * gengtype.c (open_base_files): Include insn-codes.h.
+       * asan.c: Include insn-codes.h.
+       * bb-reorder.c: Ditto.
+       * builtins.c: Ditto.
+       * calls.c: Ditto.
+       * cfgexpand.c: Ditto.
+       * cilk-common.c: Ditto.
+       * combine.c: Ditto.
+       * dojump.c: Ditto.
+       * dse.c: Ditto.
+       * except.c: Ditto.
+       * explow.c: Ditto.
+       * expmed.c: Ditto.
+       * function.c: Ditto.
+       * ifcvt.c: Ditto.
+       * internal-fn.c: Ditto.
+       * loop-unroll.c: Ditto.
+       * lra.c: Ditto.
+       * modulo-sched.c: Ditto.
+       * omp-low.c: Ditto.
+       * postreload.c: Ditto.
+       * ree.c: Ditto.
+       * reload.c: Ditto.
+       * reload1.c: Ditto.
+       * shrink-wrap.c: Ditto.
+       * simplify-rtx.c: Ditto.
+       * stmt.c: Ditto.
+       * target-globals.c: Ditto.
+       * targhooks.c: Ditto.
+       * toplev.c: Ditto.
+       * tree-if-conv.c: Ditto.
+       * tree-ssa-forwprop.c: Ditto.
+       * tree-ssa-loop-prefetch.c: Ditto.
+       * tree-ssa-math-opts.c: Ditto.
+       * tree-ssa-phiopt.c: Ditto.
+       * tree-ssa-reassoc.c: Ditto.
+       * tree-switch-conversion.c: Ditto.
+       * tree-vect-data-refs.c: Ditto.
+       * tree-vect-generic.c: Ditto.
+       * tree-vect-loop.c: Ditto.
+       * tree-vect-patterns.c: Ditto.
+       * tree-vect-slp.c: Ditto.
+       * tree-vect-stmts.c: Ditto.
+       * tree-vrp.c: Ditto.
+       * value-prof.c: Ditto.
+       * config/aarch64/aarch64-builtins.c: Ditto.
+       * config/alpha/alpha.c: Ditto.
+       * config/arm/arm.c: Ditto.
+       * config/cris/cris.c: Ditto.
+       * config/epiphany/epiphany.c: Ditto.
+       * config/frv/frv.c: Ditto.
+       * config/h8300/h8300.c: Ditto.
+       * config/ia64/ia64.c: Ditto.
+       * config/iq2000/iq2000.c: Ditto.
+       * config/m32c/m32c.c: Ditto.
+       * config/mep/mep.c: Ditto.
+       * config/microblaze/microblaze.c: Ditto.
+       * config/mips/mips.c: Ditto.
+       * config/mn10300/mn10300.c: Ditto.
+       * config/moxie/moxie.c: Ditto.
+       * config/msp430/msp430.c: Ditto.
+       * config/nios2/nios2.c: Ditto.
+       * config/pa/pa.c: Ditto.
+       * config/rl78/rl78.c: Ditto.
+       * config/rs6000/rs6000.c: Ditto.
+       * config/rx/rx.c: Ditto.
+       * config/s390/s390.c: Ditto.
+       * config/sh/sh.c: Ditto.
+       * config/sh/sh_treg_combine.cc: Ditto.
+       * config/spu/spu.c: Ditto.
+       * config/stormy16/stormy16.c: Ditto.
+       * config/tilegx/mul-tables.c: Ditto.
+       * config/tilegx/tilegx.c: Ditto.
+       * config/tilepro/mul-tables.c: Ditto.
+       * config/tilepro/tilepro.c: Ditto.
+       * config/vax/vax.c: Ditto.
+
 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
 
        * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
index b4b08228933680b37c277653de3c4bbb7cb29b60..8f146d2ce1dc128ef3a211b950a8270b02ad0fbd 100644 (file)
@@ -60,6 +60,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "gimple-pretty-print.h"
 #include "target.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "output.h"
 #include "tm_p.h"
index b6985d401e255bfd70b77309116bca0bd89db5c2..84191e4a6f577e8a543e6067b4f149ead03346f5 100644 (file)
@@ -99,6 +99,7 @@
 #include "tm_p.h"
 #include "obstack.h"
 #include "expr.h"
+#include "optabs.h"
 #include "params.h"
 #include "diagnostic-core.h"
 #include "toplev.h" /* user_defined_section_attribute */
index ad3a84e1b762e67b6425fc0d566d7d5f559546fe..161fe8c7b3b86407acf93ea35f3df06d76df5fdd 100644 (file)
@@ -49,6 +49,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "except.h"
 #include "insn-config.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "libfuncs.h"
 #include "recog.h"
index 861c6158c90e81ce2e262ed461fce4ea2a0dfeb3..c62dba0cf7bf81b7915d23dcade9ce18c6087883 100644 (file)
@@ -43,6 +43,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "gimple.h"
 #include "flags.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "libfuncs.h"
 #include "regs.h"
index 05827690ab4b59668e4d66caef84254c12e2d98e..d338a7c37572b6810fdd97e5b608e95fd3e99c45 100644 (file)
@@ -44,6 +44,8 @@ along with GCC; see the file COPYING3.  If not see
 #include "cfgbuild.h"
 #include "cfgcleanup.h"
 #include "basic-block.h"
+#include "insn-codes.h"
+#include "optabs.h"
 #include "expr.h"
 #include "langhooks.h"
 #include "bitmap.h"
index 35c47e19cd754c61327c8cdef658c8c2cf88a709..48c8aa63388db04f90cbc631fe93cbdb396dce6f 100644 (file)
@@ -28,6 +28,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "stor-layout.h"
 #include "langhooks.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "recog.h"
 #include "tree-iterator.h"
index 6d711ebb3f507bf97e10fb32188847b9759edef0..40f2875d5182ccc41c5d07751a4e893dbc462bae 100644 (file)
@@ -105,8 +105,8 @@ along with GCC; see the file COPYING3.  If not see
 #include "recog.h"
 #include "diagnostic-core.h"
 #include "target.h"
-#include "optabs.h"
 #include "insn-codes.h"
+#include "optabs.h"
 #include "rtlhooks-def.h"
 #include "params.h"
 #include "tree-pass.h"
index df65c85fff9e17541808663875629013251215c7..527445c5c7788bc37f41d9c3428f59a18410a93a 100644 (file)
@@ -32,6 +32,7 @@
 #include "recog.h"
 #include "langhooks.h"
 #include "diagnostic-core.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "hash-table.h"
 #include "vec.h"
index 0c71965a2debca7f1ca96053171bba4915749860..3fe8131a9928d853df056666ebfbee798bf9feed 100644 (file)
@@ -37,6 +37,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "flags.h"
 #include "recog.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "reload.h"
 #include "obstack.h"
index f4c4ebd4a2901c1025eb48b730033c65233489cc..4f047076f8380cc8224f5c4f27c7d04fe0bf4dce 100644 (file)
@@ -47,6 +47,7 @@
 #include "input.h"
 #include "function.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "diagnostic-core.h"
 #include "recog.h"
index bb2578cf376816e12c88b49c06e2a09dfe295600..1983ae0299c82a8ec8f61b92f3913a6c81f06517 100644 (file)
@@ -52,6 +52,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "target.h"
 #include "target-def.h"
 #include "ggc.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "dominance.h"
 #include "cfg.h"
index ec5779764fc242faacb8452c53db1a3acaa675a6..3890149f1e39b5413281b6310e83b12a55238d80 100644 (file)
@@ -42,6 +42,8 @@ along with GCC; see the file COPYING3.  If not see
 #include "machmode.h"
 #include "input.h"
 #include "function.h"
+#include "insn-codes.h"
+#include "optabs.h"
 #include "expr.h"
 #include "diagnostic-core.h"
 #include "recog.h"
index 41cc4974cadd58cdfec33ed68ded580e93f45bb0..16e0bb5e3775d6ffd7d92a3bf90ef1eb675c8033 100644 (file)
@@ -45,6 +45,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "machmode.h"
 #include "input.h"
 #include "function.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "diagnostic-core.h"
 #include "predict.h"
index 7f5ef5b2c288b27539ca0de51d38aeb2c2ad3035..c9494260360403b8354736a82af48ccef2e9f314 100644 (file)
@@ -44,6 +44,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "machmode.h"
 #include "input.h"
 #include "function.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "diagnostic-core.h"
 #include "c-family/c-pragma.h" /* ??? */
index beb9e606c056e40ffa94ce637a6688e2eab3e63c..f896e101c6bb28eadb3218d104995a3714740833 100644 (file)
@@ -38,6 +38,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "flags.h"
 #include "recog.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "except.h"
 #include "hashtab.h"
index 9f45b1d36837bd8af2295e175e360939f025e947..161eaf639c0d6197a2f8ca983ceae63c0fb845a4 100644 (file)
@@ -40,6 +40,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "input.h"
 #include "function.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "libfuncs.h"
 #include "recog.h"
index 132873f6550176d2f2b77f729395f38e89daa3b7..6197b33e20df8a1cf03d101955dc9ccccc696b5e 100644 (file)
@@ -40,6 +40,7 @@
 #include "varasm.h"
 #include "calls.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "except.h"
 #include "hashtab.h"
index 46a451c58a85949c54a8ee32353355fcb880e620..2a6b91531a0173620d9277ae0d2bbab8d16376c8 100644 (file)
@@ -47,6 +47,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "machmode.h"
 #include "input.h"
 #include "function.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "reload.h"
 #include "tm_p.h"
index 48ebf861c5aa9ac1e7f32988e00fff1ddccd2db1..7a44396def6f978ae69b211416e0c1e0656099bc 100644 (file)
@@ -61,6 +61,7 @@
 #include "predict.h"
 #include "basic-block.h"
 #include "df.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "diagnostic-core.h"
 #include "hash-map.h"
index ac7746c372ee26b20bfa591ba130308a2c2e71ec..0498e4f2cd4073d3cee49d4873d864c0795649ac 100644 (file)
@@ -45,6 +45,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "input.h"
 #include "function.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "libfuncs.h"
 #include "flags.h"
index 3f9a7becda6c4a1df43be4866964df01903772fb..20330f04305b47e8a3ba3cb306f486be23cf8389 100644 (file)
@@ -37,6 +37,7 @@
 #include "recog.h"
 #include "reload.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "hashtab.h"
 #include "hash-set.h"
index ef1ed8fb2cc3e4bf5a874bbad00f75eccebcf440..d4688d9c2f8feb0435818c9ec1a10ef026dc7b3c 100644 (file)
@@ -40,6 +40,7 @@
 #include "varasm.h"
 #include "calls.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "except.h"
 #include "hashtab.h"
index 703bf9b7ca558cea58b815229daf86cc1438af7b..fe97f2700901e12bf4f894f3a5988b84487bf1f1 100644 (file)
@@ -40,6 +40,7 @@
 #include "input.h"
 #include "function.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "libfuncs.h"
 #include "recog.h"
index 03451fe83c30c637f73767407696229030debbc7..982112e0631275be11852f63b21af5f0d3bcc095 100644 (file)
@@ -35,6 +35,7 @@
 #include "flags.h"
 #include "recog.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "hashtab.h"
 #include "hash-set.h"
index 6e34d778981783635f23f2fcfddd5aa83ff93eaa..35498357d2ded06efba73d845d41baa64c508953 100644 (file)
@@ -38,6 +38,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "dbxout.h"
 #include "except.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "reload.h"
 #include "hashtab.h"
index 9e7c6280d7c1565fb8540c4c6fc480469f791705..7b85cf83d9d077083f5ec3144bec581e1f66e438 100644 (file)
@@ -41,6 +41,7 @@
 #include "input.h"
 #include "function.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "libfuncs.h"
 #include "recog.h"
index 4adb168dda93b29d02170c218576950887711d6c..05325c24d6d0d83daeebc984168ecb6e5661cbe0 100644 (file)
@@ -38,6 +38,7 @@
 #include "print-tree.h"
 #include "varasm.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "except.h"
 #include "hashtab.h"
index 0aeb611d97b2af0e197d4551e12e1d786fc4ac10..f3e1129c253f4564e1917a25fc5ae7627eb127c0 100644 (file)
@@ -45,6 +45,7 @@
 #include "input.h"
 #include "function.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "libfuncs.h"
 #include "recog.h"
index 51ae90c97cc1365dc6b46674c2bb34221ecaf08b..31527624be40184e44cc7293d56334721b85eb7c 100644 (file)
@@ -64,6 +64,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "target-def.h"
 #include "debug.h"
 #include "langhooks.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "hash-table.h"
 #include "tree-ssa-alias.h"
index 3bbbd230406dfa6f14fc54f071808aa566fd9a35..3a4f5e9aeeae206d12fb1736764fefd3243b7cc5 100644 (file)
@@ -36,6 +36,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "varasm.h"
 #include "flags.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "reload.h"
 #include "hashtab.h"
index 72ec577ec303e4652b1371342c1785decda422bd..4615a2843ffeaaec51c32fbd1e065db5b6f9e4a2 100644 (file)
@@ -46,6 +46,8 @@ along with GCC; see the file COPYING3.  If not see
 #include "recog.h"
 #include "tree-pass.h"
 #include "target.h"
+#include "tree-core.h"
+#include "optabs.h"
 #include "expr.h"
 
 #include <algorithm>
index eef42f0970c8ce6adbc3340347366112574fa654..2009085cdc585637dffb8926336d252e74ad741b 100644 (file)
@@ -33,6 +33,7 @@
 #include "calls.h"
 #include "varasm.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "except.h"
 #include "hashtab.h"
index 52d02392f2847c6334d2090e5288ad299ed9289b..7be72b92577879ba9bd2ecc22b386bb48d8cedfe 100644 (file)
@@ -40,6 +40,7 @@
 #include "varasm.h"
 #include "calls.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "except.h"
 #include "hashtab.h"
index 4bcff30aea810441d7aef6f91c62fc129d4a60a9..a902299d817033f4bb75598a14f3e74f5726961f 100644 (file)
@@ -22,6 +22,7 @@
 #include "system.h"
 #include "coretypes.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "tilegx-multiply.h"
 
index e807ffffb050bbcdd5b0d548d363ef53bb793fb3..0090d9035281ef2f05db5f543c6d681a68795929 100644 (file)
@@ -30,6 +30,7 @@
 #include "recog.h"
 #include "expr.h"
 #include "langhooks.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "dominance.h"
 #include "cfg.h"
index 4411b6eff0a71ae64768101e0f6c675d2a3c3fc2..c8eda94e7c16c4279b355a8e33789d4d6af8e019 100644 (file)
@@ -22,6 +22,7 @@
 #include "system.h"
 #include "coretypes.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "tilepro-multiply.h"
 
index 9fdfb42dab0020f2c46f4d188c33d019c4665d79..4eef51a5c860a3b5f389dd6169c636fcc1f74398 100644 (file)
@@ -30,6 +30,7 @@
 #include "recog.h"
 #include "expr.h"
 #include "langhooks.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "dominance.h"
 #include "cfg.h"
index bf12f89a86dfcc85fea9a43ceee29d08843cc531..949a2d232f9eb95e06d772b9c5c72ccc131b79e1 100644 (file)
@@ -49,6 +49,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "insn-attr.h"
 #include "recog.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "flags.h"
 #include "debug.h"
index 4040a6d4c3aba462cb5e1c07fc1fc5f31e3fbc88..40b1bf412ea5117d5600b6e977febc0802b2fe56 100644 (file)
@@ -36,6 +36,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "insn-attr.h"
 /* Include expr.h after insn-config.h so we get HAVE_conditional_move.  */
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "langhooks.h"
 #include "ggc.h"
index 9a8f3cf0328c2606427e88d5cad21f6174c8e2cc..2555bd1d5a9ec9e6d67a4660fd905b991238f73b 100644 (file)
--- a/gcc/dse.c
+++ b/gcc/dse.c
@@ -48,6 +48,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "insn-config.h"
 #include "expr.h"
 #include "recog.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "dbgcnt.h"
 #include "target.h"
index 39bede08020e074f25b99916ca47bc49851d6491..6288eb00fc24b6c86332ba65bbf5f22f98e482ca 100644 (file)
@@ -125,6 +125,8 @@ along with GCC; see the file COPYING3.  If not see
 #include "hard-reg-set.h"
 #include "input.h"
 #include "function.h"
+#include "insn-codes.h"
+#include "optabs.h"
 #include "expr.h"
 #include "libfuncs.h"
 #include "insn-config.h"
index 19024b571abce3b5ffed4613a80431a810d6e6fd..44a1223b131dfd5758812c29ff66ba4ffc01545a 100644 (file)
@@ -37,6 +37,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "input.h"
 #include "function.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "libfuncs.h"
 #include "insn-config.h"
index 7dabe75c8f4fecf0eb2d28baa054161af7691f07..af14b990794fb8c61aa4cbdc6d1742cc8cfe6e16 100644 (file)
@@ -31,6 +31,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "flags.h"
 #include "insn-config.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "recog.h"
 #include "langhooks.h"
index af42b6168812d7d6af3efbb2167c81a99d24b5cd..f4047c418cd653e34e8180294c5e52b3ac496c18 100644 (file)
@@ -41,6 +41,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "insn-attr.h"
 /* Include expr.h after insn-config.h so we get HAVE_conditional_move.  */
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "libfuncs.h"
 #include "recog.h"
@@ -3628,6 +3629,21 @@ emit_move_insn (rtx x, rtx y)
   return last_insn;
 }
 
+/* Generate the body of an instruction to copy Y into X.
+   It may be a list of insns, if one insn isn't enough.  */
+
+rtx
+gen_move_insn (rtx x, rtx y)
+{
+  rtx_insn *seq;
+
+  start_sequence ();
+  emit_move_insn_1 (x, y);
+  seq = get_insns ();
+  end_sequence ();
+  return seq;
+}
+
 /* If Y is representable exactly in a narrower mode, and the target can
    perform the extension directly from constant or memory, then emit the
    move as an extension.  */
index ba93693cda4a37ae6ae6208de0f459ebc9efb533..5793560dd712ae4a46378daa36e3edb8b2149524 100644 (file)
@@ -37,6 +37,7 @@ along with GCC; see the file COPYING3.  If not see
    ssize_int, TREE_CODE, TYPE_SIZE, int_size_in_bytes,    */
 #include "tree-core.h"
 /* For GET_MODE_BITSIZE, word_mode */
+#include "insn-config.h"
 
 /* This is the 4th arg to `expand_expr'.
    EXPAND_STACK_PARM means we are possibly expanding a call param onto
@@ -71,93 +72,6 @@ typedef struct separate_ops
   tree type;
   tree op0, op1, op2;
 } *sepops;
-\f
-/* Functions from optabs.c, commonly used, and without need for the optabs
-   tables:  */
-
-/* Passed to expand_simple_binop and expand_binop to say which options
-   to try to use if the requested operation can't be open-coded on the
-   requisite mode.  Either OPTAB_LIB or OPTAB_LIB_WIDEN says try using
-   a library call.  Either OPTAB_WIDEN or OPTAB_LIB_WIDEN says try
-   using a wider mode.  OPTAB_MUST_WIDEN says try widening and don't
-   try anything else.  */
-
-enum optab_methods
-{
-  OPTAB_DIRECT,
-  OPTAB_LIB,
-  OPTAB_WIDEN,
-  OPTAB_LIB_WIDEN,
-  OPTAB_MUST_WIDEN
-};
-
-/* Generate code for a simple binary or unary operation.  "Simple" in
-   this case means "can be unambiguously described by a (mode, code)
-   pair and mapped to a single optab."  */
-extern rtx expand_simple_binop (machine_mode, enum rtx_code, rtx,
-                               rtx, rtx, int, enum optab_methods);
-extern rtx expand_simple_unop (machine_mode, enum rtx_code, rtx, rtx,
-                              int);
-
-/* Report whether the machine description contains an insn which can
-   perform the operation described by CODE and MODE.  */
-extern int have_insn_for (enum rtx_code, machine_mode);
-
-/* Emit code to make a call to a constant function or a library call.  */
-extern void emit_libcall_block (rtx, rtx, rtx, rtx);
-
-/* Create but don't emit one rtl instruction to perform certain operations.
-   Modes must match; operands must meet the operation's predicates.
-   Likewise for subtraction and for just copying.  */
-extern rtx gen_add2_insn (rtx, rtx);
-extern rtx gen_add3_insn (rtx, rtx, rtx);
-extern rtx gen_addptr3_insn (rtx, rtx, rtx);
-extern rtx gen_sub2_insn (rtx, rtx);
-extern rtx gen_sub3_insn (rtx, rtx, rtx);
-extern rtx gen_move_insn (rtx, rtx);
-extern int have_add2_insn (rtx, rtx);
-extern int have_addptr3_insn (rtx, rtx, rtx);
-extern int have_sub2_insn (rtx, rtx);
-
-/* Emit a pair of rtl insns to compare two rtx's and to jump
-   to a label if the comparison is true.  */
-extern void emit_cmp_and_jump_insns (rtx, rtx, enum rtx_code, rtx,
-                                    machine_mode, int, rtx, int prob=-1);
-
-/* Generate code to indirectly jump to a location given in the rtx LOC.  */
-extern void emit_indirect_jump (rtx);
-
-/* Generate a conditional trap instruction.  */
-extern rtx gen_cond_trap (enum rtx_code, rtx, rtx, rtx);
-
-#include "insn-config.h"
-
-#ifdef HAVE_conditional_move
-/* Emit a conditional move operation.  */
-rtx emit_conditional_move (rtx, enum rtx_code, rtx, rtx, machine_mode,
-                          rtx, rtx, machine_mode, int);
-
-/* Return nonzero if the conditional move is supported.  */
-int can_conditionally_move_p (machine_mode mode);
-
-#endif
-rtx emit_conditional_add (rtx, enum rtx_code, rtx, rtx, machine_mode,
-                         rtx, rtx, machine_mode, int);
-
-rtx expand_sync_operation (rtx, rtx, enum rtx_code);
-rtx expand_sync_fetch_operation (rtx, rtx, enum rtx_code, bool, rtx);
-rtx expand_sync_lock_test_and_set (rtx, rtx, rtx);
-
-rtx expand_atomic_exchange (rtx, rtx, rtx, enum memmodel);
-rtx expand_atomic_load (rtx, rtx, enum memmodel);
-rtx expand_atomic_store (rtx, rtx, enum memmodel, bool);
-rtx expand_atomic_fetch_op (rtx, rtx, rtx, enum rtx_code, enum memmodel, 
-                             bool);
-rtx expand_atomic_test_and_set (rtx, rtx, enum memmodel);
-rtx expand_atomic_clear (rtx, enum memmodel);
-void expand_atomic_thread_fence (enum memmodel);
-void expand_atomic_signal_fence (enum memmodel);
-
 \f
 /* Functions from expmed.c:  */
 
@@ -334,6 +248,7 @@ extern rtx store_by_pieces (rtx, unsigned HOST_WIDE_INT,
 
 /* Emit insns to set X from Y.  */
 extern rtx_insn *emit_move_insn (rtx, rtx);
+extern rtx gen_move_insn (rtx, rtx);
 
 /* Emit insns to set X from Y, with no frills.  */
 extern rtx_insn *emit_move_insn_1 (rtx, rtx);
@@ -671,18 +586,6 @@ extern int safe_from_p (const_rtx, tree, int);
 extern bool split_comparison (enum rtx_code, machine_mode,
                              enum rtx_code *, enum rtx_code *);
 
-/* Call this once to initialize the contents of the optabs
-   appropriately for the current target machine.  */
-extern void init_optabs (void);
-extern void init_all_optabs (struct target_optabs *);
-
-/* Call this to initialize an optab function entry.  */
-extern rtx init_one_libfunc (const char *);
-extern rtx set_user_assembler_libfunc (const char *, const char *);
-
-/* Build a decl for a libfunc named NAME. */
-extern tree build_libfunc_function (const char *);
-
 /* Get the personality libfunc for a function decl.  */
 rtx get_personality_function (tree);
 
index 1ef43c4dea7d4913eb7b9ba0bd7cf916f31cf992..6d0998228d1437524761f27b471fb2f7c46a3e2a 100644 (file)
@@ -50,6 +50,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "input.h"
 #include "function.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "libfuncs.h"
 #include "regs.h"
index 9dc2d0bcd14e2f5fa6b583965a1e80596bedc029..5f30f4223afa2efba770ab884cea2197196aa41c 100644 (file)
@@ -809,6 +809,7 @@ from the machine description file `md'.  */\n\n");
   printf ("#include \"input.h\"\n");
   printf ("#include \"function.h\"\n");
   printf ("#include \"expr.h\"\n");
+  printf ("#include \"insn-codes.h\"\n");
   printf ("#include \"optabs.h\"\n");
   printf ("#include \"dfp.h\"\n");
   printf ("#include \"flags.h\"\n");
index d55d53041f6238d8c7ea87f9a6c03f7635063cba..fac83ee84d285632ec19543756ac92aac246cc86 100644 (file)
@@ -1826,7 +1826,7 @@ open_base_files (void)
   {
     /* The order of files here matters very much.  */
     static const char *const ifiles[] = {
-      "config.h", "system.h", "coretypes.h", "tm.h",
+      "config.h", "system.h", "coretypes.h", "tm.h", "insn-codes.h",
       "hashtab.h", "splay-tree.h", "obstack.h", "bitmap.h", "input.h",
       "tree.h", "rtl.h", "wide-int.h", "hashtab.h", "hash-set.h", "vec.h",
       "machmode.h", "tm.h", "hard-reg-set.h", "input.h", "predict.h",
index b8a282779de1731d0e589834e380594d6aabc3a2..2d14d125211aa8b4b3a40ac24b1f3ef3ef65f485 100644 (file)
@@ -398,6 +398,68 @@ main (int argc, char **argv)
   fprintf (h_file, "#define NUM_OPTAB_PATTERNS  %u\n",
           (unsigned) patterns.length ());
 
+  fprintf (h_file, 
+          "typedef enum optab_tag optab;\n"
+          "typedef enum optab_tag convert_optab;\n"
+          "typedef enum optab_tag direct_optab;\n"
+          "\n"
+          "struct optab_libcall_d\n"
+          "{\n"
+          "  char libcall_suffix;\n"
+          "  const char *libcall_basename;\n"
+          "  void (*libcall_gen) (optab, const char *name,\n"
+          "                   char suffix, machine_mode);\n"
+          "};\n"
+          "\n"
+          "struct convert_optab_libcall_d\n"
+          "{\n"
+          "  const char *libcall_basename;\n"
+          "  void (*libcall_gen) (convert_optab, const char *name,\n"
+          "                   machine_mode, machine_mode);\n"
+          "};\n"
+          "\n"
+          "/* Given an enum insn_code, access the function to construct\n"
+          "   the body of that kind of insn.  */\n"
+          "#define GEN_FCN(CODE) (insn_data[CODE].genfun)\n"
+          "\n"
+          "/* Contains the optab used for each rtx code, and vice-versa.  */\n"
+          "extern const optab code_to_optab_[NUM_RTX_CODE];\n"
+          "extern const enum rtx_code optab_to_code_[NUM_OPTABS];\n"
+          "\n"
+          "static inline optab\n"
+          "code_to_optab (enum rtx_code code)\n"
+          "{\n"
+          "  return code_to_optab_[code];\n"
+          "}\n"
+          "\n"
+          "static inline enum rtx_code\n"
+          "optab_to_code (optab op)\n"
+          "{\n"
+          "  return optab_to_code_[op];\n"
+          "}\n"
+          "\n"
+          "extern const struct convert_optab_libcall_d convlib_def[NUM_CONVLIB_OPTABS];\n"
+          "extern const struct optab_libcall_d normlib_def[NUM_NORMLIB_OPTABS];\n"
+          "\n"
+          "/* Returns the active icode for the given (encoded) optab.  */\n"
+          "extern enum insn_code raw_optab_handler (unsigned);\n"
+          "extern bool swap_optab_enable (optab, machine_mode, bool);\n"
+          "\n"
+          "/* Target-dependent globals.  */\n"
+          "struct target_optabs {\n"
+          "  /* Patterns that are used by optabs that are enabled for this target.  */\n"
+          "  bool pat_enable[NUM_OPTAB_PATTERNS];\n"
+          "};\n"
+          "extern void init_all_optabs (struct target_optabs *);\n"
+          "\n"
+          "extern struct target_optabs default_target_optabs;\n"
+          "extern struct target_optabs *this_fn_optabs;\n"
+          "#if SWITCHABLE_TARGET\n"
+          "extern struct target_optabs *this_target_optabs;\n"
+          "#else\n"
+          "#define this_target_optabs (&default_target_optabs)\n"
+          "#endif\n");
+
   fprintf (s_file,
           "#include \"config.h\"\n"
           "#include \"system.h\"\n"
@@ -413,6 +475,7 @@ main (int argc, char **argv)
           "#include \"flags.h\"\n"
           "#include \"insn-config.h\"\n"
           "#include \"expr.h\"\n"
+          "#include \"insn-codes.h\"\n"
           "#include \"optabs.h\"\n"
           "\n"
           "struct optab_pat {\n"
index 8cf0a95c2aeb1914294aff5907daf514cc6d3b24..772b1841584350b65aa61566cada4e5002606ec1 100644 (file)
@@ -44,6 +44,7 @@
 #include "basic-block.h"
 #include "expr.h"
 #include "output.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "diagnostic-core.h"
 #include "tm_p.h"
index b32ce962c1cdfb1629ee4d7f49618874ae6e5638..04f8b6415fb9fb2149a3c5751c806fd04e63750e 100644 (file)
@@ -24,6 +24,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "internal-fn.h"
 #include "stor-layout.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "predict.h"
 #include "vec.h"
index ec33f7495abcbe294acc484cbc176b2f28c91841..c4c6b0d9768ff7d23a7dc53fafd38405b39950a1 100644 (file)
@@ -39,6 +39,8 @@ along with GCC; see the file COPYING3.  If not see
 #include "basic-block.h"
 #include "cfgloop.h"
 #include "params.h"
+#include "insn-codes.h"
+#include "optabs.h"
 #include "expr.h"
 #include "hash-table.h"
 #include "recog.h"
index c2c0fc3aad2c031e8f31bf4ccb5e0a13d43e64f9..ee390db0b06eacd21fb1c6eb9710d48faf9395ac 100644 (file)
--- a/gcc/lra.c
+++ b/gcc/lra.c
@@ -112,6 +112,8 @@ along with GCC; see the file COPYING3.      If not see
 #include "machmode.h"
 #include "input.h"
 #include "function.h"
+#include "tree-core.h"
+#include "optabs.h"
 #include "expr.h"
 #include "predict.h"
 #include "dominance.h"
index eba910254d0510158ea902238ec9414b537b8e41..8abb8ee75534f8259abec8aba9b8be4c1bee0657 100644 (file)
@@ -48,6 +48,9 @@ along with GCC; see the file COPYING3.  If not see
 #include "sched-int.h"
 #include "target.h"
 #include "cfgloop.h"
+#include "tree-core.h"
+#include "insn-codes.h"
+#include "optabs.h"
 #include "expr.h"
 #include "params.h"
 #include "gcov-io.h"
index 91f8e8f5b1dfcde8487f9e1f88535be41396fbbe..b59d069ac144c222911d8cfebbc0a680a8d0ae5a 100644 (file)
@@ -73,6 +73,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "tree-pass.h"
 #include "except.h"
 #include "splay-tree.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "cfgloop.h"
 #include "target.h"
index a9a546ee8a946be5883eb17299500d3839c87b70..7e64eacc6f703c4d0689f4100c1b7d1d9b54cd8d 100644 (file)
@@ -44,6 +44,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "function.h"
 #include "except.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "libfuncs.h"
 #include "recog.h"
@@ -4894,21 +4895,6 @@ have_sub2_insn (rtx x, rtx y)
 
   return 1;
 }
-
-/* Generate the body of an instruction to copy Y into X.
-   It may be a list of insns, if one insn isn't enough.  */
-
-rtx
-gen_move_insn (rtx x, rtx y)
-{
-  rtx_insn *seq;
-
-  start_sequence ();
-  emit_move_insn_1 (x, y);
-  seq = get_insns ();
-  end_sequence ();
-  return seq;
-}
 \f
 /* Return the insn code used to extend FROM_MODE to TO_MODE.
    UNSIGNEDP specifies zero-extension instead of sign-extension.  If
index 1ed795711dfb940da6d1424d8f5eeaf4aeb5c557..91e36d61b3bc10ed8a5ba4cf5b368e7e341a3d49 100644 (file)
@@ -20,244 +20,11 @@ along with GCC; see the file COPYING3.  If not see
 #ifndef GCC_OPTABS_H
 #define GCC_OPTABS_H
 
-#include "insn-codes.h"
 #include "insn-opinit.h"
 
-typedef enum optab_tag optab;
-typedef enum optab_tag convert_optab;
-typedef enum optab_tag direct_optab;
-
-struct optab_libcall_d
-{
-  char libcall_suffix;
-  const char *libcall_basename;
-  void (*libcall_gen) (optab, const char *name,
-                      char suffix, machine_mode);
-};
-
-struct convert_optab_libcall_d
-{
-  const char *libcall_basename;
-  void (*libcall_gen) (convert_optab, const char *name,
-                      machine_mode, machine_mode);
-};
-
-/* Given an enum insn_code, access the function to construct
-   the body of that kind of insn.  */
-#define GEN_FCN(CODE) (insn_data[CODE].genfun)
-
-/* Contains the optab used for each rtx code, and vice-versa.  */
-extern const optab code_to_optab_[NUM_RTX_CODE];
-extern const enum rtx_code optab_to_code_[NUM_OPTABS];
-
-static inline optab
-code_to_optab (enum rtx_code code)
-{
-  return code_to_optab_[code];
-}
-
-static inline enum rtx_code
-optab_to_code (optab op)
-{
-  return optab_to_code_[op];
-}
-
-extern const struct convert_optab_libcall_d convlib_def[NUM_CONVLIB_OPTABS];
-extern const struct optab_libcall_d normlib_def[NUM_NORMLIB_OPTABS];
-
-/* Returns the active icode for the given (encoded) optab.  */
-extern enum insn_code raw_optab_handler (unsigned);
-extern bool swap_optab_enable (optab, machine_mode, bool);
-
-/* Target-dependent globals.  */
-struct target_optabs {
-  /* Patterns that are used by optabs that are enabled for this target.  */
-  bool pat_enable[NUM_OPTAB_PATTERNS];
-};
-
-extern struct target_optabs default_target_optabs;
-extern struct target_optabs *this_fn_optabs;
-#if SWITCHABLE_TARGET
-extern struct target_optabs *this_target_optabs;
-#else
-#define this_target_optabs (&default_target_optabs)
-#endif
-\f
-/* Define functions given in optabs.c.  */
-
-extern rtx expand_widen_pattern_expr (sepops ops, rtx op0, rtx op1, rtx wide_op,
-                                      rtx target, int unsignedp);
-
-extern rtx expand_ternary_op (machine_mode mode, optab ternary_optab,
-                             rtx op0, rtx op1, rtx op2, rtx target,
-                             int unsignedp);
-
-/* Expand a binary operation given optab and rtx operands.  */
-extern rtx expand_binop (machine_mode, optab, rtx, rtx, rtx, int,
-                        enum optab_methods);
-
-extern rtx simplify_expand_binop (machine_mode mode, optab binoptab,
-                                 rtx op0, rtx op1, rtx target, int unsignedp,
-                                 enum optab_methods methods);
-
-extern bool force_expand_binop (machine_mode, optab, rtx, rtx, rtx, int,
-                               enum optab_methods);
-
-/* Expand a binary operation with both signed and unsigned forms.  */
-extern rtx sign_expand_binop (machine_mode, optab, optab, rtx, rtx,
-                             rtx, int, enum optab_methods);
-
-/* Generate code to perform an operation on one operand with two results.  */
-extern int expand_twoval_unop (optab, rtx, rtx, rtx, int);
-
-/* Generate code to perform an operation on two operands with two results.  */
-extern int expand_twoval_binop (optab, rtx, rtx, rtx, rtx, int);
-
-/* Generate code to perform an operation on two operands with two
-   results, using a library function.  */
-extern bool expand_twoval_binop_libfunc (optab, rtx, rtx, rtx, rtx,
-                                        enum rtx_code);
-
-/* Expand a unary arithmetic operation given optab rtx operand.  */
-extern rtx expand_unop (machine_mode, optab, rtx, rtx, int);
-
-/* Expand the absolute value operation.  */
-extern rtx expand_abs_nojump (machine_mode, rtx, rtx, int);
-extern rtx expand_abs (machine_mode, rtx, rtx, int, int);
-
-/* Expand the one's complement absolute value operation.  */
-extern rtx expand_one_cmpl_abs_nojump (machine_mode, rtx, rtx);
-
-/* Expand the copysign operation.  */
-extern rtx expand_copysign (rtx, rtx, rtx);
-
-/* Generate an instruction with a given INSN_CODE with an output and
-   an input.  */
-extern void emit_unop_insn (enum insn_code, rtx, rtx, enum rtx_code);
-extern bool maybe_emit_unop_insn (enum insn_code, rtx, rtx, enum rtx_code);
-
-/* Find a widening optab even if it doesn't widen as much as we want.  */
-#define find_widening_optab_handler(A,B,C,D) \
-  find_widening_optab_handler_and_mode (A, B, C, D, NULL)
-extern enum insn_code find_widening_optab_handler_and_mode (optab,
-                                                           machine_mode,
-                                                           machine_mode,
-                                                           int,
-                                                           machine_mode *);
-extern enum insn_code widening_optab_handler (optab, machine_mode,
-                                             machine_mode);
-
-/* An extra flag to control optab_for_tree_code's behavior.  This is needed to
-   distinguish between machines with a vector shift that takes a scalar for the
-   shift amount vs. machines that take a vector for the shift amount.  */
-enum optab_subtype
-{
-  optab_default,
-  optab_scalar,
-  optab_vector
-};
-
-/* Return the optab used for computing the given operation on the type given by
-   the second argument.  The third argument distinguishes between the types of
-   vector shifts and rotates */
-extern optab optab_for_tree_code (enum tree_code, const_tree, enum optab_subtype);
-
-/* Given an optab that reduces a vector to a scalar, find instead the old
-   optab that produces a vector with the reduction result in one element,
-   for a tree with the specified type.  */
-extern optab scalar_reduc_to_vector (optab, const_tree type);
-
-/* The various uses that a comparison can have; used by can_compare_p:
-   jumps, conditional moves, store flag operations.  */
-enum can_compare_purpose
-{
-  ccp_jump,
-  ccp_cmov,
-  ccp_store_flag
-};
-
-/* Nonzero if a compare of mode MODE can be done straightforwardly
-   (without splitting it into pieces).  */
-extern int can_compare_p (enum rtx_code, machine_mode,
-                         enum can_compare_purpose);
-
-/* Return the INSN_CODE to use for an extend operation.  */
-extern enum insn_code can_extend_p (machine_mode, machine_mode, int);
-
-/* Generate the body of an insn to extend Y (with mode MFROM)
-   into X (with mode MTO).  Do zero-extension if UNSIGNEDP is nonzero.  */
-extern rtx gen_extend_insn (rtx, rtx, machine_mode,
-                           machine_mode, int);
-
-/* Call this to reset the function entry for one optab.  */
-extern void set_optab_libfunc (optab, machine_mode, const char *);
-extern void set_conv_libfunc (convert_optab, machine_mode,
-                             machine_mode, const char *);
-
-/* Call this to install all of the __sync libcalls up to size MAX.  */
-extern void init_sync_libfuncs (int max);
-
-/* Generate code for a FIXED_CONVERT_EXPR.  */
-extern void expand_fixed_convert (rtx, rtx, int, int);
-
-/* Generate code for a FLOAT_EXPR.  */
-extern void expand_float (rtx, rtx, int);
-
-/* Return the insn_code for a FLOAT_EXPR.  */
-enum insn_code can_float_p (machine_mode, machine_mode, int);
-
-/* Return true if there is an inline compare and swap pattern.  */
-extern bool can_compare_and_swap_p (machine_mode, bool);
-
-/* Return true if there is an inline atomic exchange pattern.  */
-extern bool can_atomic_exchange_p (machine_mode, bool);
-
-/* Generate code for a compare and swap.  */
-extern bool expand_atomic_compare_and_swap (rtx *, rtx *, rtx, rtx, rtx, bool,
-                                           enum memmodel, enum memmodel);
-
-/* Generate memory barriers.  */
-extern void expand_mem_thread_fence (enum memmodel);
-extern void expand_mem_signal_fence (enum memmodel);
-
-/* Check whether an operation represented by the code CODE is a
-   convert operation that is supported by the target platform in
-   vector form */
-bool supportable_convert_operation (enum tree_code, tree, tree, tree *, 
-                                    enum tree_code *);
-
-/* Generate code for a FIX_EXPR.  */
-extern void expand_fix (rtx, rtx, int);
-
-/* Generate code for float to integral conversion.  */
-extern bool expand_sfix_optab (rtx, rtx, convert_optab);
-
 /* Generate code for a widening multiply.  */
 extern rtx expand_widening_mult (machine_mode, rtx, rtx, rtx, int, optab);
 
-/* Return tree if target supports vector operations for COND_EXPR.  */
-bool expand_vec_cond_expr_p (tree, tree);
-
-/* Generate code for VEC_COND_EXPR.  */
-extern rtx expand_vec_cond_expr (tree, tree, tree, tree, rtx);
-/* Generate code for VEC_RSHIFT_EXPR.  */
-extern rtx expand_vec_shift_expr (sepops, rtx);
-
-/* Return true if target supports vector operations for VEC_PERM_EXPR.  */
-extern bool can_vec_perm_p (machine_mode, bool, const unsigned char *);
-
-/* Generate code for VEC_PERM_EXPR.  */
-extern rtx expand_vec_perm (machine_mode, rtx, rtx, rtx, rtx);
-
-/* Return non-zero if target supports a given highpart multiplication.  */
-extern int can_mult_highpart_p (machine_mode, bool);
-
-/* Generate code for MULT_HIGHPART_EXPR.  */
-extern rtx expand_mult_highpart (machine_mode, rtx, rtx, rtx, bool);
-
-/* Return true if target supports vector masked load/store for mode.  */
-extern bool can_vec_mask_load_store_p (machine_mode, bool);
-
 /* Return the insn used to implement mode MODE of OP, or CODE_FOR_nothing
    if the target does not have such an insn.  */
 
@@ -310,9 +77,7 @@ trapv_binoptab_p (optab binoptab)
          || binoptab == smulv_optab);
 }
 
-extern rtx optab_libfunc (optab optab, machine_mode mode);
-extern rtx convert_optab_libfunc (convert_optab optab, machine_mode mode1,
-                                 machine_mode mode2);
+
 
 /* Describes an instruction that inserts or extracts a bitfield.  */
 struct extraction_insn
@@ -333,21 +98,8 @@ struct extraction_insn
   machine_mode pos_mode;
 };
 
-/* Enumerates the possible extraction_insn operations.  */
-enum extraction_pattern { EP_insv, EP_extv, EP_extzv };
-
-extern bool get_best_reg_extraction_insn (extraction_insn *,
-                                         enum extraction_pattern,
-                                         unsigned HOST_WIDE_INT,
-                                         machine_mode);
 
-extern bool get_best_mem_extraction_insn (extraction_insn *,
-                                         enum extraction_pattern,
-                                         HOST_WIDE_INT, HOST_WIDE_INT,
-                                         machine_mode);
 
-extern bool insn_operand_matches (enum insn_code icode, unsigned int opno,
-                                 rtx operand);
 
 /* Describes the type of an expand_operand.  Each value is associated
    with a create_*_operand function; see the comments above those
@@ -452,8 +204,6 @@ create_convert_operand_from (struct expand_operand *op, rtx value,
   create_expand_operand (op, EXPAND_CONVERT_FROM, value, mode, unsigned_p);
 }
 
-extern void create_convert_operand_from_type (struct expand_operand *op,
-                                             rtx value, tree type);
 
 /* Make OP describe an input Pmode address operand.  VALUE is the value
    of the address, but it may need to be converted to Pmode first.  */
@@ -476,24 +226,202 @@ create_integer_operand (struct expand_operand *op, HOST_WIDE_INT intval)
   create_expand_operand (op, EXPAND_INTEGER, GEN_INT (intval), VOIDmode, false);
 }
 
-extern bool valid_multiword_target_p (rtx);
 
-extern bool maybe_legitimize_operands (enum insn_code icode,
-                                      unsigned int opno, unsigned int nops,
-                                      struct expand_operand *ops);
-extern rtx maybe_gen_insn (enum insn_code icode, unsigned int nops,
-                          struct expand_operand *ops);
-extern bool maybe_expand_insn (enum insn_code icode, unsigned int nops,
-                              struct expand_operand *ops);
-extern bool maybe_expand_jump_insn (enum insn_code icode, unsigned int nops,
-                                   struct expand_operand *ops);
-extern void expand_insn (enum insn_code icode, unsigned int nops,
-                        struct expand_operand *ops);
-extern void expand_jump_insn (enum insn_code icode, unsigned int nops,
-                             struct expand_operand *ops);
+extern rtx convert_optab_libfunc (convert_optab optab, machine_mode mode1,
+                                 machine_mode mode2);
+extern rtx optab_libfunc (optab optab, machine_mode mode);
+extern enum insn_code widening_optab_handler (optab, machine_mode,
+                                             machine_mode);
+/* Find a widening optab even if it doesn't widen as much as we want.  */
+#define find_widening_optab_handler(A,B,C,D) \
+  find_widening_optab_handler_and_mode (A, B, C, D, NULL)
+extern enum insn_code find_widening_optab_handler_and_mode (optab,
+                                                           machine_mode,
+                                                           machine_mode,
+                                                           int,
+                                                           machine_mode *);
+
+/* An extra flag to control optab_for_tree_code's behavior.  This is needed to
+   distinguish between machines with a vector shift that takes a scalar for the
+   shift amount vs. machines that take a vector for the shift amount.  */
+enum optab_subtype
+{
+  optab_default,
+  optab_scalar,
+  optab_vector
+};
+
+/* Passed to expand_simple_binop and expand_binop to say which options
+   to try to use if the requested operation can't be open-coded on the
+   requisite mode.  Either OPTAB_LIB or OPTAB_LIB_WIDEN says try using
+   a library call.  Either OPTAB_WIDEN or OPTAB_LIB_WIDEN says try
+   using a wider mode.  OPTAB_MUST_WIDEN says try widening and don't
+   try anything else.  */
+
+enum optab_methods
+{
+  OPTAB_DIRECT,
+  OPTAB_LIB,
+  OPTAB_WIDEN,
+  OPTAB_LIB_WIDEN,
+  OPTAB_MUST_WIDEN
+};
+
+/* Return the optab used for computing the given operation on the type given by
+   the second argument.  The third argument distinguishes between the types of
+   vector shifts and rotates */
+extern optab optab_for_tree_code (enum tree_code, const_tree, enum optab_subtype);
+
+/* Given an optab that reduces a vector to a scalar, find instead the old
+   optab that produces a vector with the reduction result in one element,
+   for a tree with the specified type.  */
+extern optab scalar_reduc_to_vector (optab, const_tree type);
+
+extern rtx expand_widen_pattern_expr (struct separate_ops *, rtx , rtx , rtx,
+                                      rtx, int);
+extern rtx expand_ternary_op (machine_mode mode, optab ternary_optab,
+                             rtx op0, rtx op1, rtx op2, rtx target,
+                             int unsignedp);
+extern rtx simplify_expand_binop (machine_mode mode, optab binoptab,
+                                 rtx op0, rtx op1, rtx target, int unsignedp,
+                                 enum optab_methods methods);
+extern bool force_expand_binop (machine_mode, optab, rtx, rtx, rtx, int,
+                               enum optab_methods);
+/* Generate code for VEC_RSHIFT_EXPR.  */
+extern rtx expand_vec_shift_expr (struct separate_ops *, rtx);
+
+/* Generate code for a simple binary or unary operation.  "Simple" in
+   this case means "can be unambiguously described by a (mode, code)
+   pair and mapped to a single optab."  */
+extern rtx expand_simple_binop (machine_mode, enum rtx_code, rtx,
+                               rtx, rtx, int, enum optab_methods);
+
+/* Expand a binary operation given optab and rtx operands.  */
+extern rtx expand_binop (machine_mode, optab, rtx, rtx, rtx, int,
+                        enum optab_methods);
 
+/* Expand a binary operation with both signed and unsigned forms.  */
+extern rtx sign_expand_binop (machine_mode, optab, optab, rtx, rtx,
+                             rtx, int, enum optab_methods);
+
+/* Generate code to perform an operation on one operand with two results.  */
+extern int expand_twoval_unop (optab, rtx, rtx, rtx, int);
+
+/* Generate code to perform an operation on two operands with two results.  */
+extern int expand_twoval_binop (optab, rtx, rtx, rtx, rtx, int);
+
+/* Generate code to perform an operation on two operands with two
+   results, using a library function.  */
+extern bool expand_twoval_binop_libfunc (optab, rtx, rtx, rtx, rtx,
+                                        enum rtx_code);
+extern rtx expand_simple_unop (machine_mode, enum rtx_code, rtx, rtx,
+                              int);
+
+/* Expand a unary arithmetic operation given optab rtx operand.  */
+extern rtx expand_unop (machine_mode, optab, rtx, rtx, int);
+
+/* Expand the absolute value operation.  */
+extern rtx expand_abs_nojump (machine_mode, rtx, rtx, int);
+extern rtx expand_abs (machine_mode, rtx, rtx, int, int);
+
+/* Expand the one's complement absolute value operation.  */
+extern rtx expand_one_cmpl_abs_nojump (machine_mode, rtx, rtx);
+
+/* Expand the copysign operation.  */
+extern rtx expand_copysign (rtx, rtx, rtx);
+/* Generate an instruction with a given INSN_CODE with an output and
+   an input.  */
+extern bool maybe_emit_unop_insn (enum insn_code, rtx, rtx, enum rtx_code);
+extern void emit_unop_insn (enum insn_code, rtx, rtx, enum rtx_code);
+
+/* Emit code to make a call to a constant function or a library call.  */
+extern void emit_libcall_block (rtx, rtx, rtx, rtx);
+
+/* The various uses that a comparison can have; used by can_compare_p:
+   jumps, conditional moves, store flag operations.  */
+enum can_compare_purpose
+{
+  ccp_jump,
+  ccp_cmov,
+  ccp_store_flag
+};
+
+/* Nonzero if a compare of mode MODE can be done straightforwardly
+   (without splitting it into pieces).  */
+extern int can_compare_p (enum rtx_code, machine_mode,
+                         enum can_compare_purpose);
 extern rtx prepare_operand (enum insn_code, rtx, int, machine_mode,
                            machine_mode, int);
+/* Emit a pair of rtl insns to compare two rtx's and to jump
+   to a label if the comparison is true.  */
+extern void emit_cmp_and_jump_insns (rtx, rtx, enum rtx_code, rtx,
+                                    machine_mode, int, rtx, int prob=-1);
+
+/* Generate code to indirectly jump to a location given in the rtx LOC.  */
+extern void emit_indirect_jump (rtx);
+
+#include "insn-config.h"
+
+#ifndef GCC_INSN_CONFIG_H
+#error "insn-config.h must be included before optabs.h"
+#endif
+
+#ifdef HAVE_conditional_move
+/* Emit a conditional move operation.  */
+rtx emit_conditional_move (rtx, enum rtx_code, rtx, rtx, machine_mode,
+                          rtx, rtx, machine_mode, int);
+
+/* Return nonzero if the conditional move is supported.  */
+int can_conditionally_move_p (machine_mode mode);
+
+#endif
+rtx emit_conditional_add (rtx, enum rtx_code, rtx, rtx, machine_mode,
+                         rtx, rtx, machine_mode, int);
+
+/* Create but don't emit one rtl instruction to perform certain operations.
+   Modes must match; operands must meet the operation's predicates.
+   Likewise for subtraction and for just copying.  */
+extern rtx gen_add2_insn (rtx, rtx);
+extern rtx gen_add3_insn (rtx, rtx, rtx);
+extern int have_add2_insn (rtx, rtx);
+extern rtx gen_addptr3_insn (rtx, rtx, rtx);
+extern int have_addptr3_insn (rtx, rtx, rtx);
+extern rtx gen_sub2_insn (rtx, rtx);
+extern rtx gen_sub3_insn (rtx, rtx, rtx);
+extern int have_sub2_insn (rtx, rtx);
+
+/* Return the INSN_CODE to use for an extend operation.  */
+extern enum insn_code can_extend_p (machine_mode, machine_mode, int);
+
+/* Generate the body of an insn to extend Y (with mode MFROM)
+   into X (with mode MTO).  Do zero-extension if UNSIGNEDP is nonzero.  */
+extern rtx gen_extend_insn (rtx, rtx, machine_mode,
+                           machine_mode, int);
+
+/* Return the insn_code for a FLOAT_EXPR.  */
+enum insn_code can_float_p (machine_mode, machine_mode, int);
+
+/* Check whether an operation represented by the code CODE is a
+   convert operation that is supported by the target platform in
+   vector form */
+bool supportable_convert_operation (enum tree_code, tree, tree, tree *, 
+                                    enum tree_code *);
+
+/* Generate code for a FLOAT_EXPR.  */
+extern void expand_float (rtx, rtx, int);
+
+/* Generate code for a FIX_EXPR.  */
+extern void expand_fix (rtx, rtx, int);
+
+/* Generate code for a FIXED_CONVERT_EXPR.  */
+extern void expand_fixed_convert (rtx, rtx, int, int);
+
+/* Generate code for float to integral conversion.  */
+extern bool expand_sfix_optab (rtx, rtx, convert_optab);
+
+/* Report whether the machine description contains an insn which can
+   perform the operation described by CODE and MODE.  */
+extern int have_insn_for (enum rtx_code, machine_mode);
 
 extern void gen_int_libfunc (optab, const char *, char, machine_mode);
 extern void gen_fp_libfunc (optab, const char *, char, machine_mode);
@@ -542,7 +470,102 @@ extern void gen_satfract_conv_libfunc (convert_optab, const char *,
 extern void gen_satfractuns_conv_libfunc (convert_optab, const char *,
                                          machine_mode,
                                          machine_mode);
+
+/* Build a decl for a libfunc named NAME. */
+extern tree build_libfunc_function (const char *);
+
+/* Call this to initialize an optab function entry.  */
+extern rtx init_one_libfunc (const char *);
+extern rtx set_user_assembler_libfunc (const char *, const char *);
+
+/* Call this to reset the function entry for one optab.  */
+extern void set_optab_libfunc (optab, machine_mode, const char *);
+extern void set_conv_libfunc (convert_optab, machine_mode,
+                             machine_mode, const char *);
+
+/* Call this once to initialize the contents of the optabs
+   appropriately for the current target machine.  */
+extern void init_optabs (void);
 extern void init_tree_optimization_optabs (tree);
+
+/* Call this to install all of the __sync libcalls up to size MAX.  */
+extern void init_sync_libfuncs (int max);
+
+/* Generate a conditional trap instruction.  */
+extern rtx gen_cond_trap (enum rtx_code, rtx, rtx, rtx);
+
+/* Return true if target supports vector operations for VEC_PERM_EXPR.  */
+extern bool can_vec_perm_p (machine_mode, bool, const unsigned char *);
+
+/* Generate code for VEC_PERM_EXPR.  */
+extern rtx expand_vec_perm (machine_mode, rtx, rtx, rtx, rtx);
+
+/* Return tree if target supports vector operations for COND_EXPR.  */
+bool expand_vec_cond_expr_p (tree, tree);
+
+/* Generate code for VEC_COND_EXPR.  */
+extern rtx expand_vec_cond_expr (tree, tree, tree, tree, rtx);
+
+/* Return non-zero if target supports a given highpart multiplication.  */
+extern int can_mult_highpart_p (machine_mode, bool);
+
+/* Generate code for MULT_HIGHPART_EXPR.  */
+extern rtx expand_mult_highpart (machine_mode, rtx, rtx, rtx, bool);
+
+/* Return true if target supports vector masked load/store for mode.  */
+extern bool can_vec_mask_load_store_p (machine_mode, bool);
+
+/* Return true if there is an inline compare and swap pattern.  */
+extern bool can_compare_and_swap_p (machine_mode, bool);
+
+/* Return true if there is an inline atomic exchange pattern.  */
+extern bool can_atomic_exchange_p (machine_mode, bool);
+
+extern rtx expand_sync_lock_test_and_set (rtx, rtx, rtx);
+extern rtx expand_atomic_test_and_set (rtx, rtx, enum memmodel);
+extern rtx expand_atomic_exchange (rtx, rtx, rtx, enum memmodel);
+extern bool expand_atomic_compare_and_swap (rtx *, rtx *, rtx, rtx, rtx, bool,
+                                           enum memmodel, enum memmodel);
+/* Generate memory barriers.  */
+extern void expand_mem_thread_fence (enum memmodel);
+extern void expand_mem_signal_fence (enum memmodel);
+
+rtx expand_atomic_load (rtx, rtx, enum memmodel);
+rtx expand_atomic_store (rtx, rtx, enum memmodel, bool);
+rtx expand_atomic_fetch_op (rtx, rtx, rtx, enum rtx_code, enum memmodel, 
+                             bool);
+
+extern bool insn_operand_matches (enum insn_code icode, unsigned int opno,
+                                 rtx operand);
+extern bool valid_multiword_target_p (rtx);
+extern void create_convert_operand_from_type (struct expand_operand *op,
+                                             rtx value, tree type);
+extern bool maybe_legitimize_operands (enum insn_code icode,
+                                      unsigned int opno, unsigned int nops,
+                                      struct expand_operand *ops);
+extern rtx maybe_gen_insn (enum insn_code icode, unsigned int nops,
+                          struct expand_operand *ops);
+extern bool maybe_expand_insn (enum insn_code icode, unsigned int nops,
+                              struct expand_operand *ops);
+extern bool maybe_expand_jump_insn (enum insn_code icode, unsigned int nops,
+                                   struct expand_operand *ops);
+extern void expand_insn (enum insn_code icode, unsigned int nops,
+                        struct expand_operand *ops);
+extern void expand_jump_insn (enum insn_code icode, unsigned int nops,
+                             struct expand_operand *ops);
+
+/* Enumerates the possible extraction_insn operations.  */
+enum extraction_pattern { EP_insv, EP_extv, EP_extzv };
+
+extern bool get_best_reg_extraction_insn (extraction_insn *,
+                                         enum extraction_pattern,
+                                         unsigned HOST_WIDE_INT,
+                                         machine_mode);
+extern bool get_best_mem_extraction_insn (extraction_insn *,
+                                         enum extraction_pattern,
+                                         HOST_WIDE_INT, HOST_WIDE_INT,
+                                         machine_mode);
+
 extern bool lshift_cheap_p (bool);
 
 #endif /* GCC_OPTABS_H */
index 2e44b0d73ac9b276e642d91ad768f4c8d1864a60..43d4681886c45c236af32b2a4ae22cc85aa77bda 100644 (file)
@@ -35,6 +35,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "input.h"
 #include "function.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "regs.h"
 #include "predict.h"
index 2b44ccc6b541dd6ddb43df45e40206d4882e732a..33769013760c9935789e3b64ff4256f6cf9c8be7 100644 (file)
--- a/gcc/ree.c
+++ b/gcc/ree.c
@@ -242,8 +242,8 @@ along with GCC; see the file COPYING3.  If not see
 #include "recog.h"
 #include "diagnostic-core.h"
 #include "target.h"
-#include "optabs.h"
 #include "insn-codes.h"
+#include "optabs.h"
 #include "rtlhooks-def.h"
 #include "params.h"
 #include "tree-pass.h"
index 70f346a3da74a33ce822c19f5b485c2da2b83d1b..9ef2c89887a2341ab53596f06165a7807aeeeb11 100644 (file)
@@ -96,6 +96,7 @@ a register with any other reload.  */
 #include "tm_p.h"
 #include "insn-config.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "recog.h"
 #include "dominance.h"
index 77d904263a088245ab7320a58130b1e061917a0c..dab8a7532e01333c53e0b440ba9c7edd05054f1f 100644 (file)
@@ -36,6 +36,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "input.h"
 #include "function.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "regs.h"
 #include "addresses.h"
index cfdcf86dd71fa1908e024352a100fd7105ddebfa..aae6643343941af8c1fb11d42db0b6b1c2aa7b51 100644 (file)
@@ -38,6 +38,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "input.h"
 #include "function.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "libfuncs.h"
 #include "regs.h"
index be1632448a8977a9375ff129ecfac2c93f31e632..1e4ba2369d5f0aceef406a5d121a7762a53554e9 100644 (file)
@@ -37,6 +37,8 @@ along with GCC; see the file COPYING3.  If not see
 #include "machmode.h"
 #include "input.h"
 #include "function.h"
+#include "insn-codes.h"
+#include "optabs.h"
 #include "expr.h"
 #include "diagnostic-core.h"
 #include "ggc.h"
index 04303676e8fbab62561b0aec9b3284ccea9366ee..1dc11ac40f64eb01258e13e18da082926ce55597 100644 (file)
@@ -49,6 +49,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "output.h"
 #include "langhooks.h"
 #include "predict.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "target.h"
 #include "cfganal.h"
index 9122d672d0bc832314986ee83c89e82d95d3935c..2e03c5cb3bd482923d8dee504e1d358a73452cac 100644 (file)
@@ -34,6 +34,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "reload.h"
 #include "expmed.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "libfuncs.h"
 #include "cfgloop.h"
index eef3d457b4e23e9ab51c9ce77902f09b41b2b597..d1d3119a9f001ab9b0fcc0282ea72360e25271ad 100644 (file)
@@ -69,6 +69,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "target-def.h"
 #include "regs.h"
 #include "reload.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "recog.h"
 #include "intl.h"
@@ -78,7 +79,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "gimplify.h"
 #include "stringpool.h"
 #include "tree-ssanames.h"
-#include "insn-codes.h"
 
 
 bool
index 2c570d4afd6019c72042dc4392d5516673e40e1c..eb37bfe6395eea58511c4038a21973c7cc8d4151 100644 (file)
@@ -95,6 +95,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "ipa-reference.h"
 #include "ipa-prop.h"
 #include "gcse.h"
+#include "insn-codes.h"
 #include "optabs.h"
 
 #if defined(DBX_DEBUGGING_INFO) || defined(XCOFF_DEBUGGING_INFO)
index 595c05b46d79559c03954796e090460cd6437f41..d7e9b0733dc63afff6ab7da8daa359ddf28a9815 100644 (file)
@@ -125,6 +125,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "tree-pass.h"
 #include "dbgcnt.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 
 /* List of basic blocks in if-conversion-suitable order.  */
index 3267bb9a3db03097fa179528ff3cd2556d1333f8..21f089ce024a5043268bde65f57c7e3f32d9544a 100644 (file)
@@ -60,6 +60,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "diagnostic.h"
 #include "expr.h"
 #include "cfgloop.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "tree-ssa-propagate.h"
 #include "tree-ssa-dom.h"
index 0d6805b96ce2a0a4a481b810e6dbb46820b4e634..2efa2dd9705d99309728755de0005242cfdb0bea 100644 (file)
@@ -65,6 +65,7 @@ along with GCC; see the file COPYING3.  If not see
 /* FIXME: Needed for optabs, but this should all be moved to a TBD interface
    between the GIMPLE and RTL worlds.  */
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "recog.h"
 
index 295e2b5610188b1c069fd04b20e6bbdb7d18921a..12fa4e8ca10632e6b6bd519357dbf83582828de8 100644 (file)
@@ -129,6 +129,7 @@ along with GCC; see the file COPYING3.  If not see
 /* FIXME: RTL headers have to be included here for optabs.  */
 #include "rtl.h"               /* Because optabs.h wants enum rtx_code.  */
 #include "expr.h"              /* Because optabs.h wants sepops.  */
+#include "insn-codes.h"
 #include "optabs.h"
 
 /* This structure represents one basic block that either computes a
index 94c7f4030e93c1578629dd86546b246b132d3995..c7c839d29ac5d411deec8a660331e4c95ea8898e 100644 (file)
@@ -62,6 +62,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "gimple-pretty-print.h"
 #include "insn-config.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "tree-scalar-evolution.h"
 #include "tree-inline.h"
index b95acfe7c6f264e52f8fa9ccebe18decc1411ba7..748249d75138f9115ef08737cda8eab2f4d512a4 100644 (file)
@@ -73,6 +73,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "diagnostic-core.h"
 #include "builtins.h"
 #include "gimplify.h"
+#include "insn-codes.h"
 #include "optabs.h"
 
 /*  This is a simple global reassociation pass.  It is, in part, based
index 32f0a11d3ae7d760c9a0429432dfcdfb606cb2b9..13a54106c494aaf1d802a577ed0050e6340adfc4 100644 (file)
@@ -71,6 +71,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
 
 /* Need to include expr.h and optabs.h for lshift_cheap_p.  */
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 \f
 /* Maximum number of case bit tests.
index f32bb3d73a0faaea5cbd88e544a890d437cae410..0bc03561cb00f45793ee60d6921bc664f7b3af18 100644 (file)
@@ -69,6 +69,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "cgraph.h"
 /* Need to include rtl.h, expr.h, etc. for optabs.  */
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "builtins.h"
 #include "varasm.h"
index d9445a4fb66f61c2a0254cb10f16516285c70e5e..a0c1363eae5cba8b607415c75fa5a6e1600be544 100644 (file)
@@ -55,6 +55,7 @@ along with GCC; see the file COPYING3.  If not see
 
 /* Need to include rtl.h, expr.h, etc. for optabs.  */
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 
 
index 6855f841ee89e5be167b0cf3df313d234484bfa0..f3f02fadb1dc505491571a53ef63f68d34b4cf06 100644 (file)
@@ -59,6 +59,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "cfgloop.h"
 #include "expr.h"
 #include "recog.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "params.h"
 #include "diagnostic-core.h"
index 8478dfcb7150c7e01f6879d55d699c7cc3f888bf..24ebba2381b794999cf9d94a154afff9bc8c2760 100644 (file)
@@ -51,6 +51,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "tree-ssanames.h"
 #include "cfgloop.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "params.h"
 #include "tree-data-ref.h"
index de2e60167468be4fe05830483b04ec8048ad1056..de62c6d0c37fa7f54566113cce7bf81048d256d1 100644 (file)
@@ -52,6 +52,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "cfgloop.h"
 #include "expr.h"
 #include "recog.h"             /* FIXME: for insn_data */
+#include "insn-codes.h"
 #include "optabs.h"
 #include "tree-vectorizer.h"
 #include "langhooks.h"
index 02559481f13c0585dfccc424f6ad85b4b6909f6c..2a5f23cbe0f07c9dda70dc63938763024560c121 100644 (file)
@@ -60,6 +60,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "tree-scalar-evolution.h"
 #include "expr.h"
 #include "recog.h"             /* FIXME: for insn_data */
+#include "insn-codes.h"
 #include "optabs.h"
 #include "diagnostic-core.h"
 #include "tree-vectorizer.h"
index 2264242b9ad1cdb29be5da04b431bbb1f5ee3c0a..4e4ebe030570bf5cd48f6cc0ad6efbdde8336868 100644 (file)
@@ -69,6 +69,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "tree-chrec.h"
 #include "tree-ssa-threadupdate.h"
 #include "expr.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "tree-ssa-threadedge.h"
 #include "wide-int.h"
index a65ccb8e8c92ef037889c96365a21390abf9a6ac..0e4ec8aefc02f9a7933532060d2cdf672fcb8190 100644 (file)
@@ -41,6 +41,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "flags.h"
 #include "insn-config.h"
 #include "recog.h"
+#include "insn-codes.h"
 #include "optabs.h"
 #include "regs.h"
 #include "tree-ssa-alias.h"