[all-commits] [llvm/llvm-project] c97035: [mlir][math][spirv] Add `math.roundeven` lowering ...

Jakub Kuderski via All-commits all-commits at lists.llvm.org
Tue Nov 1 09:51:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c97035c49d941e5b196a938f0393f811d1adbd57
      https://github.com/llvm/llvm-project/commit/c97035c49d941e5b196a938f0393f811d1adbd57
  Author: Jakub Kuderski <kubak at google.com>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVCLOps.td
    M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVGLOps.td
    M mlir/lib/Conversion/MathToSPIRV/MathToSPIRV.cpp
    M mlir/test/Conversion/MathToSPIRV/math-to-gl-spirv.mlir
    M mlir/test/Conversion/MathToSPIRV/math-to-opencl-spirv.mlir
    M mlir/test/Dialect/SPIRV/IR/gl-ops.mlir
    M mlir/test/Dialect/SPIRV/IR/ocl-ops.mlir

  Log Message:
  -----------
  [mlir][math][spirv] Add `math.roundeven` lowering to SPIR-V

This has two lowering path, one for each extended instructions set:
-  to OpenGL's `RoundEven`,
-  to OpenCL's `rint`.

Implement those two ops and add minimal tests.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D137171




More information about the All-commits mailing list