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
e05c39b8
Commit
e05c39b8
authored
Aug 23, 2002
by
Boris Boesler
Browse files
compileable with -Wall and bugfixing
[r463]
parent
3d230506
Changes
10
Hide whitespace changes
Inline
Side-by-side
ir/ana/cgana.c
View file @
e05c39b8
...
...
@@ -20,7 +20,7 @@
#include "ircons.h"
#include "irgmod.h"
#include "xprintf.h"
#include "irnode.h"
/* Eindeutige Adresse zur Markierung von besuchten Knoten und zur
* Darstellung der unbekannten Methode. */
...
...
ir/ana/irscc.c
View file @
e05c39b8
...
...
@@ -10,10 +10,15 @@
/* $Id$ */
#include <string.h>
#include "irloop_t.h"
#include "irnode.h"
#include "irgraph_t.h"
#include "array.h"
#include "xprintf.h"
#include "irgwalk.h"
ir_graph
*
outermost_ir_graph
;
/* The outermost graph the scc is computed
for */
...
...
ir/common/common.c
View file @
e05c39b8
...
...
@@ -40,6 +40,7 @@ const char* print_firm_kind(void *firm_thing) {
case k_type_primitive: { return "k_type_primitive"; } break;
#endif
case
k_ir_node
:
{
return
"k_ir_node"
;
}
break
;
default:
break
;
}
return
""
;
}
ir/ir/irgopt.c
View file @
e05c39b8
...
...
@@ -130,7 +130,7 @@ compute_new_arity(ir_node *b) {
}
}
static
INLINE
new_backedge_info
(
ir_node
*
n
)
{
static
INLINE
void
new_backedge_info
(
ir_node
*
n
)
{
switch
(
get_irn_opcode
(
n
))
{
case
iro_Block
:
n
->
attr
.
block
.
cg_backedge
=
NULL
;
...
...
ir/ir/irgwalk.c
View file @
e05c39b8
...
...
@@ -14,6 +14,8 @@
# include <config.h>
#endif
# include <stdlib.h>
# include "irnode.h"
# include "irgraph.h"
/* visited flag */
# include "irprog.h"
...
...
@@ -312,6 +314,7 @@ new_callsite_stack(ir_graph *g) {
res
->
tos
=
0
;
res
->
s
=
NEW_ARR_F
(
ir_node
*
,
MIN_STACK_SIZE
);
set_irg_callsite_stack
(
g
,
res
);
return
(
res
);
}
static
INLINE
void
...
...
ir/ir/irmode.c
View file @
e05c39b8
...
...
@@ -518,4 +518,5 @@ smaller_mode(ir_mode *sm, ir_mode *lm) {
if
((
mode_is_float
(
sm
)
&&
mode_is_float
(
lm
))
&&
get_mode_modecode
(
sm
)
<=
get_mode_modecode
(
lm
))
return
true
;
return
(
false
);
}
ir/ir/irnode.c
View file @
e05c39b8
...
...
@@ -19,6 +19,7 @@
#include "typegmod_t.h"
#include "array.h"
#include "irbackedge_t.h"
#include "irdump.h"
#ifdef DEBUG_libfirm
#include "irprog_t.h"
...
...
ir/ir/irnode.h
View file @
e05c39b8
...
...
@@ -297,6 +297,8 @@ INLINE ir_node *get_Call_param (ir_node *node, int pos);
INLINE
void
set_Call_param
(
ir_node
*
node
,
int
pos
,
ir_node
*
param
);
INLINE
type
*
get_Call_type
(
ir_node
*
node
);
INLINE
void
set_Call_type
(
ir_node
*
node
,
type
*
type
);
INLINE
int
get_Call_arity
(
ir_node
*
node
);
/* Set, get and remove the callee-analysis. */
int
get_Call_n_callees
(
ir_node
*
node
);
entity
*
get_Call_callee
(
ir_node
*
node
,
int
pos
);
...
...
ir/ir/irprog.c
View file @
e05c39b8
...
...
@@ -30,6 +30,20 @@ void init_irprog(void) {
new_ir_prog
();
}
INLINE
void
remove_irp_type_from_list
(
type
*
typ
)
{
int
i
;
assert
(
typ
);
for
(
i
=
1
;
i
<
(
ARR_LEN
(
irp
->
types
));
i
++
)
{
if
(
irp
->
types
[
i
]
==
typ
)
{
for
(;
i
<
(
ARR_LEN
(
irp
->
types
))
-
1
;
i
++
)
{
irp
->
types
[
i
]
=
irp
->
types
[
i
+
1
];
}
ARR_SETLEN
(
type
*
,
irp
->
types
,
(
ARR_LEN
(
irp
->
types
))
-
1
);
break
;
}
}
}
/* Create a new ir prog. Automatically called by init_firm through
init_irprog. */
ir_prog
*
new_ir_prog
(
void
)
{
...
...
@@ -123,20 +137,6 @@ void add_irp_type(type *typ) {
ARR_APP1
(
type
*
,
irp
->
types
,
typ
);
}
INLINE
void
remove_irp_type_from_list
(
type
*
typ
)
{
int
i
;
assert
(
typ
);
for
(
i
=
1
;
i
<
(
ARR_LEN
(
irp
->
types
));
i
++
)
{
if
(
irp
->
types
[
i
]
==
typ
)
{
for
(;
i
<
(
ARR_LEN
(
irp
->
types
))
-
1
;
i
++
)
{
irp
->
types
[
i
]
=
irp
->
types
[
i
+
1
];
}
ARR_SETLEN
(
type
*
,
irp
->
types
,
(
ARR_LEN
(
irp
->
types
))
-
1
);
break
;
}
}
}
void
remove_irp_type
(
type
*
typ
)
{
remove_irp_type_from_list
(
typ
);
}
...
...
ir/tr/type.c
View file @
e05c39b8
...
...
@@ -33,6 +33,7 @@
# include <stdlib.h>
# include <stddef.h>
# include <string.h>
# include "type_t.h"
# include "tpop_t.h"
# include "typegmod_t.h"
...
...
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