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
61af57b1
Commit
61af57b1
authored
May 22, 2007
by
Matthias Braun
Browse files
fix my last committ
[r13982]
parent
05b8d7e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
ir/be/TEMPLATE/TEMPLATE_new_nodes.c
View file @
61af57b1
...
@@ -223,7 +223,7 @@ static int TEMPLATE_dump_node(ir_node *n, FILE *F, dump_reason_t reason) {
...
@@ -223,7 +223,7 @@ static int TEMPLATE_dump_node(ir_node *n, FILE *F, dump_reason_t reason) {
const
TEMPLATE_attr_t
*
get_TEMPLATE_attr_const
(
const
ir_node
*
node
)
{
const
TEMPLATE_attr_t
*
get_TEMPLATE_attr_const
(
const
ir_node
*
node
)
{
assert
(
is_TEMPLATE_irn
(
node
)
&&
"need TEMPLATE node to get attributes"
);
assert
(
is_TEMPLATE_irn
(
node
)
&&
"need TEMPLATE node to get attributes"
);
return
(
TEMPLATE_attr_t
*
)
get_irn_generic_attr
(
node
);
return
(
const
TEMPLATE_attr_t
*
)
get_irn_generic_attr
_const
(
node
);
}
}
TEMPLATE_attr_t
*
get_TEMPLATE_attr
(
ir_node
*
node
)
{
TEMPLATE_attr_t
*
get_TEMPLATE_attr
(
ir_node
*
node
)
{
...
@@ -290,7 +290,7 @@ arch_irn_flags_t get_TEMPLATE_flags(const ir_node *node) {
...
@@ -290,7 +290,7 @@ arch_irn_flags_t get_TEMPLATE_flags(const ir_node *node) {
/**
/**
* Sets the register flag of an TEMPLATE node.
* Sets the register flag of an TEMPLATE node.
*/
*/
void
set_TEMPLATE_flags
(
const
ir_node
*
node
,
arch_irn_flags_t
flags
)
{
void
set_TEMPLATE_flags
(
ir_node
*
node
,
arch_irn_flags_t
flags
)
{
TEMPLATE_attr_t
*
attr
=
get_TEMPLATE_attr
(
node
);
TEMPLATE_attr_t
*
attr
=
get_TEMPLATE_attr
(
node
);
attr
->
flags
=
flags
;
attr
->
flags
=
flags
;
}
}
...
@@ -298,8 +298,16 @@ void set_TEMPLATE_flags(const ir_node *node, arch_irn_flags_t flags) {
...
@@ -298,8 +298,16 @@ void set_TEMPLATE_flags(const ir_node *node, arch_irn_flags_t flags) {
/**
/**
* Returns the result register slots of an TEMPLATE node.
* Returns the result register slots of an TEMPLATE node.
*/
*/
const
arch_register_t
**
get_TEMPLATE_slots
(
const
ir_node
*
node
)
{
const
arch_register_t
**
get_TEMPLATE_slots
(
ir_node
*
node
)
{
const
TEMPLATE_attr_t
*
attr
=
get_TEMPLATE_attr_const
(
node
);
TEMPLATE_attr_t
*
attr
=
get_TEMPLATE_attr_const
(
node
);
return
attr
->
slots
;
}
/**
* Returns the result register slots of an TEMPLATE node.
*/
const
arch_register_t
*
const
*
get_TEMPLATE_slots_const
(
const
ir_node
*
node
)
{
TEMPLATE_attr_t
*
attr
=
get_TEMPLATE_attr_const
(
node
);
return
attr
->
slots
;
return
attr
->
slots
;
}
}
...
...
ir/be/TEMPLATE/TEMPLATE_new_nodes.h
View file @
61af57b1
...
@@ -41,7 +41,9 @@
...
@@ -41,7 +41,9 @@
/**
/**
* Returns the attributes of an TEMPLATE node.
* Returns the attributes of an TEMPLATE node.
*/
*/
TEMPLATE_attr_t
*
get_TEMPLATE_attr
(
const
ir_node
*
node
);
TEMPLATE_attr_t
*
get_TEMPLATE_attr
(
ir_node
*
node
);
const
TEMPLATE_attr_t
*
get_TEMPLATE_attr_const
(
const
ir_node
*
node
);
/**
/**
* Returns the argument register requirements of an TEMPLATE node.
* Returns the argument register requirements of an TEMPLATE node.
...
@@ -81,12 +83,14 @@ arch_irn_flags_t get_TEMPLATE_flags(const ir_node *node);
...
@@ -81,12 +83,14 @@ arch_irn_flags_t get_TEMPLATE_flags(const ir_node *node);
/**
/**
* Sets the register flag of an TEMPLATE node.
* Sets the register flag of an TEMPLATE node.
*/
*/
void
set_TEMPLATE_flags
(
const
ir_node
*
node
,
arch_irn_flags_t
flags
);
void
set_TEMPLATE_flags
(
ir_node
*
node
,
arch_irn_flags_t
flags
);
/**
/**
* Returns the result register slots of an TEMPLATE node.
* Returns the result register slots of an TEMPLATE node.
*/
*/
const
arch_register_t
**
get_TEMPLATE_slots
(
const
ir_node
*
node
);
const
arch_register_t
**
get_TEMPLATE_slots
(
ir_node
*
node
);
const
arch_register_t
*
const
*
get_TEMPLATE_slots_const
(
const
ir_node
*
node
);
/**
/**
* Returns the name of the OUT register at position pos.
* Returns the name of the OUT register at position pos.
...
...
ir/be/TEMPLATE/bearch_TEMPLATE.c
View file @
61af57b1
...
@@ -134,7 +134,9 @@ static void TEMPLATE_set_irn_reg(const void *self, ir_node *irn, const arch_regi
...
@@ -134,7 +134,9 @@ static void TEMPLATE_set_irn_reg(const void *self, ir_node *irn, const arch_regi
}
}
}
}
static
const
arch_register_t
*
TEMPLATE_get_irn_reg
(
const
void
*
self
,
const
ir_node
*
irn
)
{
static
const
arch_register_t
*
TEMPLATE_get_irn_reg
(
const
void
*
self
,
const
ir_node
*
irn
)
{
int
pos
=
0
;
int
pos
=
0
;
const
arch_register_t
*
reg
=
NULL
;
const
arch_register_t
*
reg
=
NULL
;
...
@@ -144,8 +146,8 @@ static const arch_register_t *TEMPLATE_get_irn_reg(const void *self, const ir_no
...
@@ -144,8 +146,8 @@ static const arch_register_t *TEMPLATE_get_irn_reg(const void *self, const ir_no
}
}
if
(
is_TEMPLATE_irn
(
irn
))
{
if
(
is_TEMPLATE_irn
(
irn
))
{
const
arch_register_t
**
slots
;
const
arch_register_t
*
const
*
slots
;
slots
=
get_TEMPLATE_slots
(
irn
);
slots
=
get_TEMPLATE_slots
_const
(
irn
);
reg
=
slots
[
pos
];
reg
=
slots
[
pos
];
}
}
else
{
else
{
...
...
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