llvm-project/mlir/examples
Matthias Kramm cb530ec8b8 [mlir][Tutorial] Make parsing an empty file print a better error.
Summary:
Previously, we would, for an empty file, print the somewhat confusing
  Assertion `tok == curTok [...]' failed.
With this change, we now print
  Parse error [...]: expected 'def' [...]

This only affects the parser from chapters 1-6, since the more advanced
chapter 7 parser is actually able to generate an empty module from an
empty file.  Nonetheless, this commit also adds the additional check to
the chapter 7 parser, for consistency.

Differential Revision: https://reviews.llvm.org/D75534
2020-03-03 13:21:05 -08:00
..
toy [mlir][Tutorial] Make parsing an empty file print a better error. 2020-03-03 13:21:05 -08:00
CMakeLists.txt NFC: Delete the Linalg tutorial. 2019-10-17 14:27:37 -07:00