summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beinsn_t.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-24 14:00:57 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-24 14:00:57 +0100
commitaaccd82768a2bacca144fe49a1989dc7903ed55f (patch)
treeed331f116cfc2509a8d4d8e2d17630b9e6d1520b /ir/be/beinsn_t.h
parentd728669e02f4f54979e4795de1aac64bfbc972fa (diff)
be: Remove the indirection via chordal_scan_insn() to be_scan_insn().
Diffstat (limited to 'ir/be/beinsn_t.h')
-rw-r--r--ir/be/beinsn_t.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/ir/be/beinsn_t.h b/ir/be/beinsn_t.h
index 24e6138..40aca02 100644
--- a/ir/be/beinsn_t.h
+++ b/ir/be/beinsn_t.h
@@ -30,11 +30,11 @@
#include "obst.h"
#include "bearch.h"
+#include "bechordal.h"
#include "beirg.h"
typedef struct be_operand_t be_operand_t;
typedef struct be_insn_t be_insn_t;
-typedef struct be_insn_env_t be_insn_env_t;
struct be_operand_t {
ir_node *irn; /**< Firm node of the insn this operand belongs to */
@@ -59,15 +59,14 @@ struct be_insn_t {
unsigned pre_colored : 1; /**< all defined values already have a register assigned */
};
-struct be_insn_env_t {
- struct obstack *obst;
- const arch_register_class_t *cls;
- bitset_t *allocatable_regs;
-};
-
-#define be_insn_n_defs(insn) ((insn)->use_start)
-#define be_insn_n_uses(insn) ((insn)->n_ops - (insn)->use_start)
-
-be_insn_t *be_scan_insn(const be_insn_env_t *env, ir_node *irn);
+/**
+ * Create a be_insn_t for an IR node.
+ *
+ * @param env the insn construction environment
+ * @param irn the irn for which the be_insn should be build
+ *
+ * @return the be_insn for the IR node
+ */
+be_insn_t *be_scan_insn(be_chordal_env_t const *env, ir_node *irn);
#endif /* FIRM_BE_BEINSN_T_H */