search for: zeroinit

Displaying 2 results from an estimated 2 matches for "zeroinit".

2017 Feb 01
2
RFC: Generic IR reductions
...na <elena.demikhovsky at intel.com> wrote: > > @llvm.reduce(ext <N x double> ( add <N x float> %a, %b)) > > And if we don't have %b? We just want to sum all elements of %a? > Something like @llvm.reduce(ext <N x double> ( add <N x float> %a, > zeroinitializer)) Hum, that's a good point. My examples were actually wrong, as they weren't related to simple reductions. Your zeroinit is the thing I was looking for. > Don't we have a problem with constant propagation in this approach? I'm not sure. Can you expand this? > I pr...
2017 Feb 01
2
RFC: Generic IR reductions
...intrinsic that can infer the type by the predecessors. > For example: > @llvm.reduce(ext <N x double> ( add <N x float> %a, %b)) And if we don't have %b? We just want to sum all elements of %a? Something like @llvm.reduce(ext <N x double> ( add <N x float> %a, zeroinitializer)) Don't we have a problem with constant propagation in this approach? I proposed a "generic" intrinsic approach on the BOF (Nov, 2016), like %scalar = @llvm.reduce(OPCODE, %vector_input) - OPCODE may be a string, integer or metadata. - Elena -----Original Message----...