Re: [Mesa-dev] [PATCH 2/7] glsl: Create an ir_builder helper for hand-generating IR.

2012-03-28 Thread Kenneth Graunke
On 03/26/2012 12:42 PM, Eric Anholt wrote: The C++ constructors with placement new, while functional, are extremely verbose, leading to generation of simple GLSL IR expressions like (a * b + c * d) expanding to many lines of code and using lots of temporary variables. By creating a new ir_builde

[Mesa-dev] [PATCH 2/7] glsl: Create an ir_builder helper for hand-generating IR.

2012-03-26 Thread Eric Anholt
The C++ constructors with placement new, while functional, are extremely verbose, leading to generation of simple GLSL IR expressions like (a * b + c * d) expanding to many lines of code and using lots of temporary variables. By creating a new ir_builder.h that puts simple generators in our namesp