X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fcommon%2Ffirm.h;h=e8d3217bdbdd43fbd015a4ba734b152b5033d211;hb=af64fb525b556cb9550c8ef9c209993dae294f01;hp=1532158ab22d95689485eca4aa146e9a03420b85;hpb=867ed2f22a1063f47f8a23afcf1d0f6b905ed514;p=libfirm diff --git a/ir/common/firm.h b/ir/common/firm.h index 1532158ab..e8d3217bd 100644 --- a/ir/common/firm.h +++ b/ir/common/firm.h @@ -81,7 +81,12 @@ extern "C" { #include "scalar_replace.h" /* Scalar replacement */ #include "proc_cloning.h" /* procedure cloning */ #include "opt_confirms.h" /* Confirm based optimizations */ -//#include "opt_branches.h" /* Branch optimizations */ +#include "gvn_pre.h" /* global value numbering and partial redundancy elimination */ +#include "opt_frame.h" /* frame type optimization */ + +/* Lowering */ +#include "lower_calls.h" /* lowering of different calls */ +#include "lower_intrinsics.h" /* lowering of intrinsic calls */ /* Analyses */ #include "irouts.h" /* Graph reversal / out edges. */ @@ -216,6 +221,17 @@ struct _firm_parameter_t { typedef struct _firm_parameter_t firm_parameter_t; +#define libFirm_VERSION_MAJOR 0 +#define libFirm_VERSION_MINOR 4 + +/** + * The Firm version number. + */ +typedef struct _firm_version_t { + unsigned major; + unsigned minor; +} firm_version_t; + /** * Initialize the firm library. * @@ -234,6 +250,12 @@ void init_firm(const firm_parameter_t *params); */ void free_firm(void); +/** + * Returns the libFirm version number. + * If statically linked, always libFirm_VERSION_MAJOR, libFirm_VERSION_MINOR + */ +void firm_get_version(firm_version_t *version); + #ifdef __cplusplus } #endif