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
ab4368f4
Commit
ab4368f4
authored
Mar 01, 2016
by
Christoph Mallon
Browse files
be: Allow creation of Copy nodes with debug info.
parent
1a7bc837
Changes
2
Show whitespace changes
Inline
Side-by-side
ir/be/benode.c
View file @
ab4368f4
...
@@ -211,16 +211,20 @@ static void set_copy_info(ir_node *const irn, ir_graph *const irg, ir_node *cons
...
@@ -211,16 +211,20 @@ static void set_copy_info(ir_node *const irn, ir_graph *const irg, ir_node *cons
arch_set_irn_register_req_out
(
irn
,
0
,
out_req
);
arch_set_irn_register_req_out
(
irn
,
0
,
out_req
);
}
}
ir_node
*
be_new_Copy
(
ir_node
*
bl
,
ir_node
*
op
)
ir_node
*
be_new_
d_
Copy
(
dbg_info
*
const
dbgi
,
ir_node
*
const
block
,
ir_node
*
const
op
)
{
{
ir_graph
*
irg
=
get_irn_irg
(
bl
);
ir_graph
*
const
irg
=
get_irn_irg
(
block
);
ir_node
*
in
[]
=
{
op
};
ir_node
*
const
in
[]
=
{
op
};
ir_node
*
res
=
new_ir_node
(
NULL
,
irg
,
bl
,
op_be_Copy
,
get_irn_mode
(
op
),
ir_node
*
const
res
=
new_ir_node
(
dbgi
,
irg
,
block
,
op_be_Copy
,
get_irn_mode
(
op
),
ARRAY_SIZE
(
in
),
in
);
ARRAY_SIZE
(
in
),
in
);
set_copy_info
(
res
,
irg
,
op
,
arch_irn_flags_none
);
set_copy_info
(
res
,
irg
,
op
,
arch_irn_flags_none
);
return
res
;
return
res
;
}
}
ir_node
*
be_new_Copy
(
ir_node
*
const
bl
,
ir_node
*
const
op
)
{
return
be_new_d_Copy
(
NULL
,
bl
,
op
);
}
ir_node
*
be_get_Copy_op
(
const
ir_node
*
cpy
)
ir_node
*
be_get_Copy_op
(
const
ir_node
*
cpy
)
{
{
return
get_irn_n
(
cpy
,
n_be_Copy_op
);
return
get_irn_n
(
cpy
,
n_be_Copy_op
);
...
...
ir/be/benode.h
View file @
ab4368f4
...
@@ -75,6 +75,7 @@ enum {
...
@@ -75,6 +75,7 @@ enum {
/**
/**
* Make a new Copy node.
* Make a new Copy node.
*/
*/
ir_node
*
be_new_d_Copy
(
dbg_info
*
dbgi
,
ir_node
*
block
,
ir_node
*
op
);
ir_node
*
be_new_Copy
(
ir_node
*
block
,
ir_node
*
in
);
ir_node
*
be_new_Copy
(
ir_node
*
block
,
ir_node
*
in
);
/** Returns the Copy Argument. */
/** Returns the Copy Argument. */
ir_node
*
be_get_Copy_op
(
const
ir_node
*
cpy
);
ir_node
*
be_get_Copy_op
(
const
ir_node
*
cpy
);
...
...
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