amd64: Spell amd64 as AMD64 in macro names.
[libfirm] / ir / Makefile.am
index a060a2b..e2846ef 100644 (file)
@@ -1,7 +1,6 @@
 lib_LTLIBRARIES = libfirm.la
 
-INCLUDES = $(LIBCORE_CFLAGS) \
-       -I$(top_srcdir)/include/libfirm \
+INCLUDES = -I$(top_srcdir)/include/libfirm \
        -I$(top_srcdir)/include/libfirm/adt \
        -I$(top_builddir)
 
@@ -17,23 +16,22 @@ INCLUDES += \
        -I$(top_srcdir)/ir/kaps \
        -I$(top_srcdir)/ir/libcore \
        -I$(top_srcdir)/ir/lower \
+       -I$(top_srcdir)/ir/lpp \
        -I$(top_srcdir)/ir/net \
        -I$(top_srcdir)/ir/opt \
        -I$(top_srcdir)/ir/stat \
        -I$(top_srcdir)/ir/tr \
        -I$(top_srcdir)/ir/tv
 
-libfirm_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION)
+libfirm_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION) -lm
+libfirm_la_CFLAGS = -std=c99
 libfirm_la_SOURCES = \
        adt/array.c \
        adt/bipartite.c \
        adt/cpset.c \
-       adt/eset.c \
        adt/gaussjordan.c \
        adt/gaussseidel.c \
-       adt/hashset.c \
        adt/hungarian.c \
-       adt/iterator.c \
        adt/pdeq.c \
        adt/plist.c \
        adt/pmap.c \
@@ -48,24 +46,19 @@ libfirm_la_SOURCES = \
        ana/cdep.c \
        ana/cgana.c \
        ana/dfs.c \
+       ana/domfront.c \
        ana/execfreq.c \
-       ana/execution_frequency.c \
        ana/heights.c \
-       ana/interval_analysis.c \
        ana/irbackedge.c \
        ana/ircfscc.c \
        ana/irconsconfirm.c \
        ana/irdom.c \
-       ana/irextbb2.c \
-       ana/irextbb.c \
        ana/irlivechk.c \
        ana/irloop.c \
        ana/irmemory.c \
        ana/irouts.c \
        ana/irscc.c \
        ana/irtypeinfo.c \
-       ana/rta.c \
-       ana/structure.c \
        ana/trouts.c \
        ana/vrp.c \
        be/beabi.c \
@@ -83,8 +76,8 @@ libfirm_la_SOURCES = \
        be/becopyilp.c \
        be/becopyopt.c \
        be/becopystat.c \
-       be/bedbgout.c \
-       be/bedomfront.c \
+       be/bedump.c \
+       be/bedwarf.c \
        be/beemitter_binary.c \
        be/beemitter.c \
        be/beflags.c \
@@ -98,7 +91,6 @@ libfirm_la_SOURCES = \
        be/belive.c \
        be/beloopana.c \
        be/belower.c \
-       be/bemachine.c \
        be/bemain.c \
        be/bemodule.c \
        be/benode.c \
@@ -119,7 +111,6 @@ libfirm_la_SOURCES = \
        be/bespillutil.c \
        be/bessaconstr.c \
        be/bessadestr.c \
-       be/bestabs.c \
        be/bestack.c \
        be/bestat.c \
        be/bestate.c \
@@ -140,6 +131,7 @@ libfirm_la_SOURCES = \
        ir/instrument.c \
        ir/irarch.c \
        ir/irargs.c \
+       ir/ircomplib.c \
        ir/ircons.c \
        ir/irdump.c \
        ir/irdumptxt.c \
@@ -152,26 +144,28 @@ libfirm_la_SOURCES = \
        ir/irgwalk.c \
        ir/irhooks.c \
        ir/irio.c \
-       ir/irlinkednodemap.c \
-       ir/irlinkednodeset.c \
        ir/irmode.c \
        ir/irnode.c \
-       ir/irnodemap.c \
+       ir/irnodehashmap.c \
        ir/irnodeset.c \
        ir/irop.c \
        ir/iropt.c \
        ir/irpass.c \
-       ir/irphase.c \
        ir/irprintf.c \
        ir/irprofile.c \
        ir/irprog.c \
        ir/irssacons.c \
        ir/irverify.c \
+       ir/rm_bads.c \
+       ir/rm_tuples.c \
+       ir/unreachable.c \
        ir/valueset.c \
        libcore/lc_appendable.c \
        libcore/lc_opts.c \
        libcore/lc_opts_enum.c \
        libcore/lc_printf.c \
+       lower/lower_alloc.c \
+       lower/lower_builtins.c \
        lower/lower_calls.c \
        lower/lower_copyb.c \
        lower/lower_dw.c \
@@ -179,7 +173,16 @@ libfirm_la_SOURCES = \
        lower/lower_intrinsics.c \
        lower/lower_mode_b.c \
        lower/lower_mux.c \
+       lower/lower_softfloat.c \
        lower/lower_switch.c \
+       lpp/lpp.c \
+       lpp/lpp_comm.c \
+       lpp/lpp_cplex.c \
+       lpp/lpp_gurobi.c \
+       lpp/lpp_net.c \
+       lpp/lpp_solvers.c \
+       lpp/mps.c \
+       lpp/sp_matrix.c \
        obstack/obstack.c \
        obstack/obstack_printf.c \
        opt/boolopt.c \
@@ -198,6 +201,7 @@ libfirm_la_SOURCES = \
        opt/ircgopt.c \
        opt/jumpthreading.c \
        opt/ldstopt.c \
+       opt/local.c \
        opt/loop.c \
        opt/opt_blocks.c \
        opt/opt_confirms.c \
@@ -205,7 +209,6 @@ libfirm_la_SOURCES = \
        opt/opt_inline.c \
        opt/opt_ldst.c \
        opt/opt_osr.c \
-       opt/opt_polymorphy.c \
        opt/parallelize_mem.c \
        opt/proc_cloning.c \
        opt/reassoc.c \
@@ -222,7 +225,6 @@ libfirm_la_SOURCES = \
        stat/stat_dmp.c \
        stat/statev.c \
        stat/stat_timing.c \
-       tr/compound_path.c \
        tr/entity.c \
        tr/tpop.c \
        tr/tr_inheritance.c \
@@ -250,118 +252,128 @@ EXTRA_DIST = \
        adt/array_t.h \
        adt/bitfiddle.h \
        adt/bitset.h \
+       adt/util.h \
        adt/compiler.h \
+       adt/cpset.h \
+       adt/fourcc.h \
        adt/raw_bitset.h \
-       adt/util.h \
+       adt/hashset.h \
+       adt/pset_new.h \
        ana/absgraph.h \
        ana/dfs.h \
        ana/dfs_t.h \
        ana/irbackedge_t.h \
        ana/irdom_t.h \
-       ana/irextbb_t.h \
+       ana/cdep_t.h \
        ana/irlivechk.h \
        ana/irloop_t.h \
        ana/irmemory_t.h \
-       be/be_dbgout.h \
-       be/be_dbgout_t.h \
+       ana/execfreq_t.h \
+       ana/trouts_t.h \
        be/be_t.h \
        be/be_types.h \
        be/beabi.h \
-       be/beabihelper.h \
        be/bearch.h \
        be/beblocksched.h \
        be/bechordal.h \
-       be/bechordal_common.h \
        be/bechordal_draw.h \
        be/bechordal_t.h \
+       be/becopyopt_t.h \
+       be/beabihelper.h \
        be/becopyilp_t.h \
        be/becopyopt.h \
-       be/becopyopt_t.h \
        be/becopystat.h \
-       be/bedomfront.h \
+       be/bedump.h \
+       be/belive.h \
+       be/beintlive_t.h \
        be/beemitter.h \
-       be/beemitter_binary.h \
-       be/beflags.h \
        be/begnuas.h \
        be/beifg.h \
-       be/beinfo.h \
+       be/bechordal_common.h \
        be/beinsn_t.h \
-       be/beintlive_t.h \
        be/beirg.h \
+       be/beflags.h \
        be/beirgmod.h \
+       be/beemitter_binary.h \
        be/belistsched.h \
-       be/belive.h \
        be/belive_t.h \
        be/beloopana.h \
        be/belower.h \
-       be/bemachine.h \
+       be/beinfo.h \
+       be/bessaconstr.h \
        be/bemodule.h \
        be/bemodule_t.h \
        be/benode.h \
-       be/bepbqpcoloring.h \
        be/bepeephole.h \
+       be/bepbqpcoloring.h \
        be/bera.h \
        be/besched.h \
        be/bespill.h \
        be/bespillslots.h \
-       be/bespillutil.h \
-       be/bessaconstr.h \
+       be/beutil.h \
        be/bessadestr.h \
-       be/bestack.h \
+       be/bespillutil.h \
        be/bestat.h \
-       be/bestate.h \
-       be/bestatevent.h \
        be/betranshlp.h \
-       be/beuses.h \
-       be/beutil.h \
+       be/bestack.h \
+       be/bestate.h \
        be/beverify.h \
+       be/bedwarf.h \
+       be/beuses.h \
+       be/bedwarf_t.h \
        common/debug.h \
        common/error.h \
        common/irtools.h \
        debug/dbginfo_t.h \
        debug/debugger.h \
        ident/ident_t.h \
-       ir/instrument.h \
+       ir/irflag_t.def \
        ir/irargs_t.h \
-       ir/irbitset.h \
+       ir/instrument.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/irgraph_t.h \
+       ir/iredgeset.h \
        ir/irmode_t.h \
        ir/irnode_t.h \
+       ir/irnodeset.h \
+       ir/gen_irnode.h \
        ir/irop_t.h \
        ir/iropt_t.h \
-       ir/irphase_t.h \
-       ir/irprintf_t.h \
        ir/irprog_t.h \
-       ir/irlinkednodemap.h \
-       ir/irlinkednodeset.h \
        ir/irnodemap.h \
-       ir/irnodeset.h \
        ir/irpass_t.h \
-       ir/irphase.h \
-       ir/irprofile.h \
+       ir/irnodehashmap.h \
        ir/irtypes.h \
        ir/irverify_t.h \
+       ir/irprofile.h \
        ir/valueset.h \
-       ir/gen_irnode.h \
        libcore/lc_appendable.h \
-       libcore/lc_common_t.h \
-       libcore/lc_config.h \
        libcore/lc_opts.h \
-       libcore/lc_defines.h \
        libcore/lc_opts_enum.h \
        libcore/lc_opts_t.h \
        libcore/lc_printf.h \
        libcore/lc_printf_arg_types.def \
-       opt/opt_polymorphy.h \
+       lower/lower_alloc.h \
+       lower/lower_builtins.h \
+       lower/lower_calls.h \
+       lower/lower_dw.h \
+       lower/lower_mode_b.h \
+       lower/lower_softfloat.h \
+       lpp/lpp.h \
+       lpp/lpp_comm.h \
+       lpp/lpp_cplex.h \
+       lpp/lpp_gurobi.h \
+       lpp/lpp_net.h \
+       lpp/lpp_solvers.h \
+       lpp/lpp_t.h \
+       lpp/mps.h \
+       lpp/sp_matrix.h \
+       opt/iropt_dbg.h \
        opt/reassoc_t.h \
        opt/scalar_replace.h \
-       opt/iropt_dbg.h \
        opt/opt_init.h \
        stat/counter.h \
        stat/dags.h \
@@ -370,14 +382,13 @@ EXTRA_DIST = \
        stat/pattern_dmp.h \
        stat/stat_dmp.h \
        stat/stat_timing.h \
-       stat/statev.h \
-       tr/compound_path_t.h \
+       stat/statev_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/strcalc.h \
        kaps/brute_force.h \
        kaps/bucket.h \
        kaps/bucket_t.h \
@@ -397,14 +408,12 @@ EXTRA_DIST = \
        kaps/vector.h \
        kaps/vector_t.h \
        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 \
-       be/scripts/generate_emitter_new.pl \
+       ir/gen_irio.inl \
+       ir/gen_irnode.c.inl \
+       ir/gen_irdump.c.inl \
+       adt/hashset.c.inl \
        be/scripts/generate_emitter.pl \
-       be/scripts/generate_machine.pl \
        be/scripts/generate_new_opcodes.pl \
        be/scripts/generate_regalloc_if.pl
 
@@ -426,8 +435,6 @@ ia32_sources = \
 ia32_built_sources = \
        be/ia32/gen_ia32_emitter.c \
        be/ia32/gen_ia32_emitter.h \
-       be/ia32/gen_ia32_machine.c \
-       be/ia32/gen_ia32_machine.h \
        be/ia32/gen_ia32_new_nodes.c.inl \
        be/ia32/gen_ia32_new_nodes.h \
        be/ia32/gen_ia32_regalloc_if.c \
@@ -460,10 +467,6 @@ $(srcdir)/be/ia32/gen_ia32_emitter.c $(srcdir)/be/ia32/gen_ia32_emitter.h: \
                be/ia32/ia32_spec.pl be/scripts/generate_emitter.pl
        $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
 
-$(srcdir)/be/ia32/gen_ia32_machine.c $(srcdir)/be/ia32/gen_ia32_machine.h: \
-               be/ia32/ia32_spec.pl be/scripts/generate_machine.pl
-       $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
-
 $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.h: \
                be/ia32/ia32_spec.pl be/scripts/generate_regalloc_if.pl
        $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
@@ -481,8 +484,6 @@ arm_sources = \
 arm_built_sources = \
        be/arm/gen_arm_emitter.c \
        be/arm/gen_arm_emitter.h \
-       be/arm/gen_arm_machine.c \
-       be/arm/gen_arm_machine.h \
        be/arm/gen_arm_new_nodes.c.inl \
        be/arm/gen_arm_new_nodes.h \
        be/arm/gen_arm_regalloc_if.c \
@@ -511,28 +512,24 @@ $(srcdir)/be/arm/gen_arm_emitter.c $(srcdir)/be/arm/gen_arm_emitter.h: \
                be/arm/arm_spec.pl be/scripts/generate_emitter.pl
        $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
 
-$(srcdir)/be/arm/gen_arm_machine.c $(srcdir)/be/arm/gen_arm_machine.h: \
-               be/arm/arm_spec.pl be/scripts/generate_machine.pl
-       $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
-
 $(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
+               be/arm/arm_spec.pl be/scripts/generate_regalloc_if.pl
        $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
 
 # sparc backend
 
 sparc_sources = \
-       be/sparc/sparc_emitter.c \
-       be/sparc/sparc_new_nodes.c \
-       be/sparc/sparc_transform.c \
+       be/sparc/bearch_sparc.c \
        be/sparc/sparc_cconv.c \
+       be/sparc/sparc_emitter.c \
        be/sparc/sparc_finish.c \
-       be/sparc/bearch_sparc.c
+       be/sparc/sparc_lower64.c \
+       be/sparc/sparc_new_nodes.c \
+       be/sparc/sparc_stackframe.c \
+       be/sparc/sparc_transform.c
 sparc_built_sources = \
        be/sparc/gen_sparc_emitter.c \
        be/sparc/gen_sparc_emitter.h \
-       be/sparc/gen_sparc_machine.c \
-       be/sparc/gen_sparc_machine.h \
        be/sparc/gen_sparc_new_nodes.c.inl \
        be/sparc/gen_sparc_new_nodes.h \
        be/sparc/gen_sparc_regalloc_if.c \
@@ -558,12 +555,8 @@ $(srcdir)/be/sparc/gen_sparc_emitter.c $(srcdir)/be/sparc/gen_sparc_emitter.h: \
                be/sparc/sparc_spec.pl be/scripts/generate_emitter.pl
        $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
 
-$(srcdir)/be/sparc/gen_sparc_machine.c $(srcdir)/be/sparc/gen_sparc_machine.h: \
-               be/sparc/sparc_spec.pl be/scripts/generate_machine.pl
-       $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
-
 $(srcdir)/be/sparc/gen_sparc_regalloc_if.c $(srcdir)/be/sparc/gen_sparc_regalloc_if.h: \
-               be/sparc/sparc_spec.pl be/scripts/generate_machine.pl
+               be/sparc/sparc_spec.pl be/scripts/generate_regalloc_if.pl
        $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
 
 # amd64 backend
@@ -576,8 +569,6 @@ amd64_sources = \
 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 \
@@ -602,12 +593,8 @@ $(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
+               be/amd64/amd64_spec.pl be/scripts/generate_regalloc_if.pl
        $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
 
 
@@ -621,8 +608,6 @@ TEMPLATE_sources = \
 TEMPLATE_built_sources = \
        be/TEMPLATE/gen_TEMPLATE_emitter.c \
        be/TEMPLATE/gen_TEMPLATE_emitter.h \
-       be/TEMPLATE/gen_TEMPLATE_machine.c \
-       be/TEMPLATE/gen_TEMPLATE_machine.h \
        be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
        be/TEMPLATE/gen_TEMPLATE_new_nodes.h \
        be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
@@ -647,10 +632,6 @@ $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_
                be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
        $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
 
-$(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.h: \
-               be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
-       $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
-
 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
-               be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
+               be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_regalloc_if.pl
        $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE