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
df9f7454
Commit
df9f7454
authored
Jul 22, 2004
by
Götz Lindenmaier
Browse files
more heapanalysis support
[r3556]
parent
818b9353
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/ir/irnode.c
View file @
df9f7454
...
...
@@ -352,6 +352,26 @@ void *
return
__get_irn_link
(
node
);
}
#ifdef DO_HEAPANALYSIS
/* Access the abstract interpretation information of a node.
Returns NULL if no such information is available. */
struct
abstval
*
get_irn_abst_value
(
ir_node
*
n
)
{
return
n
->
av
;
}
/* Set the abstract interpretation information of a node. */
void
set_irn_abst_value
(
ir_node
*
n
,
struct
abstval
*
os
)
{
n
->
av
=
os
;
}
struct
section
*
firm_get_irn_section
(
ir_node
*
n
)
{
return
n
->
sec
;
}
void
firm_set_irn_section
(
ir_node
*
n
,
struct
section
*
s
)
{
n
->
sec
=
s
;
}
#endif
/* DO_HEAPANALYSIS */
/* Outputs a unique number for this node */
long
get_irn_node_nr
(
const
ir_node
*
node
)
{
...
...
ir/ir/irnode_t.h
View file @
df9f7454
...
...
@@ -214,6 +214,10 @@ struct ir_node {
#endif
/* ------- For analyses -------- */
ir_loop
*
loop
;
/**< the loop the node is in. Access routines in irloop.h */
#ifdef DO_HEAPANALYSIS
struct
abstval
*
av
;
struct
section
*
sec
;
#endif
/* ------- Opcode depending fields -------- */
attr
attr
;
/**< attribute of this node. Depends on opcode.
Must be last field of struct ir_node. */
...
...
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