llvm-project/mlir/examples/toy
Djordje Todorovic da5fe23e84 [mlir][LowerToAffineLoops] Handle tensors of rank 0
This will fix the case:

  $ toyc -emit=jit test.toy
  $ cat test.toy
  def main() {
    var a = 1;
    print(a);
  }

Without this patch it would trigger an assertion.

Differential Revision: https://reviews.llvm.org/D77464
2020-04-06 14:51:03 +02:00
..
Ch1 [mlir][Tutorial] Make parsing an empty file print a better error. 2020-03-03 13:21:05 -08:00
Ch2 Fix typos in toy tutorial 2020-04-04 03:17:24 +00:00
Ch3 Fix typos in toy tutorial 2020-04-04 03:17:24 +00:00
Ch4 [MLIR] Fix shape inference in toy tutorial 2020-04-04 04:34:21 +00:00
Ch5 [mlir][LowerToAffineLoops] Handle tensors of rank 0 2020-04-06 14:51:03 +02:00
Ch6 [mlir][LowerToAffineLoops] Handle tensors of rank 0 2020-04-06 14:51:03 +02:00
Ch7 [mlir][LowerToAffineLoops] Handle tensors of rank 0 2020-04-06 14:51:03 +02:00
CMakeLists.txt Add Ch-7 of the toy tutorial detailing how to define new types. 2019-11-07 09:54:04 -08:00
README.md [MLIR] Fix broken link locations after move to monorepo 2020-01-14 07:15:02 +00:00

README.md

Toy Tutorial

This contains sample code to support the tutorial on using MLIR for building a compiler for a simple Toy language.

See docs/Tutorials/Toy at the root of the project for more informations.