Commit 5972dc5c authored by Matthias Braun's avatar Matthias Braun
Browse files

amd64: Remove unused op_mode

parent c73878f8
......@@ -363,7 +363,6 @@ static void amd64_emit_am(const ir_node *const node, bool indirect_star)
goto emit_addr;
}
case AMD64_OP_ADDR:
case AMD64_OP_X87_ADDR:
case AMD64_OP_X87_ADDR_REG:
if (indirect_star)
be_emit_char('*');
......
......@@ -51,8 +51,6 @@ x87_attr_t *amd64_get_x87_attr(ir_node *const node)
switch (attr->op_mode) {
case AMD64_OP_X87:
return &get_amd64_x87_attr(node)->x87;
case AMD64_OP_X87_ADDR:
panic("TODO");
case AMD64_OP_X87_ADDR_REG:
return &get_amd64_x87_binop_addr_attr(node)->x87;
default:
......@@ -96,7 +94,6 @@ static const char *get_op_mode_string(amd64_op_mode_t mode)
case AMD64_OP_SHIFT_IMM: return "shift_imm";
case AMD64_OP_SHIFT_REG: return "shift_reg";
case AMD64_OP_X87: return "x87";
case AMD64_OP_X87_ADDR: return "x87+addr";
case AMD64_OP_X87_ADDR_REG: return "x87+addr+reg";
}
return "invalid op_mode";
......
......@@ -42,8 +42,7 @@ static inline bool amd64_has_addr_attr(const ir_node *node)
return amd64_has_binop_attr(node)
|| attr->op_mode == AMD64_OP_ADDR
|| attr->op_mode == AMD64_OP_REG
|| attr->op_mode == AMD64_OP_IMM32
|| attr->op_mode == AMD64_OP_X87_ADDR;
|| attr->op_mode == AMD64_OP_IMM32;
}
static inline amd64_addr_attr_t *get_amd64_addr_attr(ir_node *node)
......
......@@ -58,7 +58,6 @@ typedef enum {
AMD64_OP_SHIFT_REG,
AMD64_OP_SHIFT_IMM,
AMD64_OP_X87,
AMD64_OP_X87_ADDR,
AMD64_OP_X87_ADDR_REG,
} amd64_op_mode_t;
......
Markdown is supported
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