[PATCH] D104971: [Matrix] Minor fixes with language extension docs
Saurabh Jha via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 26 01:42:28 PDT 2021
SaurabhJha created this revision.
Herald added a subscriber: tschuett.
SaurabhJha requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
There were some issues in the patch https://reviews.llvm.org/D104198. I also forgot to address one comment. This patch addresses these
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D104971
Files:
clang/docs/LanguageExtensions.rst
Index: clang/docs/LanguageExtensions.rst
===================================================================
--- clang/docs/LanguageExtensions.rst
+++ clang/docs/LanguageExtensions.rst
@@ -536,6 +536,7 @@
The matrix type extension supports division on a matrix and a scalar but not on a matrix and a matrix.
.. code-block:: c++
+
typedef float m4x4_t __attribute__((matrix_type(4, 4)));
m4x4_t f(m4x4_t a) {
@@ -543,8 +544,8 @@
return a;
}
-The matrix type extension supports compound assignments for addition, subtraction, and multiplication between matrices
-and between a matrix and a scalar, provided their types are consistent.
+The matrix type extension supports compound assignments for addition, subtraction, and multiplication on matrices
+and on a matrix and a scalar, provided their types are consistent.
.. code-block:: c++
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104971.354653.patch
Type: text/x-patch
Size: 863 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210626/376041df/attachment.bin>
More information about the cfe-commits
mailing list