#include "ident_t.h"
#include "firm.h"
#include "irflag_t.h"
-/* init functions are not public */
#include "tv_t.h"
#include "tpop_t.h"
#include "irprog_t.h"
#include "irgraph_t.h"
#include "type_t.h"
#include "entity_t.h"
-#include "opt_inline_t.h"
-#include "scalar_replace.h"
#include "firmstat.h"
#include "irarch.h"
-#include "reassoc_t.h"
-#include "funccall_t.h"
#include "irhooks.h"
#include "iredges_t.h"
#include "irmemory_t.h"
-#include "tropt.h"
+#include "opt_init.h"
#include "debugger.h"
#include "be_t.h"
+#include "irtools.h"
/* returns the firm root */
-lc_opt_entry_t *firm_opt_get_root(void) {
+lc_opt_entry_t *firm_opt_get_root(void)
+{
static lc_opt_entry_t *grp = NULL;
if (!grp)
grp = lc_opt_get_grp(lc_opt_root_grp(), "firm");
firm_init_flags();
/* initialize all ident stuff */
init_ident(def_params.id_if, 1024);
- /* initialize Firm hooks */
- firm_init_hooks();
/* enhanced statistics, need idents and hooks */
firm_init_stat(def_params.enable_statistics);
/* Edges need hooks. */
later. */
init_irprog_2();
/* Initialize the type module and construct some idents needed. */
- firm_init_type(def_params.builtin_dbg, def_params.cc_mask);
+ firm_init_type(def_params.cc_mask);
/* initialize the entity module */
firm_init_entity();
- /* allocate a hash table. */
- init_type_identify(def_params.ti_if);
/* class cast optimization */
firm_init_class_casts_opt();
/* memory disambiguation */
firm_init_memory_disambiguator();
+ firm_init_loop_opt();
/* Init architecture dependent optimizations. */
arch_dep_init(arch_dep_default_factory);
arch_dep_set_opts(0);
+ init_irnode();
+
#ifdef DEBUG_libfirm
/* integrated debugger extension */
firm_init_debugger();