Chapter 2 of the Toy tutorial
authorMehdi Amini <aminim@google.com>
Tue, 2 Apr 2019 20:11:20 +0000 (13:11 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 2 Apr 2019 20:41:00 +0000 (13:41 -0700)
commit213dda687b549aefcc535fe6b5653018d0819000
tree05d45b4c6348ec78640597894f21004cd9ff0996
parent67a52c44b17c91ec939cfe9edd3c49ca43e81670
Chapter 2 of the Toy tutorial

    This introduces a basic MLIRGen through straight AST traversal,
    without dialect registration at this point.

--

PiperOrigin-RevId: 241588354
16 files changed:
mlir/examples/toy/CMakeLists.txt
mlir/examples/toy/Ch2/CMakeLists.txt [new file with mode: 0644]
mlir/examples/toy/Ch2/include/toy/AST.h [new file with mode: 0644]
mlir/examples/toy/Ch2/include/toy/Lexer.h [new file with mode: 0644]
mlir/examples/toy/Ch2/include/toy/MLIRGen.h [new file with mode: 0644]
mlir/examples/toy/Ch2/include/toy/Parser.h [new file with mode: 0644]
mlir/examples/toy/Ch2/mlir/MLIRGen.cpp [new file with mode: 0644]
mlir/examples/toy/Ch2/parser/AST.cpp [new file with mode: 0644]
mlir/examples/toy/Ch2/toyc.cpp [new file with mode: 0644]
mlir/g3doc/Tutorials/Toy/Ch-2.md [new file with mode: 0644]
mlir/test/CMakeLists.txt
mlir/test/Examples/Toy/Ch1/ast.toy
mlir/test/Examples/Toy/Ch2/ast.toy [new file with mode: 0644]
mlir/test/Examples/Toy/Ch2/codegen.toy [new file with mode: 0644]
mlir/test/Examples/Toy/Ch2/invalid.mlir [new file with mode: 0644]
mlir/test/lit.cfg.py