From 55c8434e1530c689d0f8938ffda5333ed9cc78ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Mon, 1 Dec 2003 12:08:57 +0000 Subject: [PATCH] added flag to turn off vrfy [r2149] --- ir/ir/irvrfy.c | 8 ++++++++ ir/ir/irvrfy.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/ir/ir/irvrfy.c b/ir/ir/irvrfy.c index 82f30c496..435b277f8 100644 --- a/ir/ir/irvrfy.c +++ b/ir/ir/irvrfy.c @@ -38,6 +38,12 @@ /* @@@ 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 diff --git a/ir/ir/irvrfy.h b/ir/ir/irvrfy.h index adf96118e..20e45cf4d 100644 --- a/ir/ir/irvrfy.h +++ b/ir/ir/irvrfy.h @@ -24,6 +24,14 @@ # 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. -- 2.20.1