**
** Authors: Christian Schaefer
**
-x**
+**
*/
+/* $Id$ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
# include "irgraph_t.h"
# include "irvrfy.h"
# include "irgwalk.h"
ir_node **in;
opcode = get_irn_opcode (n);
+
+ if (opcode != iro_Phi && opcode != iro_Block)
+ for (i = 0; i < get_irn_arity(n); i++)
+ if (get_irn_opcode(get_irn_n(n, i)) == iro_Bad)
+ return;
+
mymode = get_irn_mode (n);
in = get_irn_in (n);
break;
case iro_Return:
op1mode = get_irn_mode(in[1]);
- /* Return: BB x M x data1 x ... x datan --> X */
- //printf("mode: %s, code %s\n", ID_TO_STR(n->mode->name), ID_TO_STR(n->op->name));
+ /* Return: BB x M x data1 x ... x datan --> X */
+ /* printf("mode: %s, code %s\n", ID_TO_STR(n->mode->name), ID_TO_STR(n->op->name));*/
assert ( op1mode == mode_M ); /* operand M */
for (i=2; i < get_irn_arity(n); i++) {
assert ( mode_is_data(get_irn_mode(in[i])) ); /* operand datai */
void
irg_vrfy (ir_graph *irg)
{
+ ir_graph *rem;
+ rem = current_ir_graph;
+ current_ir_graph = irg;
+
irg_walk(irg->end, vrfy_wrap, NULL, NULL);
+
+ current_ir_graph = rem;
}