add irgraph.h include
[libfirm] / ir / common / firm.h
index 0c9d6d8..c09faf1 100644 (file)
@@ -56,6 +56,7 @@ extern "C" {
 /* The representations */
 #include "firm_common.h"   /* common type tags. */
 #include "irprog.h"        /* control flow and data of a program */
+#include "irgraph.h"       /* graphs */
 #include "type.h"          /* type representation */
 #include "entity.h"        /* entity representation */
 #include "tv.h"            /* target values */
@@ -82,7 +83,11 @@ extern "C" {
 #include "proc_cloning.h"   /* procedure cloning */
 #include "opt_confirms.h"   /* Confirm based optimizations */
 #include "gvn_pre.h"        /* global value numbering and partial redundancy elimination */
-//#include "opt_branches.h"   /* Branch optimizations */
+#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. */
@@ -217,6 +222,17 @@ struct _firm_parameter_t {
 
 typedef struct _firm_parameter_t firm_parameter_t;
 
+#define libFirm_VERSION_MAJOR 1
+#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.
  *
@@ -235,6 +251,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