This has two lowering path, one for each extended instructions set:
- to OpenGL's RoundEven,
- to OpenCL's rint.
Implement those two ops and adds minimal tests.
Paths
| Differential D137171
[mlir][math][spirv] Add `math.roundeven` lowering to SPIR-V ClosedPublic Authored by kuhar on Nov 1 2022, 9:31 AM.
Details Summary This has two lowering path, one for each extended instructions set:
Implement those two ops and adds minimal tests.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Nov 1 2022, 9:48 AM This revision was landed with ongoing or failed builds.Nov 1 2022, 9:51 AM Closed by commit rGc97035c49d94: [mlir][math][spirv] Add `math.roundeven` lowering to SPIR-V (authored by kuhar). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 472341 mlir/include/mlir/Dialect/SPIRV/IR/SPIRVCLOps.td
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVGLOps.td
mlir/lib/Conversion/MathToSPIRV/MathToSPIRV.cpp
mlir/test/Conversion/MathToSPIRV/math-to-gl-spirv.mlir
mlir/test/Conversion/MathToSPIRV/math-to-opencl-spirv.mlir
mlir/test/Dialect/SPIRV/IR/gl-ops.mlir
mlir/test/Dialect/SPIRV/IR/ocl-ops.mlir
|