OSDN Git Service

[mlir] Update Toy tutorial to use callback-based loop constructors
authorAlex Zinenko <zinenko@google.com>
Thu, 18 Jun 2020 15:53:59 +0000 (17:53 +0200)
committerAlex Zinenko <zinenko@google.com>
Thu, 18 Jun 2020 21:03:21 +0000 (23:03 +0200)
commit68628c94cdf7d11014cafc84cbb59f5bc79756f2
tree4288bca6f9cac68a972a40baf5699c9f59799d19
parent8647a9bc511bd47ca80ae48761662436066a09bb
[mlir] Update Toy tutorial to use callback-based loop constructors

We recently introduced support for building loops or loop nests using callbacks
that populate the body. Use these in the tutorial instead of setInsertionPoint
manipulations.

Differential Revision: https://reviews.llvm.org/D82104
mlir/examples/toy/Ch5/mlir/LowerToAffineLoops.cpp
mlir/examples/toy/Ch6/mlir/LowerToAffineLoops.cpp
mlir/examples/toy/Ch7/mlir/LowerToAffineLoops.cpp