[all-commits] [llvm/llvm-project] 5380e3: [mlir] translate memref.reshape ops that have stat...

Ashay Rane via All-commits all-commits at lists.llvm.org
Thu May 12 11:57:49 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5380e30e047bbac9b2cceb69162eb8db1e1a7abf
      https://github.com/llvm/llvm-project/commit/5380e30e047bbac9b2cceb69162eb8db1e1a7abf
  Author: Ashay Rane <ashay at users.noreply.github.com>
  Date:   2022-05-12 (Thu, 12 May 2022)

  Changed paths:
    M mlir/lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp
    M mlir/test/Conversion/MemRefToLLVM/convert-static-memref-ops.mlir

  Log Message:
  -----------
  [mlir] translate memref.reshape ops that have static shapes

This patch references code for translating memref.reinterpret_cast ops
to add translation rules for memref.reshape ops that have a static shape
argument.  Since reshape ops don't have offsets, sizes, or strides, this
patch simply sets the allocated and aligned pointers of the MemRef
descriptor.

Reviewed By: ftynse, cathyzhyi

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




More information about the All-commits mailing list