Commit c0c2062d authored by Christian Schäfer's avatar Christian Schäfer
Browse files

added some name convetions

[r34]
parent 925f6756
......@@ -753,7 +753,7 @@ new_Block (void)
res = new_ir_node (current_ir_graph, NULL, op_Block, mode_R, -1, NULL);
current_ir_graph->current_block = res;
res->attr.block.matured = 0;
set_Block_block_visit(res, 0);
set_Block_block_visited(res, 0);
/* forget this optimization. use this only if mature !!!!
res = optimize (res); */
......
......@@ -56,8 +56,8 @@ void irg_block_walk_2(ir_node *node, void (pre)(ir_node*, void*),
assert(get_irn_opcode(node) == iro_Block);
if(get_Block_block_visit(node) < get_irg_block_visited(current_ir_graph)) {
set_Block_block_visit(node, get_irg_block_visited(current_ir_graph));
if(get_Block_block_visited(node) < get_irg_block_visited(current_ir_graph)) {
set_Block_block_visited(node, get_irg_block_visited(current_ir_graph));
if(pre)
pre(node, env);
......
......@@ -369,15 +369,15 @@ set_Block_matured (ir_node *node, bool matured) {
node->attr.block.matured = matured;
}
inline unsigned long
get_Block_block_visit (ir_node *node) {
get_Block_block_visited (ir_node *node) {
assert (node->op == op_Block);
return node->attr.block.block_visit;
return node->attr.block.block_visited;
}
inline void
set_Block_block_visit (ir_node *node, unsigned long visit) {
set_Block_block_visited (ir_node *node, unsigned long visit) {
assert (node->op == op_Block);
node->attr.block.block_visit = visit;
node->attr.block.block_visited = visit;
}
inline ir_node *
......
/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
** All rights reserved.
**
......@@ -61,7 +59,7 @@ enum {
/** ir node attributes **/
/* Block attributes */
typedef struct {
unsigned long block_visit; /* for the walker that walks over all blocks. */
unsigned long block_visited; /* for the walker that walks over all blocks. */
/* Attributes private to construction: */
bool matured; /* if set, all in-nodes of the block are fixed */
struct ir_node **graph_arr; /* array to store all parameters */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment