[cfe-dev] Matrix Support in Clang

Florian Hahn via cfe-dev cfe-dev at lists.llvm.org
Wed Mar 25 11:43:08 PDT 2020



> On Mar 19, 2020, at 18:52, Florian Hahn via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> 
>> On Mar 18, 2020, at 20:38, Richard Smith <richard at metafoo.co.uk> wrote:
>> 
>> Thanks. I'm concerned about the inconsistency between * and the / and % operators, but other than that I think this proposal looks good.
> 
> 
> Thank you very much for taking a look! I’ve responded inline. 
> 
> As next step I am planning on putting a patch up with the draft specification (that should make it easier to keep track of additional comments about formulation details) and get the clang operator patches ready.

I’ve put a set of patches up on Phabricator:

* [Matrix] Add draft specification for matrix support in Clang. https://reviews.llvm.org/D76612
* [Matrix] Implement matrix index expressions ([][]). https://reviews.llvm.org/D76791
* [Matrix] Implement + and - operators for MatrixType. https://reviews.llvm.org/D76793
* [Matrix] Implement * binary operator for MatrixType. https://reviews.llvm.org/D76794

And updated the original patch adding the matrix type support to Clang(https://reviews.llvm.org/D72281)

I’m looking forward to any feedback!

Cheers,
Florian


More information about the cfe-dev mailing list