projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gen_docu: fix missing attributes, show generation time at the end
[libfirm]
/
ir
/
ana
/
irbackedge.c
diff --git
a/ir/ana/irbackedge.c
b/ir/ana/irbackedge.c
index
00cdd39
..
0d624f8
100644
(file)
--- a/
ir/ana/irbackedge.c
+++ b/
ir/ana/irbackedge.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-20
08
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-20
11
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-22,7
+22,6
@@
* @brief Access function for backedges.
* @author Goetz Lindenmaier
* @date 7.2002
* @brief Access function for backedges.
* @author Goetz Lindenmaier
* @date 7.2002
- * @version $Id$
*/
#include "config.h"
*/
#include "config.h"
@@
-44,7
+43,7
@@
* Does not assert whether the backarray is correct -- use
* very careful!
*/
* Does not assert whether the backarray is correct -- use
* very careful!
*/
-static bitset_t *mere_get_backarray(ir_node *n)
+static bitset_t *mere_get_backarray(
const
ir_node *n)
{
switch (get_irn_opcode(n)) {
case iro_Block:
{
switch (get_irn_opcode(n)) {
case iro_Block:
@@
-65,14
+64,14
@@
static bitset_t *mere_get_backarray(ir_node *n)
* Returns backarray if the node can have backedges, else returns
* NULL.
*/
* Returns backarray if the node can have backedges, else returns
* NULL.
*/
-static bitset_t *get_backarray(ir_node *n)
+static bitset_t *get_backarray(
const
ir_node *n)
{
bitset_t *ba = mere_get_backarray(n);
#ifndef NDEBUG
if (ba) {
{
bitset_t *ba = mere_get_backarray(n);
#ifndef NDEBUG
if (ba) {
-
in
t bal = bitset_size(ba); /* avoid macro expansion in assertion. */
-
in
t inl = get_irn_arity(n);
+
size_
t bal = bitset_size(ba); /* avoid macro expansion in assertion. */
+
size_
t inl = get_irn_arity(n);
assert(bal == inl && "backedge array with faulty length");
}
#endif
assert(bal == inl && "backedge array with faulty length");
}
#endif
@@
-85,7
+84,7
@@
static bitset_t *get_backarray(ir_node *n)
* Returns non-zero if node has no backarray, or
* if size of backarray == size of in array.
*/
* Returns non-zero if node has no backarray, or
* if size of backarray == size of in array.
*/
-static int legal_backarray(ir_node *n)
+static int legal_backarray(
const
ir_node *n)
{
bitset_t *ba = mere_get_backarray(n);
if (ba && (bitset_size(ba) != (unsigned) get_irn_arity(n)))
{
bitset_t *ba = mere_get_backarray(n);
if (ba && (bitset_size(ba) != (unsigned) get_irn_arity(n)))
@@
-119,7
+118,7
@@
void fix_backedges(struct obstack *obst, ir_node *n)
}
/* Returns non-zero if the predecessor pos is a backedge. */
}
/* Returns non-zero if the predecessor pos is a backedge. */
-int is_backedge(ir_node *n, int pos)
+int is_backedge(
const
ir_node *n, int pos)
{
bitset_t *ba = get_backarray(n);
if (ba)
{
bitset_t *ba = get_backarray(n);
if (ba)
@@
-144,7
+143,7
@@
void set_not_backedge(ir_node *n, int pos)
}
/* Returns non-zero if n has backedges. */
}
/* Returns non-zero if n has backedges. */
-int has_backedges(ir_node *n)
+int has_backedges(
const
ir_node *n)
{
bitset_t *ba = get_backarray(n);
if (ba != NULL) {
{
bitset_t *ba = get_backarray(n);
if (ba != NULL) {
@@
-163,7
+162,7
@@
void clear_backedges(ir_node *n)
}
/* Allocate a new backedge array on the obstack for given size. */
}
/* Allocate a new backedge array on the obstack for given size. */
-bitset_t *new_backedge_arr(struct obstack *obst,
unsigned
size)
+bitset_t *new_backedge_arr(struct obstack *obst,
size_t
size)
{
return bitset_obstack_alloc(obst, size);
}
{
return bitset_obstack_alloc(obst, size);
}