2 * Copyright (C) 1995-2011 University of Karlsruhe. All right reserved.
4 * This file is part of libFirm.
6 * This file may be distributed and/or modified under the terms of the
7 * GNU General Public License version 2 as published by the Free Software
8 * Foundation and appearing in the file LICENSE.GPL included in the
9 * packaging of this file.
11 * Licensees holding valid libFirm Professional Edition licenses may use
12 * this file in accordance with the libFirm Commercial License.
13 * Agreement provided with the Software.
15 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * @brief Central firm functionality.
23 * @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier
27 #ifdef HAVE_FIRM_REVISION_H
28 # include "firm_revision.h"
45 #include "irgraph_t.h"
51 #include "iredges_t.h"
52 #include "irmemory_t.h"
57 #include "execfreq_t.h"
58 #include "firmstat_t.h"
60 /* returns the firm root */
61 lc_opt_entry_t *firm_opt_get_root(void)
63 static lc_opt_entry_t *grp = NULL;
65 grp = lc_opt_get_grp(lc_opt_root_grp(), "firm");
71 /* for historical reasons be_init must be run first */
74 /* initialize firm flags */
76 /* initialize all ident stuff */
78 /* Edges need hooks. */
80 /* create the type kinds. */
82 /* create an obstack and put all tarvals in a pdeq */
83 init_tarval_1(0l, /* support_quad_precision */0);
84 /* Builds a basic program representation, so modes can be added. */
86 /* initialize all modes an ir node can consist of */
88 /* initialize tarvals, and floating point arithmetic */
90 /* initialize node opcodes */
92 /* init graph construction */
94 /* kind of obstack initialization */
96 /* initialize reassociation */
97 firm_init_reassociation();
98 /* initialize function call optimization */
99 firm_init_funccalls();
100 /* initialize function inlining */
102 /* initialize scalar replacement */
103 firm_init_scalar_replace();
104 /* Builds a construct allowing to access all information to be constructed
107 /* memory disambiguation */
108 firm_init_memory_disambiguator();
109 firm_init_loop_opt();
111 /* Init architecture dependent optimizations. */
112 arch_dep_set_opts(arch_dep_none);
119 /* integrated debugger extension */
120 firm_init_debugger();
127 firm_finish_debugger();
137 firm_finish_mangle();
141 unsigned ir_get_version_major(void)
143 return libfirm_VERSION_MAJOR;
146 unsigned ir_get_version_minor(void)
148 return libfirm_VERSION_MINOR;
151 const char *ir_get_version_revision(void)
153 #ifdef libfirm_VERSION_REVISION
154 return libfirm_VERSION_REVISION;
160 const char *ir_get_version_build(void)