[PATCH] D83477: [Matrix] Tighten LangRef definitions and Verifier checks.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 9 08:03:19 PDT 2020
fhahn added a comment.
Thanks for improving the LangRef and verifier. I am not entirely sure about referring to the matrixes as linearized (see inline comment), otherwise looks great.
================
Comment at: llvm/docs/LangRef.rst:15500
or the memory layout) can be expressed using the matrix intrinsics. Matrixes are
-embedded in a flat vector and the intrinsics take the dimensions as arguments.
+linearized in a vector and the intrinsics take the dimensions as arguments.
Currently column-major layout is assumed. The intrinsics support both integer
----------------
When I read linearized here, I thing about https://en.wikipedia.org/wiki/Linearization , so there might be potential for confusion.
It might be worth defining exactly what we mean be embedding here, then further uses should be un-ambigous: the columns of a matrix R x C are embedded into a vector such that the elements of subsequent columns are adjacent in the vector. Or more formally element `I` of column `J` is at index `J * R + I` in the vector (with indices starting at 0)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83477/new/
https://reviews.llvm.org/D83477
More information about the llvm-commits
mailing list