added flag to turn off vrfy
authorGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Mon, 1 Dec 2003 12:08:57 +0000 (12:08 +0000)
committerGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Mon, 1 Dec 2003 12:08:57 +0000 (12:08 +0000)
[r2149]

ir/ir/irvrfy.c
ir/ir/irvrfy.h

index 82f30c4..435b277 100644 (file)
 /* @@@ replace use of array "in" by access functions. */
 ir_node **get_irn_in(ir_node *node);
 
+bool opt_do_node_verification = 1;
+void do_node_verification(bool b) {
+  opt_do_node_verification = b;
+}
+
+
 INLINE static int
 vrfy_Proj_proj(ir_node *p, ir_graph *irg) {
   ir_node *pred;
@@ -245,6 +251,8 @@ int irn_vrfy_irg(ir_node *n, ir_graph *irg)
 
   ir_node **in;
 
+  if (!opt_do_node_verification) return 1;
+
   if (! interprocedural_view) {
     /*
      * do NOT check placement in interprocedural view, as we don't always know
index adf9611..20e45cf 100644 (file)
 # include "irnode.h"
 # include "irgraph.h"
 
+/** Turns verification of nodes on.
+ *
+ *  This flag turns verification of nodes on.  Per default the
+ *  verification is on.  Turn the verification off
+ *  during development to check partial implementations.
+ */
+void do_node_verification(bool b);
+
 /**
  * Tests the modes of chechnode and its predecessors.
  * Checknode must be in current_ir_graph.