[all-commits] [llvm/llvm-project] f3bdb5: [mlir][math] Add math.ctlz expansion to control fl...

Rob Suderman via All-commits all-commits at lists.llvm.org
Wed Jun 1 11:50:37 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3bdb56d61e3e7bbcb2615f087cc63b67c60ab59
      https://github.com/llvm/llvm-project/commit/f3bdb56d61e3e7bbcb2615f087cc63b67c60ab59
  Author: Rob Suderman <suderman at google.com>
  Date:   2022-06-01 (Wed, 01 Jun 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Math/Transforms/Passes.h
    M mlir/lib/Dialect/Math/Transforms/CMakeLists.txt
    A mlir/lib/Dialect/Math/Transforms/ExpandPatterns.cpp
    R mlir/lib/Dialect/Math/Transforms/ExpandTanh.cpp
    A mlir/test/Dialect/Math/expand-math.mlir
    R mlir/test/Dialect/Math/expand-tanh.mlir
    M mlir/test/lib/Dialect/Math/CMakeLists.txt
    A mlir/test/lib/Dialect/Math/TestExpandMath.cpp
    R mlir/test/lib/Dialect/Math/TestExpandTanh.cpp
    M mlir/tools/mlir-opt/mlir-opt.cpp

  Log Message:
  -----------
  [mlir][math] Add math.ctlz expansion to control flow + arith operations

Ctlz is an intrinsic in LLVM but does not have equivalent operations in SPIR-V.
Including a decomposition gives an alternative path for these platforms.

Reviewed By: NatashaKnk

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




More information about the All-commits mailing list