[mlir] Fix/clarify parts of MLIR toy tutorial chaper 4.
authorMatthias Kramm <kramm@google.com>
Fri, 28 Feb 2020 01:51:34 +0000 (17:51 -0800)
committerRiver Riddle <riddleriver@gmail.com>
Fri, 28 Feb 2020 01:51:58 +0000 (17:51 -0800)
commitd8392f76bc659d5015b7e729792770d1e0e013ba
treef3d6dd2351194fec903cb1c4160778d2b1915ba9
parent79c17330d35995d689ecec11dda0dfdb19f33428
[mlir] Fix/clarify parts of MLIR toy tutorial chaper 4.

Summary:
* Let's use "override" when we're just doing standard baseclassing.
  ("Specialization" makes it sound like template specialization, which
   this is not.)
* CallInterfaces.td has an include guard, so #ifdef not needed anymore.
* Omit duplicate code in code samples.
* Clarify which algorithm we're talking about.
* Mention that the ShapeInference code is code a snippet that belongs to
  algorithm discussed in the paragraph above it.
* Add missing definition for createShapeInferencePass.

Differential Revision: https://reviews.llvm.org/D75260
mlir/docs/Tutorials/Toy/Ch-4.md