[all-commits] [llvm/llvm-project] 381a65: [mlir] Add clone method to ShapedType

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Mon Feb 15 11:04:46 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 381a65fa066171977bc9119432917a1444f99f87
      https://github.com/llvm/llvm-project/commit/381a65fa066171977bc9119432917a1444f99f87
  Author: Jacques Pienaar <jpienaar at google.com>
  Date:   2021-02-15 (Mon, 15 Feb 2021)

  Changed paths:
    M mlir/include/mlir/IR/BuiltinTypes.h
    M mlir/lib/IR/BuiltinTypes.cpp
    M mlir/unittests/IR/CMakeLists.txt
    A mlir/unittests/IR/ShapedTypeTest.cpp

  Log Message:
  -----------
  [mlir] Add clone method to ShapedType

Allow clients to create a new ShapedType of the same "container" type
but with different element or shape. First use case is when refining
shape during shape inference without needing to consider which
ShapedType is being refined.

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




More information about the All-commits mailing list