[all-commits] [llvm/llvm-project] 6d10d3: [MLIR][Shape] Support transforming shape.num_eleme...

Stephan Herhut via All-commits all-commits at lists.llvm.org
Tue Jul 28 05:13:34 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d10d317d8b0f1975dbb17850efd7c069f6ee8fd
      https://github.com/llvm/llvm-project/commit/6d10d317d8b0f1975dbb17850efd7c069f6ee8fd
  Author: Stephan Herhut <herhut at google.com>
  Date:   2020-07-28 (Tue, 28 Jul 2020)

  Changed paths:
    M mlir/lib/Dialect/Shape/IR/Shape.cpp
    M mlir/lib/Dialect/Shape/Transforms/ShapeToShapeLowering.cpp
    M mlir/test/Dialect/Shape/shape-to-shape.mlir

  Log Message:
  -----------
  [MLIR][Shape] Support transforming shape.num_elements on tensors

The current transformation to shape.reduce does not support tensor values.
This adds the required changes to make that work, including fixing the builder
for shape.reduce.

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




More information about the All-commits mailing list