Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
5972dc5c
Commit
5972dc5c
authored
Dec 20, 2015
by
Matthias Braun
Browse files
amd64: Remove unused op_mode
parent
c73878f8
Changes
4
Hide whitespace changes
Inline
Side-by-side
ir/be/amd64/amd64_emitter.c
View file @
5972dc5c
...
...
@@ -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
(
'*'
);
...
...
ir/be/amd64/amd64_new_nodes.c
View file @
5972dc5c
...
...
@@ -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"
;
...
...
ir/be/amd64/amd64_new_nodes.h
View file @
5972dc5c
...
...
@@ -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
)
...
...
ir/be/amd64/amd64_nodes_attr.h
View file @
5972dc5c
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment