[Matrix] Implement += and -= for MatrixType.
authorSaurabh Jha <saurabh.jhaa@gmail.com>
Mon, 8 Mar 2021 09:25:22 +0000 (09:25 +0000)
committerFlorian Hahn <flo@fhahn.com>
Mon, 8 Mar 2021 09:32:11 +0000 (09:32 +0000)
commit63851a701eac1918777535c8e1df2e97c7a01966
tree0f28a0f2c5e703708b34dc5340e5fdd7472c43cf
parentde3185647d937260dc4e3bdbce857cb1416110d9
[Matrix] Implement += and -= for MatrixType.

Make sure CompLHSTy is set correctly for += and -= and matrix type
operands.

Bugzilla ticket is here https://bugs.llvm.org/show_bug.cgi?id=46164

Patch by Saurabh Jha <saurabh.jhaa@gmail.com>

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D98075
clang/lib/Sema/SemaExpr.cpp
clang/test/CodeGen/matrix-type-operators.c
clang/test/Sema/matrix-type-operators.c