Commit da5841fc authored by Sebastian Hack's avatar Sebastian Hack
Browse files

Added irn class branch and dummy firm backend implementation

parent 2cff35bf
......@@ -194,7 +194,8 @@ typedef enum _arch_irn_class_t {
arch_irn_class_spill,
arch_irn_class_reload,
arch_irn_class_copy,
arch_irn_class_perm
arch_irn_class_perm,
arch_irn_class_branch
} arch_irn_class_t;
/*
......
......@@ -149,7 +149,18 @@ static const arch_register_t *firm_get_irn_reg(const arch_irn_ops_t *self,
static arch_irn_class_t firm_classify(const arch_irn_ops_t *self, const ir_node *irn)
{
return arch_irn_class_normal;
arch_irn_class_t res;
switch(get_irn_opcode(irn)) {
case iro_Cond:
case iro_Jmp:
res = arch_irn_class_branch;
break;
default:
res = arch_irn_class_normal;
}
return res;
}
static const arch_irn_ops_t irn_ops = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment