Displaying 5 results from an estimated 5 matches for "light_dir".
2019 Feb 01
3
[RFC] Vector Predication
...the
> pre-vectorization code are short vectors.
> > > So, vectorizing code like:
> > > for(int i = 0; i < 1000; i++)
> > > {
> > > vec4 color = colors[i];
> > > vec3 normal = normals[i];
> > > color.rgb *= fmax(0.0, dot(normal, light_dir));
> > > colors[i] = color;
> > > }
> > >
> > > I'm planning on passing already vectorized code into LLVM and using
> LLVM as a backend for optimization and JIT code generation.
> > >
> > > Do you think the EVL proposal would support...
2019 Feb 01
2
[RFC] Vector Predication
...is extension to vectorize graphics code where where variables in the pre-vectorization code are short vectors.
> So, vectorizing code like:
> for(int i = 0; i < 1000; i++)
> {
> vec4 color = colors[i];
> vec3 normal = normals[i];
> color.rgb *= fmax(0.0, dot(normal, light_dir));
> colors[i] = color;
> }
>
> I'm planning on passing already vectorized code into LLVM and using LLVM as a backend for optimization and JIT code generation.
>
> Do you think the EVL proposal would support an ISA like this as it's currently
> written (by pattern m...
2019 Jan 31
6
[RFC] Vector Predication
Hi,
There is now an RFC for a roadmap to native vector predication support
in LLVM and a prototype implementation:
https://reviews.llvm.org/D57504
The prototype demonstrates:
- Predicated vector intrinsics with an explicit mask and vector length
parameter on IR level.
- First-class predicated SDNodes on ISel level. Mask and vector length
are value operands.
- An incremental strategy
2019 Feb 01
3
[RFC] Vector Predication
...ension to vectorize graphics code where where variables in the
> pre-vectorization code are short vectors.
> So, vectorizing code like:
> for(int i = 0; i < 1000; i++)
> {
> vec4 color = colors[i];
> vec3 normal = normals[i];
> color.rgb *= fmax(0.0, dot(normal, light_dir));
> colors[i] = color;
> }
>
> I'm planning on passing already vectorized code into LLVM and using
> LLVM as a backend for optimization and JIT code generation.
>
> Do you think the EVL proposal would support an ISA like this as it's
> currently written (by pa...
2019 Feb 04
4
[RFC] Vector Predication
On 2/2/19 1:39 AM, Luke Kenneth Casson Leighton wrote:
>
>
> On Friday, February 1, 2019, Simon Moll <moll at cs.uni-saarland.de
> <mailto:moll at cs.uni-saarland.de>> wrote:
>
> We could untie the mask length from the data length:
>
> %result = call <scalable 4 x float>
> @llvm.evl.fsub.v4f32(<scalable 4 x float> %x, <scalable 4