Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
2d810a89
Commit
2d810a89
authored
Feb 24, 2014
by
Matthias Braun
Browse files
remove unused/unnecessary link field from mode.
parent
a74f1f4d
Changes
4
Hide whitespace changes
Inline
Side-by-side
include/libfirm/irmode.h
View file @
2d810a89
...
...
@@ -152,12 +152,6 @@ FIRM_API ir_mode_arithmetic get_mode_arithmetic(const ir_mode *mode);
*/
FIRM_API
unsigned
int
get_mode_modulo_shift
(
const
ir_mode
*
mode
);
/** Returns the stored intermediate information. */
FIRM_API
void
*
get_mode_link
(
const
ir_mode
*
mode
);
/** Stores new intermediate information. */
FIRM_API
void
set_mode_link
(
ir_mode
*
mode
,
void
*
l
);
/**
* Returns the smallest representable value of a given mode.
*
...
...
ir/ir/irmode.c
View file @
2d810a89
...
...
@@ -174,7 +174,6 @@ static ir_mode *alloc_mode(const char *name, ir_mode_sort sort,
mode_tmpl
->
sign
=
sign
?
1
:
0
;
mode_tmpl
->
modulo_shift
=
modulo_shift
;
mode_tmpl
->
arithmetic
=
arithmetic
;
mode_tmpl
->
link
=
NULL
;
return
mode_tmpl
;
}
...
...
@@ -296,16 +295,6 @@ unsigned int (get_mode_modulo_shift)(const ir_mode *mode)
return
get_mode_modulo_shift_
(
mode
);
}
void
*
(
get_mode_link
)(
const
ir_mode
*
mode
)
{
return
get_mode_link_
(
mode
);
}
void
(
set_mode_link
)(
ir_mode
*
mode
,
void
*
l
)
{
set_mode_link_
(
mode
,
l
);
}
ir_tarval
*
get_mode_min
(
const
ir_mode
*
mode
)
{
assert
(
mode_is_data
(
mode
));
...
...
ir/ir/irmode_t.h
View file @
2d810a89
...
...
@@ -24,8 +24,6 @@
#define get_mode_sign(mode) get_mode_sign_(mode)
#define get_mode_arithmetic(mode) get_mode_arithmetic_(mode)
#define get_mode_modulo_shift(mode) get_mode_modulo_shift_(mode)
#define get_mode_link(mode) get_mode_link_(mode)
#define set_mode_link(mode, l) set_mode_link_(mode, l)
#define mode_is_signed(mode) mode_is_signed_(mode)
#define mode_is_float(mode) mode_is_float_(mode)
#define mode_is_int(mode) mode_is_int_(mode)
...
...
@@ -59,10 +57,6 @@ static inline ir_mode_arithmetic get_mode_arithmetic_(const ir_mode *mode) { ret
static
inline
unsigned
int
get_mode_modulo_shift_
(
const
ir_mode
*
mode
)
{
return
mode
->
modulo_shift
;
}
static
inline
void
*
get_mode_link_
(
const
ir_mode
*
mode
)
{
return
mode
->
link
;
}
static
inline
void
set_mode_link_
(
ir_mode
*
mode
,
void
*
l
)
{
mode
->
link
=
l
;
}
/* Functions to check, whether a mode is signed, float, int, num, data.
For more exact definitions read the corresponding pages
in the firm documentation or the following enumeration
...
...
ir/ir/irtypes.h
View file @
2d810a89
...
...
@@ -165,7 +165,6 @@ struct ir_mode {
ir_tarval
*
all_one
;
/**< the value ~0 */
ir_mode
*
eq_signed
;
/**< For pointer modes, the equivalent signed integer one. */
ir_mode
*
eq_unsigned
;
/**< For pointer modes, the equivalent unsigned integer one. */
void
*
link
;
/**< To store some intermediate information */
};
/* note: we use "long" here because that is the type used for Proj-Numbers */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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