[all-commits] [llvm/llvm-project] 605fc8: [mlir][Arithmetic] Add common constant folder func...

Jianjian Guan via All-commits all-commits at lists.llvm.org
Tue Apr 12 19:12:33 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 605fc89a613e0a2215de35b0705ebd09a8fa5e1d
      https://github.com/llvm/llvm-project/commit/605fc89a613e0a2215de35b0705ebd09a8fa5e1d
  Author: jacquesguan <Jianjian.Guan at streamcomputing.com>
  Date:   2022-04-13 (Wed, 13 Apr 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/CommonFolders.h
    M mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
    M mlir/test/Dialect/Arithmetic/canonicalize.mlir

  Log Message:
  -----------
  [mlir][Arithmetic] Add common constant folder function for type cast ops.

This revision replaces current type cast constant folder with a new common type cast constant folder function template.
It will cover all former folder and support fold the constant splat and vector.

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




More information about the All-commits mailing list