Add Ch.6 of the Toy tutorial.
authorRiver Riddle <riverriddle@google.com>
Thu, 17 Oct 2019 21:21:44 +0000 (14:21 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 17 Oct 2019 21:22:13 +0000 (14:22 -0700)
commit0372eb413f1cf917106562be35c633ae428f2973
tree92b99a9250941a36c22f80c3dd2f81062764c59f
parent5b03e692f6716ff4fcc4ae0887d1792562456f4b
Add Ch.6 of the Toy tutorial.

This chapters introduces the notion of a full conversion, and adds support for lowering down to the LLVM dialect, LLVM IR, and thus code generation.

PiperOrigin-RevId: 275337786
33 files changed:
mlir/examples/toy/CMakeLists.txt
mlir/examples/toy/Ch6/CMakeLists.txt [new file with mode: 0644]
mlir/examples/toy/Ch6/include/CMakeLists.txt [new file with mode: 0644]
mlir/examples/toy/Ch6/include/toy/AST.h [new file with mode: 0644]
mlir/examples/toy/Ch6/include/toy/CMakeLists.txt [new file with mode: 0644]
mlir/examples/toy/Ch6/include/toy/Dialect.h [new file with mode: 0644]
mlir/examples/toy/Ch6/include/toy/Lexer.h [new file with mode: 0644]
mlir/examples/toy/Ch6/include/toy/MLIRGen.h [new file with mode: 0644]
mlir/examples/toy/Ch6/include/toy/Ops.td [new file with mode: 0644]
mlir/examples/toy/Ch6/include/toy/Parser.h [new file with mode: 0644]
mlir/examples/toy/Ch6/include/toy/Passes.h [new file with mode: 0644]
mlir/examples/toy/Ch6/include/toy/ShapeInferenceInterface.h [new file with mode: 0644]
mlir/examples/toy/Ch6/include/toy/ShapeInferenceInterface.td [new file with mode: 0644]
mlir/examples/toy/Ch6/mlir/DeadFunctionEliminationPass.cpp [new file with mode: 0644]
mlir/examples/toy/Ch6/mlir/Dialect.cpp [new file with mode: 0644]
mlir/examples/toy/Ch6/mlir/LowerToAffineLoops.cpp [new file with mode: 0644]
mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp [new file with mode: 0644]
mlir/examples/toy/Ch6/mlir/MLIRGen.cpp [new file with mode: 0644]
mlir/examples/toy/Ch6/mlir/ShapeInferencePass.cpp [new file with mode: 0644]
mlir/examples/toy/Ch6/mlir/ToyCombine.cpp [new file with mode: 0644]
mlir/examples/toy/Ch6/mlir/ToyCombine.td [new file with mode: 0644]
mlir/examples/toy/Ch6/parser/AST.cpp [new file with mode: 0644]
mlir/examples/toy/Ch6/toyc.cpp [new file with mode: 0644]
mlir/g3doc/Tutorials/Toy/Ch-6.md [new file with mode: 0644]
mlir/include/mlir/Dialect/StandardOps/Ops.td
mlir/test/CMakeLists.txt
mlir/test/Examples/Toy/Ch6/affine-lowering.mlir [new file with mode: 0644]
mlir/test/Examples/Toy/Ch6/ast.toy [new file with mode: 0644]
mlir/test/Examples/Toy/Ch6/codegen.toy [new file with mode: 0644]
mlir/test/Examples/Toy/Ch6/invalid.mlir [new file with mode: 0644]
mlir/test/Examples/Toy/Ch6/llvm-lowering.mlir [new file with mode: 0644]
mlir/test/Examples/Toy/Ch6/scalar.toy [new file with mode: 0644]
mlir/test/Examples/Toy/Ch6/shape_inference.mlir [new file with mode: 0644]