X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2FMakefile.am;h=35fbc9f87150d037a64ff7570a62e7c0a61b542a;hb=bba15007f36643c7c6f9281c8be00d8511bfb4f9;hp=0b493abb12fc9d8e116f14de5b7bb09419c2b113;hpb=60aee65e40d054356098006e3941174a7733571a;p=libfirm diff --git a/ir/Makefile.am b/ir/Makefile.am index 0b493abb1..35fbc9f87 100644 --- a/ir/Makefile.am +++ b/ir/Makefile.am @@ -22,7 +22,7 @@ INCLUDES += \ -I$(top_srcdir)/ir/tr \ -I$(top_srcdir)/ir/tv -libfirm_la_LDFLAGS = -no-undefined +libfirm_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION) libfirm_la_SOURCES = \ adt/array.c \ adt/bipartite.c \ @@ -93,10 +93,6 @@ libfirm_la_SOURCES = \ be/beflags.c \ be/begnuas.c \ be/beifg.c \ - be/beifg_clique.c \ - be/beifg_list.c \ - be/beifg_pointer.c \ - be/beifg_std.c \ be/beilpsched.c \ be/beinfo.c \ be/beinsn.c \ @@ -181,7 +177,6 @@ libfirm_la_SOURCES = \ ir/irprog.c \ ir/irssacons.c \ ir/irvrfy.c \ - ir/pseudo_irg.c \ ir/valueset.c \ libcore/lc_appendable.c \ libcore/lc_config_lexer.c \ @@ -253,148 +248,150 @@ libfirm_la_SOURCES = \ tv/tv.c EXTRA_DIST = \ - adt/bitset.h \ adt/array_t.h \ - adt/raw_bitset.h \ - adt/compiler.h \ adt/bitfiddle.h \ - ana/irdom_t.h \ + adt/bitset.h \ + adt/compiler.h \ + adt/raw_bitset.h \ + adt/util.h \ + ana/absgraph.h \ + ana/dfs.h \ ana/dfs_t.h \ ana/irbackedge_t.h \ - ana/dfs.h \ + ana/irdom_t.h \ + ana/irextbb_t.h \ ana/irlivechk.h \ - ana/irmemory_t.h \ - ana/absgraph.h \ ana/irloop_t.h \ - ana/irextbb_t.h \ - be/belive_t.h \ - be/bechordal_common.h \ - be/beifg_impl.h \ - be/becopypbqp.h \ - be/bepeephole.h \ + ana/irmemory_t.h \ + be/be_dbgout.h \ be/be_dbgout_t.h \ - be/bessaconstr.h \ - be/beifg_t.h \ - be/beblocksched.h \ - be/becopyilp_t.h \ - be/beverify.h \ - be/bemachine.h \ - be/beemitter.h \ - be/begnuas.h \ - be/becopyopt_t.h \ - be/benode.h \ - be/bemodule.h \ be/be_t.h \ be/be_types.h \ - be/belistsched.h \ - be/bessadestr.h \ - be/bechordal_draw.h \ be/beabi.h \ - be/beflags.h \ + be/bearch.h \ + be/beblocksched.h \ + be/bechordal.h \ + be/bechordal_common.h \ + be/bechordal_draw.h \ be/bechordal_t.h \ - be/beifg.h \ - be/bespillslots.h \ - be/beschedmris.h \ - be/besched.h \ - be/beloopana.h \ - be/beilpsched.h \ + be/becopyilp_t.h \ be/becopyopt.h \ - be/bepressurestat.h \ - be/bestat.h \ - be/beuses.h \ - be/bestate.h \ - be/bespillutil.h \ - be/bera.h \ + be/becopyopt_t.h \ + be/becopypbqp.h \ + be/becopystat.h \ + be/bedomfront.h \ + be/bedump_minir.h \ + be/beemitter.h \ be/beemitter_binary.h \ - be/beirgmod.h \ + be/beflags.h \ + be/begnuas.h \ + be/beifg.h \ + be/beilpsched.h \ + be/beinfo.h \ be/beinsn_t.h \ - be/betranshlp.h \ + be/beintlive_t.h \ + be/beirg.h \ + be/beirgmod.h \ + be/belistsched.h \ be/belive.h \ - be/bestatevent.h \ - be/beutil.h \ - be/be_dbgout.h \ - be/bespill.h \ - be/bedomfront.h \ + be/belive_t.h \ + be/beloopana.h \ be/belower.h \ - be/beinfo.h \ - be/beintlive_t.h \ - be/bepbqpcoloring.h \ - be/becopystat.h \ + be/bemachine.h \ + be/benode.h \ + be/bemodule.h \ be/bemodule_t.h \ - be/bechordal.h \ - be/bearch.h \ + be/besched.h \ + be/bepbqpcoloring.h \ + be/bepeephole.h \ + be/bepressurestat.h \ + be/bera.h \ + be/beschedmris.h \ + be/beutil.h \ be/beschedrss.h \ - be/beirg.h \ + be/bespill.h \ + be/bespillslots.h \ + be/bespillutil.h \ + be/bessaconstr.h \ + be/bessadestr.h \ + be/bestat.h \ + be/bestate.h \ + be/bestatevent.h \ + be/betranshlp.h \ + be/beuses.h \ + be/beverify.h \ + common/debug.h \ common/error.h \ common/irtools.h \ - common/debug.h \ debug/dbginfo_t.h \ debug/debugger.h \ ident/ident_t.h \ - ir/gen_irnode.h \ - ir/irmode_t.h \ - ir/irvrfy_t.h \ - ir/iredges_t.h \ - ir/ircons_t.h \ - ir/irpass_t.h \ - ir/irprofile.h \ - ir/irflag_t.def \ + ir/instrument.h \ ir/irargs_t.h \ - ir/irnodemap.h \ - ir/irgraph_t.h \ ir/irbitset.h \ + ir/ircons_t.h \ + ir/irdump_t.h \ + ir/iredges_t.h \ + ir/iredgeset.h \ + ir/irflag_t.def \ ir/irflag_t.h \ - ir/valueset.h \ + ir/irgraph_t.h \ + ir/irlinkednodemap.h \ + ir/irlinkednodeset.h \ + ir/irmode_t.h \ + ir/irnode_t.h \ + ir/irnodemap.h \ ir/irnodeset.h \ ir/irop_t.h \ + ir/iropt_t.h \ + ir/irpass_t.h \ + ir/irphase.h \ ir/irphase_t.h \ - ir/instrument.h \ - ir/iredgeset.h \ - ir/irdump_t.h \ + ir/irprintf_t.h \ + ir/irprofile.h \ ir/irprog_t.h \ ir/irtypes.h \ - ir/irnode_t.h \ - ir/irlinkednodemap.h \ - ir/iropt_t.h \ - ir/irprintf_t.h \ - ir/irlinkednodeset.h \ - ir/irphase.h \ - libcore/lc_common_t.h \ - libcore/lc_defines.h \ - libcore/lc_parser_t.h \ + ir/irvrfy_t.h \ + ir/valueset.h \ + ir/gen_irnode.h \ libcore/do_bisonflex.sh \ - libcore/lc_config_parser.h \ - libcore/lc_opts.h \ - libcore/lc_printf_arg_types.def \ libcore/lc_appendable.h \ - libcore/lc_printf.h \ + libcore/lc_common_t.h \ libcore/lc_config.h \ - libcore/lc_opts_t.h \ + libcore/lc_config_lexer.l \ + libcore/lc_config_parser.h \ + libcore/lc_config_parser.y \ + libcore/lc_defines.h \ + libcore/lc_opts.h \ libcore/lc_opts_enum.h \ - opt/scalar_replace.h \ - opt/reassoc_t.h \ - opt/opt_init.h \ + libcore/lc_opts_t.h \ + libcore/lc_parser_t.h \ + libcore/lc_printf.h \ + libcore/lc_printf_arg_types.def \ + opt/iropt_dbg.h \ opt/opt_confirms.h \ + opt/opt_init.h \ opt/opt_polymorphy.h \ - opt/iropt_dbg.h \ - stat/statev.h \ - stat/stat_dmp.h \ + opt/reassoc_t.h \ + opt/scalar_replace.h \ + stat/counter.h \ + stat/dags.h \ stat/firmstat_t.h \ stat/pattern.h \ stat/pattern_dmp.h \ - stat/dags.h \ - stat/counter.h \ + stat/stat_dmp.h \ stat/stat_timing.h \ - tr/entity_t.h \ + stat/statev.h \ tr/compound_path_t.h \ - tr/type_t.h \ + tr/entity_t.h \ tr/tpop_t.h \ + tr/type_t.h \ + tv/fltcalc.h \ tv/strcalc.h \ tv/tv_t.h \ - tv/fltcalc.h \ - ir/gen_irop.c.inl \ ir/gen_ir_cons.c.inl \ ir/gen_irnode.c.inl \ + ir/gen_irop.c.inl \ ir/gen_irio_export.inl \ ir/gen_irio_import.inl \ ir/gen_irio_lex.inl \ @@ -404,11 +401,6 @@ EXTRA_DIST = \ be/scripts/generate_new_opcodes.pl \ be/scripts/generate_regalloc_if.pl -EXTRA_DIST += \ - libcore/do_bisonflex.sh \ - libcore/lc_config_lexer.l \ - libcore/lc_config_parser.y - # ia32 backend ia32_sources = \ @@ -524,105 +516,6 @@ $(srcdir)/be/arm/gen_arm_regalloc_if.c $(srcdir)/be/arm/gen_arm_regalloc_if.h: \ be/arm/arm_spec.pl be/scripts/generate_machine.pl $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm -# mips backend - -mips_sources = \ - be/mips/bearch_mips.c \ - be/mips/mips_emitter.c \ - be/mips/mips_map_regs.c \ - be/mips/mips_new_nodes.c \ - be/mips/mips_scheduler.c \ - be/mips/mips_transform.c -mips_built_sources = \ - be/mips/gen_mips_emitter.c \ - be/mips/gen_mips_emitter.h \ - be/mips/gen_mips_machine.c \ - be/mips/gen_mips_machine.h \ - be/mips/gen_mips_new_nodes.c.inl \ - be/mips/gen_mips_new_nodes.h \ - be/mips/gen_mips_regalloc_if.c \ - be/mips/gen_mips_regalloc_if.h -MAINTAINERCLEANFILES += $(mips_built_sources) -BUILT_SOURCES += $(mips_built_sources) -libfirm_la_SOURCES += $(mips_sources) $(mips_built_sources) - -EXTRA_DIST += \ - be/mips/bearch_mips.h \ - be/mips/bearch_mips_t.h \ - be/mips/mips_emitter.h \ - be/mips/mips_map_regs.h \ - be/mips/mips_new_nodes.h \ - be/mips/mips_nodes_attr.h \ - be/mips/mips_scheduler.h \ - be/mips/mips_spec.pl \ - be/mips/mips_transform.h \ - be/mips/mips_util.h - -$(srcdir)/be/mips/gen_mips_new_nodes.c.inl $(srcdir)/be/mips/gen_mips_new_nodes.h: \ - be/mips/mips_spec.pl be/scripts/generate_new_opcodes.pl - $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips - -$(srcdir)/be/mips/gen_mips_emitter.c $(srcdir)/be/mips/gen_mips_emitter.h: \ - be/mips/mips_spec.pl be/scripts/generate_emitter.pl - $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips - -$(srcdir)/be/mips/gen_mips_machine.c $(srcdir)/be/mips/gen_mips_machine.h: \ - be/mips/mips_spec.pl be/scripts/generate_machine.pl - $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips - -$(srcdir)/be/mips/gen_mips_regalloc_if.c $(srcdir)/be/mips/gen_mips_regalloc_if.h: \ - be/mips/mips_spec.pl be/scripts/generate_machine.pl - $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips - -# ppc32 backend - -ppc32_sources = \ - be/ppc32/bearch_ppc32.c \ - be/ppc32/ppc32_emitter.c \ - be/ppc32/ppc32_map_regs.c \ - be/ppc32/ppc32_new_nodes.c \ - be/ppc32/ppc32_transform.c \ - be/ppc32/ppc32_transform_conv.c -ppc32_built_sources = \ - be/ppc32/gen_ppc32_emitter.c \ - be/ppc32/gen_ppc32_emitter.h \ - be/ppc32/gen_ppc32_machine.c \ - be/ppc32/gen_ppc32_machine.h \ - be/ppc32/gen_ppc32_new_nodes.c.inl \ - be/ppc32/gen_ppc32_new_nodes.h \ - be/ppc32/gen_ppc32_regalloc_if.c \ - be/ppc32/gen_ppc32_regalloc_if.h -MAINTAINERCLEANFILES += $(ppc32_built_sources) -BUILT_SOURCES += $(ppc32_built_sources) -libfirm_la_SOURCES += $(ppc32_sources) $(ppc32_built_sources) - -EXTRA_DIST += \ - be/ppc32/bearch_ppc32.h \ - be/ppc32/bearch_ppc32_t.h \ - be/ppc32/ppc32_emitter.h \ - be/ppc32/ppc32_map_regs.h \ - be/ppc32/ppc32_new_nodes.h \ - be/ppc32/ppc32_nodes_attr.h \ - be/ppc32/ppc32_spec.pl \ - be/ppc32/ppc32_transform.h \ - be/ppc32/ppc32_transform_conv.h - -$(srcdir)/be/ppc32/gen_ppc32_new_nodes.c.inl $(srcdir)/be/ppc32/gen_ppc32_new_nodes.h: \ - be/ppc32/ppc32_spec.pl be/scripts/generate_new_opcodes.pl - $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32 - -$(srcdir)/be/ppc32/gen_ppc32_emitter.c $(srcdir)/be/ppc32/gen_ppc32_emitter.h: \ - be/ppc32/ppc32_spec.pl be/scripts/generate_emitter.pl - $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32 - -$(srcdir)/be/ppc32/gen_ppc32_machine.c $(srcdir)/be/ppc32/gen_ppc32_machine.h: \ - be/ppc32/ppc32_spec.pl be/scripts/generate_machine.pl - $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32 - -$(srcdir)/be/ppc32/gen_ppc32_regalloc_if.c $(srcdir)/be/ppc32/gen_ppc32_regalloc_if.h: \ - be/ppc32/ppc32_spec.pl be/scripts/generate_machine.pl - $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32 - # sparc backend sparc_sources = \ @@ -670,6 +563,51 @@ $(srcdir)/be/sparc/gen_sparc_regalloc_if.c $(srcdir)/be/sparc/gen_sparc_regalloc be/sparc/sparc_spec.pl be/scripts/generate_machine.pl $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc +# amd64 backend + +amd64_sources = \ + be/amd64/amd64_emitter.c \ + be/amd64/amd64_new_nodes.c \ + be/amd64/amd64_transform.c \ + be/amd64/bearch_amd64.c +amd64_built_sources = \ + be/amd64/gen_amd64_emitter.c \ + be/amd64/gen_amd64_emitter.h \ + be/amd64/gen_amd64_machine.c \ + be/amd64/gen_amd64_machine.h \ + be/amd64/gen_amd64_new_nodes.c.inl \ + be/amd64/gen_amd64_new_nodes.h \ + be/amd64/gen_amd64_regalloc_if.c \ + be/amd64/gen_amd64_regalloc_if.h +MAINTAINERCLEANFILES += $(amd64_built_sources) +BUILT_SOURCES += $(amd64_built_sources) +libfirm_la_SOURCES += $(amd64_sources) $(amd64_built_sources) + +EXTRA_DIST += \ + be/amd64/amd64_emitter.h \ + be/amd64/amd64_new_nodes.h \ + be/amd64/amd64_nodes_attr.h \ + be/amd64/amd64_spec.pl \ + be/amd64/amd64_transform.h \ + be/amd64/bearch_amd64_t.h + +$(srcdir)/be/amd64/gen_amd64_new_nodes.c.inl $(srcdir)/be/amd64/gen_amd64_new_nodes.h: \ + be/amd64/amd64_spec.pl be/scripts/generate_new_opcodes.pl + $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64 + +$(srcdir)/be/amd64/gen_amd64_emitter.c $(srcdir)/be/amd64/gen_amd64_emitter.h: \ + be/amd64/amd64_spec.pl be/scripts/generate_emitter.pl + $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64 + +$(srcdir)/be/amd64/gen_amd64_machine.c $(srcdir)/be/amd64/gen_amd64_machine.h: \ + be/amd64/amd64_spec.pl be/scripts/generate_machine.pl + $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64 + +$(srcdir)/be/amd64/gen_amd64_regalloc_if.c $(srcdir)/be/amd64/gen_amd64_regalloc_if.h: \ + be/amd64/amd64_spec.pl be/scripts/generate_machine.pl + $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64 + + # TEMPLATE backend TEMPLATE_sources = \