Code cleanups on Ch.4
authorRiver Riddle <riverriddle@google.com>
Wed, 16 Oct 2019 19:33:55 +0000 (12:33 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 16 Oct 2019 19:34:26 +0000 (12:34 -0700)
commitab79c25d646ed7ef214b19042d49f15425c49818
tree74c1e82581ad04dc2bdbf7753f3ea04428b8be85
parent3940b90d84d7239f2bc849068df97f1d248554fe
Code cleanups on Ch.4

This change performs general cleanups of the implementation of ch.4 and fixes some bugs. For example, the operations currently don't inherit from the shape inference interface.

PiperOrigin-RevId: 275089914
mlir/examples/toy/Ch4/include/toy/Dialect.h
mlir/examples/toy/Ch4/include/toy/Ops.td
mlir/examples/toy/Ch4/include/toy/ShapeInferenceInterface.h [new file with mode: 0644]
mlir/examples/toy/Ch4/include/toy/ShapeInferenceInterface.td
mlir/examples/toy/Ch4/mlir/DeadFunctionEliminationPass.cpp
mlir/examples/toy/Ch4/mlir/Dialect.cpp
mlir/examples/toy/Ch4/mlir/ShapeInferencePass.cpp