GLSL Varying Attributes

The OpenGL GLSL target will run a Halide Func on a screen filling quad inside the fragment shader of a GLSL program. This branch adds passes during lowering and GLSL codegen to identify linear expressions that may be pulled out of the fragment shader. These expressions are evaluated per-vertex, as varying attributes, and then interpolated across the image by the GPU. The branch also contains changes to pack scalar parameters into vec4 uniform and varying attributes.

The code in this branch will interact with the specialized_branched_loops branch, to support piecewise linear expressions.  It will also interact with the upcoming GPU runtime API refactoring.

PTAL
I don't understand. Since this is extern "C", there's no actual difference in the underlying symbols for any combination of const declarations, no? Either way, it seems like we should have one of these two declarations:

    const char * strstr(const char *, const char *);
    char * strstr(char *, char *);

The declaration we have now is basically a stealth const_cast. Anyways, this feels pretty nitpicky, so I'm not going to fight it too hard, but I'm suspicious...