Add ir_loop to represent loops

This touches a lot of files because everything derived from ir_visitor
has to be updated.  This is the primary disadvantage of the visitor pattern.
This commit is contained in:
Ian Romanick
2010-04-05 16:16:07 -07:00
parent b94e402cff
commit fad607a9be
7 changed files with 82 additions and 0 deletions
+9
View File
@@ -74,6 +74,7 @@ public:
virtual void visit(ir_call *);
virtual void visit(ir_return *);
virtual void visit(ir_if *);
virtual void visit(ir_loop *);
/*@}*/
/**
@@ -464,3 +465,11 @@ ir_constant_visitor::visit(ir_if *ir)
(void) ir;
value = NULL;
}
void
ir_constant_visitor::visit(ir_loop *ir)
{
(void) ir;
value = NULL;
}