[MLIR] Fix several misc issues in in Toy tutorialSummary:- Fix comments in several places- Eliminate extra ' in AST dump and adjust tests accordinglyDifferential Revision: https://reviews.llvm.
[MLIR] Fix several misc issues in in Toy tutorialSummary:- Fix comments in several places- Eliminate extra ' in AST dump and adjust tests accordinglyDifferential Revision: https://reviews.llvm.org/D78399
show more ...
[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 c
[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 advancedchapter 7 parser is actually able to generate an empty module from anempty file. Nonetheless, this commit also adds the additional check tothe chapter 7 parser, for consistency.Differential Revision: https://reviews.llvm.org/D75534
Fixed typo in Toy tutorial (second var e -> var f)PiperOrigin-RevId: 282810649
NFC: Fix remaining usages of MulOp as matrix multiplication.MulOp now represents an element-wise multiplication instead of a matrix multiplication.PiperOrigin-RevId: 275886774
NFC: Fix typo : Retur -> ReturnPiperOrigin-RevId: 275745931
Update comments in ast.toyPiperOrigin-RevId: 275084969
Remove the Toy/* file path from the location check lines. This assumes a specific file path format that breaks on MSVC.--PiperOrigin-RevId: 250549223
NFC: Fix a few typos in the tutorials and one in the comment of FunctionAttr::dropFunctionReference.--PiperOrigin-RevId: 242050934
Chapter 2 of the Toy tutorial This introduces a basic MLIRGen through straight AST traversal, without dialect registration at this point.--PiperOrigin-RevId: 241588354
Initial version for chapter 1 of the Toy tutorial--PiperOrigin-RevId: 241549247