[all-commits] [llvm/llvm-project] 4affc4: [Matrix] Implement * binary operator for MatrixType.

Florian Hahn via All-commits all-commits at lists.llvm.org
Sun Jun 7 03:24:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4affc444b499ba2a12fee7f9ef0bb6ef33789c12
      https://github.com/llvm/llvm-project/commit/4affc444b499ba2a12fee7f9ef0bb6ef33789c12
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-06-07 (Sun, 07 Jun 2020)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/CodeGen/CGExprScalar.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaOverload.cpp
    M clang/test/CodeGen/matrix-type-operators.c
    M clang/test/CodeGenCXX/matrix-type-operators.cpp
    M clang/test/Sema/matrix-type-operators.c
    M clang/test/SemaCXX/matrix-type-operators.cpp
    M llvm/include/llvm/IR/MatrixBuilder.h

  Log Message:
  -----------
  [Matrix] Implement * binary operator for MatrixType.

This patch implements the * binary operator for values of
MatrixType. It adds support for matrix * matrix, scalar * matrix and
matrix * scalar.

For the matrix, matrix case, the number of columns of the first operand
must match the number of rows of the second. For the scalar,matrix variants,
the element type of the matrix must match the scalar type.

Reviewers: rjmccall, anemet, Bigcheese, rsmith, martong

Reviewed By: rjmccall

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




More information about the All-commits mailing list