aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--linearize.h8
-rw-r--r--simplify.c7
2 files changed, 8 insertions, 7 deletions
diff --git a/linearize.h b/linearize.h
index 413bf013..5eb9562e 100644
--- a/linearize.h
+++ b/linearize.h
@@ -290,6 +290,14 @@ struct basic_block {
};
+//
+// return the opcode of the instruction defining ``SRC`` if existing
+// and OP_BADOP if not. It also assigns the defining instruction
+// to ``DEF``.
+#define DEF_OPCODE(DEF, SRC) \
+ (((SRC)->type == PSEUDO_REG && (DEF = (SRC)->def)) ? DEF->opcode : OP_BADOP)
+
+
static inline void add_bb(struct basic_block_list **list, struct basic_block *bb)
{
add_ptr_list(list, bb);
diff --git a/simplify.c b/simplify.c
index 52910876..e9995a54 100644
--- a/simplify.c
+++ b/simplify.c
@@ -417,13 +417,6 @@ static inline int def_opcode(pseudo_t p)
return p->def->opcode;
}
-//
-// return the opcode of the instruction defining ``SRC`` if existing
-// and OP_BADOP if not. It also assigns the defining instruction
-// to ``DEF``.
-#define DEF_OPCODE(DEF, SRC) \
- (((SRC)->type == PSEUDO_REG && (DEF = (SRC)->def)) ? DEF->opcode : OP_BADOP)
-
static unsigned int value_size(long long value)
{
value >>= 8;