projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dump calling conventions for entities
[libfirm]
/
ir
/
ir
/
pseudo_irg.c
diff --git
a/ir/ir/pseudo_irg.c
b/ir/ir/pseudo_irg.c
index
1df6053
..
b17da30
100644
(file)
--- a/
ir/ir/pseudo_irg.c
+++ b/
ir/ir/pseudo_irg.c
@@
-24,13
+24,13
@@
#include "array.h"
#include "array.h"
-/*
*
Returns the number of pseudo graphs in the program. */
+/* Returns the number of pseudo graphs in the program. */
int get_irp_n_pseudo_irgs(void) {
assert (irp && irp->pseudo_graphs);
return ARR_LEN(irp->pseudo_graphs);
}
int get_irp_n_pseudo_irgs(void) {
assert (irp && irp->pseudo_graphs);
return ARR_LEN(irp->pseudo_graphs);
}
-/*
* Returns the number of pseudo graphs
in the program. */
+/*
Returns the pos'th pseudo graph
in the program. */
ir_graph *get_irp_pseudo_irg(int pos) {
assert(0 <= pos && pos <= get_irp_n_pseudo_irgs());
return irp->pseudo_graphs[pos];
ir_graph *get_irp_pseudo_irg(int pos) {
assert(0 <= pos && pos <= get_irp_n_pseudo_irgs());
return irp->pseudo_graphs[pos];
@@
-54,13
+54,15
@@
new_pseudo_ir_graph(entity *ent, int n_loc) {
return res;
}
return res;
}
-/*
*
Returns true ir ir_graph is pseudo graph. */
+/* Returns true ir ir_graph is pseudo graph. */
int is_pseudo_ir_graph(ir_graph *irg)
{
int is_pseudo_ir_graph(ir_graph *irg)
{
+ int i, n_pseudo_irgs;
+
assert(irg && "nothing here");
assert(is_ir_graph(irg) && "no ir_graph given");
assert(irg && "nothing here");
assert(is_ir_graph(irg) && "no ir_graph given");
-
int i,
n_pseudo_irgs = get_irp_n_pseudo_irgs();
+ n_pseudo_irgs = get_irp_n_pseudo_irgs();
for (i = 0; i < n_pseudo_irgs; ++i) {
if (irg == get_irp_pseudo_irg(i)) return true;
}
for (i = 0; i < n_pseudo_irgs; ++i) {
if (irg == get_irp_pseudo_irg(i)) return true;
}