[all-commits] [llvm/llvm-project] 4639a8: [mlir] Add math.roundeven and llvm.intr.roundeven

Tres via All-commits all-commits at lists.llvm.org
Thu Aug 25 04:39:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4639a85f94be6355c55dcc802a9b01b622d6f7b1
      https://github.com/llvm/llvm-project/commit/4639a85f94be6355c55dcc802a9b01b622d6f7b1
  Author: Tres Popp <tpopp at google.com>
  Date:   2022-08-25 (Thu, 25 Aug 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td
    M mlir/include/mlir/Dialect/Math/IR/MathOps.td
    M mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp
    M mlir/lib/Conversion/MathToLibm/MathToLibm.cpp
    M mlir/test/Conversion/MathToLLVM/math-to-llvm.mlir
    M mlir/test/Conversion/MathToLibm/convert-to-libm.mlir
    M mlir/test/Dialect/Math/ops.mlir

  Log Message:
  -----------
  [mlir] Add math.roundeven and llvm.intr.roundeven

This is similar to math.round, but rounds to even instead of rounding away from
zero in the case of halfway values. This CL also adds lowerings to libm and
to the LLVM intrinsic.

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




More information about the All-commits mailing list