[all-commits] [llvm/llvm-project] d2f42c: [mlir] Add unit test for RankedTensorType wrapper ...

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Mon Jul 22 13:16:44 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d2f42c737234662d1bdc2f2e393e1b59536f8a93
      https://github.com/llvm/llvm-project/commit/d2f42c737234662d1bdc2f2e393e1b59536f8a93
  Author: Jacques Pienaar <jpienaar at google.com>
  Date:   2024-07-22 (Mon, 22 Jul 2024)

  Changed paths:
    M mlir/unittests/IR/ShapedTypeTest.cpp

  Log Message:
  -----------
  [mlir] Add unit test for RankedTensorType wrapper example. (#99789)

Add example as unit test for creating a wrapper type/view for
RankedTensorType with encoding. This view provides a more restricted &
typed API while it allows one to avoid repeated casting queries and
accessing the encoding directly.

For users with more advance encodings, the expectation would be a
separate attribute type, but here just StringAttr is used.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list