From 3b85f1cc6cb12e9d4931e12cf29adde578f389fd Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 26 Aug 2010 15:11:26 -0700 Subject: glsl2: Add cmp field to ir_loop This reprents the type of comparison between the loop induction variable and the loop termination value. --- src/glsl/ir.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/glsl/ir.cpp') diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index 68ad512bf5..96b32a2f34 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -701,6 +701,18 @@ ir_constant::has_value(const ir_constant *c) const return true; } + +ir_loop::ir_loop() +{ + this->ir_type = ir_type_loop; + this->cmp = ir_unop_neg; + this->from = NULL; + this->to = NULL; + this->increment = NULL; + this->counter = NULL; +} + + ir_dereference_variable::ir_dereference_variable(ir_variable *var) { this->ir_type = ir_type_dereference_variable; -- cgit v1.2.3