glsl: Demote 'type' from ir_instruction to ir_rvalue and ir_variable.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 21 Sep 2011 00:58:45 +0000 (17:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 2 Apr 2012 21:15:46 +0000 (14:15 -0700)
commitf75c2d53146ea14f8dfedcc5b7a4704278ba0792
tree512d5cda78998a6b5b80d3f6ec90ba92dcb47b8c
parent82065fa20ee3f2880a070f1f4f75509b910cedde
glsl: Demote 'type' from ir_instruction to ir_rvalue and ir_variable.

Variables have types, expression trees have types, but statements don't.
Rather than have a nonsensical field that stays NULL in the base class,
just move it to where it makes sense.

Fix up a few places that lazily used ir_instruction even though they
actually knew the particular subclass.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ast_function.cpp
src/glsl/ir.h
src/glsl/ir_function.cpp
src/glsl/ir_validate.cpp
src/glsl/lower_variable_index_to_cond_assign.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp