[all-commits] [llvm/llvm-project] 24e41a: [Matrix] Add asserts for mismatched element types.

Braedy via All-commits all-commits at lists.llvm.org
Thu Jul 23 08:03:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 24e41a34fe2218b53241c9627192b70c56f3059c
      https://github.com/llvm/llvm-project/commit/24e41a34fe2218b53241c9627192b70c56f3059c
  Author: Braedy Kuzma <braedy at ualberta.ca>
  Date:   2020-07-23 (Thu, 23 Jul 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp

  Log Message:
  -----------
  [Matrix] Add asserts for mismatched element types.

This patch clarifies the failing point of having input or output vectors
of differing types. Before, lowering would fail elsewhere (e.g. in
`fmul` creation) which may have been not immediately clear.

As a side effect, the `getElementType` and `getVectoryTy` functions
required the `const` qualifier to be added.

Reviewers: fhahn

Reviewed By: fhahn

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




More information about the All-commits mailing list