[Mlir-commits] [mlir] [mlir][spirv] Add atan and atan2 pattern to MathToSPIRV Conversion pass (PR #102633)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Aug 9 11:23:15 PDT 2024


meehatpa wrote:

> > > Could we add glsl support in one sweep? https://registry.khronos.org/SPIR-V/specs/unified1/GLSL.std.450.html#:~:text=%3Cid%3E%0Ax-,Atan%0A%0AArc%20tangent,-.%20Result%20is%20an
> > 
> > 
> > I updated it for glsl only for atan as atan2 op is not available in spirv. Thanks for the quick review!
> 
> Can we use this one: https://registry.khronos.org/SPIR-V/specs/unified1/GLSL.std.450.html#:~:text=Atan2%0A%0AArc%20tangent.%20Result%20is%20an%20angle ?

The issue is it is not available in spirv mlir dialect https://mlir.llvm.org/docs/Dialects/SPIR-V/. We would need to add that for op in the dialect first. 

https://github.com/llvm/llvm-project/pull/102633


More information about the Mlir-commits mailing list