@@ -21,7 +21,6 @@ extern int simplify_cfg_early(struct entrypoint *ep);
extern void convert_instruction_target(struct instruction *insn, pseudo_t src);
extern void remove_dead_insns(struct entrypoint *);
-extern int simplify_instruction(struct instruction *);
extern void kill_bb(struct basic_block *);
extern void kill_use(pseudo_t *);
@@ -12,6 +12,7 @@
#include "flowgraph.h"
#include "linearize.h"
#include "liveness.h"
+#include "simplify.h"
#include "flow.h"
#include "cse.h"
#include "ir.h"
@@ -44,6 +44,7 @@
#include "parse.h"
#include "expression.h"
#include "linearize.h"
+#include "simplify.h"
#include "flow.h"
#include "symbol.h"
new file mode 100644
@@ -0,0 +1,8 @@
+#ifndef SIMPLIFY_H
+#define SIMPLIFY_H
+
+#include "linearize.h"
+
+int simplify_instruction(struct instruction *insn);
+
+#endif
The few external functions defined in simplify.h are declared in flow.h (for historical reasons). In preparation for some changes, create a specific headers for these. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- flow.h | 1 - optimize.c | 1 + simplify.c | 1 + simplify.h | 8 ++++++++ 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 simplify.h