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
11c8428b
Commit
11c8428b
authored
Oct 20, 2011
by
Matthias Braun
Browse files
irmode: remove support for exotic arithmetics
parent
a53a89cf
Changes
3
Show whitespace changes
Inline
Side-by-side
include/libfirm/irmode.h
View file @
11c8428b
...
...
@@ -83,19 +83,9 @@ typedef enum ir_mode_arithmetic {
irma_twos_complement
=
2
,
/**< Values of the mode are represented as two's
complement. Only legal for modes of sort
int_number and reference. */
irma_ones_complement
,
/**< Values of the mode are represented as one's
complement. Only legal for modes of sort
int_number and reference. */
irma_int_BCD
,
/**< Values of the mode are represented as binary
coded decimals. Only legal for modes of sort
int_number and reference. */
irma_ieee754
=
256
,
/**< Values of the mode are represented according
to ieee754 floating point standard. Only
legal for modes of sort float_number. */
irma_float_BCD
,
/**< Values of the mode are represented as binary
coded decimals according to @@@ which
standards??? Only legal for modes of sort
float_number. */
irma_max
}
ir_mode_arithmetic
;
...
...
ir/ir/irio.c
View file @
11c8428b
...
...
@@ -247,10 +247,7 @@ static void symtbl_init(void)
INSERTENUM
(
tt_mode_arithmetic
,
irma_uninitialized
);
INSERTENUM
(
tt_mode_arithmetic
,
irma_none
);
INSERTENUM
(
tt_mode_arithmetic
,
irma_twos_complement
);
INSERTENUM
(
tt_mode_arithmetic
,
irma_ones_complement
);
INSERTENUM
(
tt_mode_arithmetic
,
irma_int_BCD
);
INSERTENUM
(
tt_mode_arithmetic
,
irma_ieee754
);
INSERTENUM
(
tt_mode_arithmetic
,
irma_float_BCD
);
INSERTENUM
(
tt_pin_state
,
op_pin_state_floats
);
INSERTENUM
(
tt_pin_state
,
op_pin_state_pinned
);
...
...
ir/ir/irmode.c
View file @
11c8428b
...
...
@@ -54,10 +54,7 @@ const char *get_mode_arithmetic_name(ir_mode_arithmetic ari)
X
(
irma_uninitialized
);
X
(
irma_none
);
X
(
irma_twos_complement
);
X
(
irma_ones_complement
);
X
(
irma_int_BCD
);
X
(
irma_ieee754
);
X
(
irma_float_BCD
);
default:
return
"<unknown>"
;
}
#undef X
...
...
@@ -931,7 +928,7 @@ int is_reinterpret_cast(const ir_mode *src, const ir_mode *dst)
if
(
ma
!=
get_mode_arithmetic
(
dst
))
return
0
;
return
ma
==
irma_twos_complement
||
ma
==
irma_ones_complement
;
return
ma
==
irma_twos_complement
;
}
ir_type
*
(
get_type_for_mode
)
(
const
ir_mode
*
mode
)
...
...
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