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
897fa789
Commit
897fa789
authored
Apr 19, 2004
by
Michael Beck
Browse files
first statistic hooks added
[r2681]
parent
08bee9fa
Changes
4
Hide whitespace changes
Inline
Side-by-side
ir/ir/Makefile.in
View file @
897fa789
...
@@ -32,7 +32,8 @@ include $(topdir)/MakeRules
...
@@ -32,7 +32,8 @@ include $(topdir)/MakeRules
CPPFLAGS
+=
-I
$(top_srcdir)
/ir/adt
-I
$(top_srcdir)
/ir/ir
-I
$(top_srcdir)
/ir/common
\
CPPFLAGS
+=
-I
$(top_srcdir)
/ir/adt
-I
$(top_srcdir)
/ir/ir
-I
$(top_srcdir)
/ir/common
\
-I
$(top_srcdir)
/ir/ident
-I
$(top_srcdir)
/ir/tr
-I
$(top_srcdir)
/ir/tv
\
-I
$(top_srcdir)
/ir/ident
-I
$(top_srcdir)
/ir/tr
-I
$(top_srcdir)
/ir/tv
\
-I
$(top_srcdir)
/ir/debug
-I
$(top_srcdir)
/ir/ana
-I
$(top_srcdir)
/ir/st
-I
$(top_srcdir)
/ir/debug
-I
$(top_srcdir)
/ir/ana
-I
$(top_srcdir)
/ir/st
\
-I
$(top_srcdir)
/ir/stat
include
$(top_srcdir)/MakeTargets
include
$(top_srcdir)/MakeTargets
...
...
ir/ir/irgmod.c
View file @
897fa789
...
@@ -102,9 +102,10 @@ void collect_phiprojs(ir_graph *irg) {
...
@@ -102,9 +102,10 @@ void collect_phiprojs(ir_graph *irg) {
/* Functionality for part_block */
/* Functionality for part_block */
/*--------------------------------------------------------------------*/
/*--------------------------------------------------------------------*/
/* Moves node and all predecessors of node from from_bl to to_bl.
/**
Does not move predecessors of Phi nodes (or block nodes). */
* Moves node and all predecessors of node from from_bl to to_bl.
* Does not move predecessors of Phi nodes (or block nodes).
*/
static
void
move
(
ir_node
*
node
,
ir_node
*
from_bl
,
ir_node
*
to_bl
)
{
static
void
move
(
ir_node
*
node
,
ir_node
*
from_bl
,
ir_node
*
to_bl
)
{
int
i
;
int
i
;
ir_node
*
proj
,
*
pred
;
ir_node
*
proj
,
*
pred
;
...
...
ir/ir/irnode.c
View file @
897fa789
...
@@ -25,9 +25,10 @@
...
@@ -25,9 +25,10 @@
#include "irdump.h"
#include "irdump.h"
#include "irflag_t.h"
#include "irflag_t.h"
#include "irop_t.h"
#include "irop_t.h"
#include "irprog_t.h"
#include "irprog_t.h"
#include "firmstat.h"
/* some constants fixing the positions of nodes predecessors
/* some constants fixing the positions of nodes predecessors
in the in array */
in the in array */
#define CALL_PARAM_OFFSET 2
#define CALL_PARAM_OFFSET 2
...
@@ -135,6 +136,8 @@ new_ir_node (dbg_info *db, ir_graph *irg, ir_node *block, ir_op *op, ir_mode *mo
...
@@ -135,6 +136,8 @@ new_ir_node (dbg_info *db, ir_graph *irg, ir_node *block, ir_op *op, ir_mode *mo
res
->
node_nr
=
get_irp_new_node_nr
();
res
->
node_nr
=
get_irp_new_node_nr
();
#endif
#endif
stat_new_node
(
res
);
return
res
;
return
res
;
}
}
...
...
ir/ir/irop.c
View file @
897fa789
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
# include "irop_t.h"
# include "irop_t.h"
# include "irnode_t.h"
# include "irnode_t.h"
# include "firmstat.h"
# include "xmalloc.h"
# include "xmalloc.h"
...
@@ -97,10 +98,12 @@ new_ir_op(opcode code, const char *name, op_pinned p, unsigned flags, op_arity o
...
@@ -97,10 +98,12 @@ new_ir_op(opcode code, const char *name, op_pinned p, unsigned flags, op_arity o
res
->
op_index
=
op_index
;
res
->
op_index
=
op_index
;
firm_set_default_operations
(
res
);
firm_set_default_operations
(
res
);
stat_new_ir_op
(
res
);
return
res
;
return
res
;
}
}
void
free_ir_op
(
ir_op
*
code
)
{
void
free_ir_op
(
ir_op
*
code
)
{
stat_free_ir_op
(
code
);
free
(
code
);
free
(
code
);
}
}
...
...
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