[all-commits] [llvm/llvm-project] 0e8717: [Matrix] Add shape verification.

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat May 13 01:42:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e8717f71198365fd4e13a01d62a44e22ea6526c
      https://github.com/llvm/llvm-project/commit/0e8717f71198365fd4e13a01d62a44e22ea6526c
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-05-13 (Sat, 13 May 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
    A llvm/test/Transforms/LowerMatrixIntrinsics/shape-verification.ll

  Log Message:
  -----------
  [Matrix] Add shape verification.

At the moment, lower-matrix-intrinsics accepts mis-matches between
shapes for operations. See shape-verification.ll for an example where
@llvm.matrix.column.major.load specifies 6x1 and then the use
(@llvm.matrix.multiply) specifies the operand to have 1x6.

This patch adds verification for shapes to check if shapes match.

Reviewed By: thegameg

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




More information about the All-commits mailing list