[PATCH] D76793: [Matrix] Implement + and - operators for MatrixType.
Florian Hahn via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 25 11:53:45 PDT 2020
fhahn created this revision.
fhahn added reviewers: rjmccall, anemet, Bigcheese, rsmith, martong.
Herald added subscribers: tschuett, dexonsmith, rnkovacs.
Herald added a project: clang.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76793
Files:
clang/include/clang/Sema/Sema.h
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/Sema/SemaExpr.cpp
clang/test/CodeGen/matrix-type-operators.c
clang/test/CodeGenCXX/matrix-type-operators.cpp
clang/test/Sema/matrix-type-operators.c
clang/test/SemaCXX/matrix-type-operators.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76793.252638.patch
Type: text/x-patch
Size: 21194 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200325/ef8b05d8/attachment-0001.bin>
More information about the cfe-commits
mailing list