[llvm-dev] Google’s TensorFlow team would like to contribute MLIR to the LLVM Foundation

David Greene via llvm-dev llvm-dev at lists.llvm.org
Thu Sep 12 09:50:09 PDT 2019


Mehdi Amini <aminim at google.com> writes:

> The MLIR LangRef corresponds to the former part only, because this is what
> is common to all dialects. On the other hand, each dialect will need to
> provide its own LangRef equivalent (for example I linked to the Affine
> dialect doc before).
>
> Does it make sense?

Yeah, it makes perfect sense.  I think maybe reading the document I got
caught up in the BNF grammar -- it's a bit distracting.  I've not seen a
similar BNF specification for LLVM IR.  It may exist somewhere, but BNF
isn't part of any LLVM document I've read.  :) Maybe the grammar bits
could be factored out into a formal specification and LangRef could be a
little more informal.

Just suggestions, obviously.

                         -David


More information about the llvm-dev mailing list