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
c4f6f664
Commit
c4f6f664
authored
Jun 14, 2005
by
Sebastian Hack
Browse files
Added classify wrapper function.
parent
da5841fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/bearch.c
View file @
c4f6f664
...
...
@@ -149,3 +149,9 @@ extern void arch_set_irn_register(const arch_env_t *env,
assert
(
idx
>=
0
);
ops
->
set_irn_reg
(
ops
,
irn
,
idx
,
reg
);
}
extern
arch_irn_class_t
arch_irn_classify
(
const
arch_env_t
*
env
,
const
ir_node
*
irn
)
{
const
arch_irn_ops_t
*
ops
=
get_irn_ops
(
env
,
irn
);
return
ops
->
classify
(
ops
,
irn
);
}
ir/be/bearch.h
View file @
c4f6f664
...
...
@@ -392,6 +392,14 @@ arch_get_irn_register(const arch_env_t *env, const ir_node *irn, int idx);
extern
void
arch_set_irn_register
(
const
arch_env_t
*
env
,
ir_node
*
irn
,
int
idx
,
const
arch_register_t
*
reg
);
/**
* Classify a node.
* @param env The architecture environment.
* @param irn The node.
* @return A classification of the node.
*/
extern
arch_irn_class_t
arch_irn_classify
(
const
arch_env_t
*
env
,
const
ir_node
*
irn
);
#define arch_irn_has_reg_class(env, irn, pos, cls) \
((cls) == arch_get_irn_reg_class(env, irn, pos))
...
...
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