3 * File name: ir/ir/irvrfy.h
4 * Purpose: Check irnodes for correctness.
5 * Author: Christian Schaefer
6 * Modified by: Goetz Lindenmaier. Till Riedel
9 * Copyright: (c) 1998-2003 Universität Karlsruhe
10 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
16 * ir graph verification.
18 * @author Christian Schaefer
27 /** Turns verification of nodes on.
29 * This flag turns verification of nodes on. Per default the
30 * verification is on. Turn the verification off
31 * during development to check partial implementations.
33 void do_node_verification(bool b);
36 * Tests the modes of chechnode and its predecessors.
37 * Checknode must be in current_ir_graph.
42 int irn_vrfy(struct ir_node *checknode);
45 * Tests the modes of checknode and its predecessors.
46 * Checknode must be in given ir_graph.
51 int irn_vrfy_irg(struct ir_node *checknode, ir_graph *irg);
55 * Calls irn_vrfy for each node in irg.
56 * Graph must be in state "pinned".
59 * NON-zero on success.
61 int irg_vrfy(ir_graph *irg);
64 # endif /* _IRVRFY_H_ */