glsl: Add IR builder shortcuts for a bunch of random opcodes.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 4 Sep 2013 00:02:07 +0000 (17:02 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Sep 2013 18:52:22 +0000 (11:52 -0700)
commit666df565519357833aabb265e42d1ed981bf2a4a
treece88df2928565e12b9116828e35ec5d3ab03a916
parent1a6c0efa116e7427e3ee5f24db2000e3edb66047
glsl: Add IR builder shortcuts for a bunch of random opcodes.

Adding new convenience emitters makes it easier to generate IR involving
these opcodes.

bitfield_insert is particularly useful, since there is no expr() for
quadops.

v2: Add fma() and rename lrp() operands to x/y/a to match the GLSL
    specification (suggested by Matt Turner).  Fix whitespace issues.

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_builder.cpp
src/glsl/ir_builder.h