Add Ch-7 of the toy tutorial detailing how to define new types.
authorRiver Riddle <riverriddle@google.com>
Thu, 7 Nov 2019 17:53:27 +0000 (09:53 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 7 Nov 2019 17:54:04 +0000 (09:54 -0800)
commit6b4e30b7c80782a2e1616c739b8a598ed72b725d
tree373bd95995aebd74b65fed0eb71bb158a60ee794
parent5fbdb67b0aa7f01b17dcca62e08e3db38d021fce
Add Ch-7 of the toy tutorial detailing how to define new types.

This chapter adds a new composite type to Toy, and shows the process of adding a new type to the IR, adding and updating operations to use it, and constant folding operations producing it.

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