[all-commits] [llvm/llvm-project] 00f709: [mlir][math] Rename math.abs -> math.absf

Jeff Niu via All-commits all-commits at lists.llvm.org
Mon Aug 8 08:05:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 00f7096d31cc7896ffd490e65104d264923f0df5
      https://github.com/llvm/llvm-project/commit/00f7096d31cc7896ffd490e65104d264923f0df5
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-08-08 (Mon, 08 Aug 2022)

  Changed paths:
    M flang/lib/Lower/IntrinsicCall.cpp
    M flang/test/Intrinsics/math-codegen.fir
    M flang/test/Lower/Intrinsics/abs.f90
    M flang/test/Lower/array-expression.f90
    M flang/test/Lower/math-lowering.f90
    M mlir/docs/Bindings/Python.md
    M mlir/include/mlir/Dialect/Math/IR/MathBase.td
    M mlir/include/mlir/Dialect/Math/IR/MathOps.td
    M mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
    M mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp
    M mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp
    M mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp
    M mlir/lib/Conversion/MathToSPIRV/MathToSPIRV.cpp
    M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/lib/Dialect/Math/IR/MathOps.cpp
    M mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp
    M mlir/lib/Dialect/SparseTensor/Utils/Merger.cpp
    M mlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir
    M mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir
    M mlir/test/Conversion/GPUToROCDL/gpu-to-rocdl.mlir
    M mlir/test/Conversion/MathToSPIRV/math-to-gl-spirv.mlir
    M mlir/test/Conversion/MathToSPIRV/math-to-opencl-spirv.mlir
    M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
    M mlir/test/Dialect/Linalg/generalize-named-polymorphic-ops.mlir
    M mlir/test/Dialect/Math/canonicalize.mlir
    M mlir/test/Dialect/Math/polynomial-approximation.mlir
    M mlir/test/Dialect/SparseTensor/sparse_fp_ops.mlir
    M mlir/test/IR/core-ops.mlir
    M mlir/test/Target/Cpp/invalid.mlir
    M mlir/test/python/dialects/linalg/opdsl/emit_misc.py

  Log Message:
  -----------
  [mlir][math] Rename math.abs -> math.absf

To make room for introducing `math.absi`.

Reviewed By: ftynse

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


  Commit: 7d9fc95b85c4ee421aa0c245f9ba5ed851db4154
      https://github.com/llvm/llvm-project/commit/7d9fc95b85c4ee421aa0c245f9ba5ed851db4154
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-08-08 (Mon, 08 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/MathToSPIRV/MathToSPIRV.cpp
    M mlir/lib/Dialect/Math/IR/MathOps.cpp
    M mlir/test/Conversion/MathToLLVM/math-to-llvm.mlir
    M mlir/test/Conversion/MathToSPIRV/math-to-gl-spirv.mlir

  Log Message:
  -----------
  [mlir][math] Add `math.absi` op

Adds an integer absolute value op to the math dialect.

When converting to LLVM, this op is lowered to the LLVM `abs` intrinsic.
When converting to SPIRV, this op is lowered to `spv.GL.SAbs`.

Depends on D131325

Reviewed By: ftynse

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


Compare: https://github.com/llvm/llvm-project/compare/2d20fb00b3c7...7d9fc95b85c4


More information about the All-commits mailing list