[all-commits] [llvm/llvm-project] 5bff52: [mlir][arith] Add expansion pattern for ext/trunc ...

Rob Suderman via All-commits all-commits at lists.llvm.org
Wed Mar 29 17:59:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5bff523793ee8c30c260cc77b23c61dcbb606486
      https://github.com/llvm/llvm-project/commit/5bff523793ee8c30c260cc77b23c61dcbb606486
  Author: Robert Suderman <suderman at google.com>
  Date:   2023-03-30 (Thu, 30 Mar 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Arith/Transforms/Passes.h
    M mlir/lib/Dialect/Arith/Transforms/ExpandOps.cpp
    M mlir/test/Dialect/Arith/expand-ops.mlir

  Log Message:
  -----------
  [mlir][arith] Add expansion pattern for ext/trunc of bf16

bf16 has a trivial truncation/extension behavior with F32 that
can be described in elementary arith operations. Include some
expansions to efficiently convert.

Reviewed By: jpienaar

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




More information about the All-commits mailing list