glsl: Add an ir_expression triop constructor with type inference.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 3 Sep 2013 18:52:40 +0000 (11:52 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Sep 2013 18:52:22 +0000 (11:52 -0700)
commit7f0f60cd840fc88f01b8f6e46cad36c36709d813
tree98b193c077baebd74715af2e6fdcacd4e2642030
parent183f7a3e6f45a3351b86eb4c25313efe140e9793
glsl: Add an ir_expression triop constructor with type inference.

We already have ir_expression constructors for unary and binary
operations, which automatically infer the type based on the opcode and
operand types.

These are convenient and also required for ir_builder support.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/ir.cpp
src/glsl/ir.h