[all-commits] [llvm/llvm-project] 6f6e91: [Matrix] Implement + and - operators for MatrixType.

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri May 29 13:01:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f6e91d19337315548f550479f94cbc0af93c8fe
      https://github.com/llvm/llvm-project/commit/6f6e91d19337315548f550479f94cbc0af93c8fe
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-05-29 (Fri, 29 May 2020)

  Changed paths:
    M clang/include/clang/AST/Type.h
    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
    A clang/test/CodeGen/matrix-type-operators.c
    A clang/test/CodeGenCXX/matrix-type-operators.cpp
    A clang/test/Sema/matrix-type-operators.c
    A clang/test/SemaCXX/matrix-type-operators.cpp
    M llvm/include/llvm/IR/MatrixBuilder.h

  Log Message:
  -----------
  [Matrix] Implement + and - operators for MatrixType.

This patch implements the + and - binary operators for values of
MatrixType. It adds support for matrix +/- matrix, scalar +/- matrix and
matrix +/- scalar.

For the matrix, matrix case, the types must initially be structurally
equivalent. 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/D76793




More information about the All-commits mailing list