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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user