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
1872920c
Commit
1872920c
authored
Sep 10, 2008
by
Michael Beck
Browse files
arch_register_class_put() is only used locally
[r21805]
parent
ae111327
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/bearch.c
View file @
1872920c
...
...
@@ -49,14 +49,17 @@ arch_env_t *arch_env_init(const arch_isa_if_t *isa_if, FILE *file_handle, be_mai
return
arch_env
;
}
int
arch_register_class_put
(
const
arch_register_class_t
*
cls
,
bitset_t
*
bs
)
/**
* Put all registers in a class into a bitset.
* @param cls The class.
* @param bs The bitset. May be NULL.
* @return The number of registers in the class.
*/
static
int
arch_register_class_put
(
const
arch_register_class_t
*
cls
,
bitset_t
*
bs
)
{
if
(
bs
)
{
int
i
,
n
;
for
(
i
=
0
,
n
=
cls
->
n_regs
;
i
<
n
;
++
i
)
bitset_set
(
bs
,
i
);
}
int
i
,
n
;
for
(
i
=
0
,
n
=
cls
->
n_regs
;
i
<
n
;
++
i
)
bitset_set
(
bs
,
i
);
return
cls
->
n_regs
;
}
...
...
ir/be/bearch.h
View file @
1872920c
...
...
@@ -64,14 +64,6 @@ typedef enum arch_register_type_t {
bestate code */
}
arch_register_type_t
;
/**
* Put all registers in a class into a bitset.
* @param cls The class.
* @param bs The bitset. May be NULL.
* @return The number of registers in the class.
*/
extern
int
arch_register_class_put
(
const
arch_register_class_t
*
cls
,
bitset_t
*
bs
);
typedef
enum
arch_operand_type_t
{
arch_operand_type_invalid
,
arch_operand_type_memory
,
...
...
Write
Preview
Supports
Markdown
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