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
20a054e2
Commit
20a054e2
authored
Sep 17, 2007
by
Christoph Mallon
Browse files
Remove enum tarval_classification_t.
[r15839]
parent
506c6cca
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/libfirm/tv.h
View file @
20a054e2
...
...
@@ -561,16 +561,6 @@ char *get_tarval_bitpattern(tarval *tv);
*/
unsigned
char
get_tarval_sub_bits
(
tarval
*
tv
,
unsigned
byte_ofs
);
/**
* Return values of tarval classify
*/
typedef
enum
_tarval_classification_t
{
TV_CLASSIFY_NULL
=
0
,
/**< the tarval represents the additive neutral element */
TV_CLASSIFY_ONE
=
+
1
,
/**< the tarval represents the multiplicative neutral element */
TV_CLASSIFY_ALL_ONE
=
-
1
,
/**< the tarval represents the bitwise-and neutral element */
TV_CLASSIFY_OTHER
=
2
/**< all other tarvals */
}
tarval_classification_t
;
/**
* Returns non-zero if a given (integer) tarval has only one single bit
* set.
...
...
ir/ir/irnode_t.h
View file @
20a054e2
...
...
@@ -774,10 +774,10 @@ static INLINE cnst_classify_t _classify_Const(ir_node *node) {
if
(
op
==
op_Const
)
{
tarval
*
tv
=
_get_Const_tarval
(
node
);
if
(
tarval_is_null
(
tv
))
return
TV_CLASSIFY
_NULL
;
if
(
tarval_is_one
(
tv
))
return
TV_CLASSIFY
_ONE
;
if
(
tarval_is_all_one
(
tv
))
return
TV_CLASSIFY
_ALL_ONE
;
return
TV_CLASSIFY
_OTHER
;
if
(
tarval_is_null
(
tv
))
return
CNST
_NULL
;
if
(
tarval_is_one
(
tv
))
return
CNST
_ONE
;
if
(
tarval_is_all_one
(
tv
))
return
CNST
_ALL_ONE
;
return
CNST
_OTHER
;
}
else
if
(
op
==
op_SymConst
)
return
CNST_SYMCONST
;
...
...
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