[all-commits] [llvm/llvm-project] da5fe2: [mlir][LowerToAffineLoops] Handle tensors of rank 0

Djordje Todorovic via All-commits all-commits at lists.llvm.org
Mon Apr 6 05:51:22 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: da5fe23e84c829243162ea2c51fd62d229b19ea4
      https://github.com/llvm/llvm-project/commit/da5fe23e84c829243162ea2c51fd62d229b19ea4
  Author: Djordje Todorovic <djordje.todorovic at syrmia.com>
  Date:   2020-04-06 (Mon, 06 Apr 2020)

  Changed paths:
    M mlir/examples/toy/Ch5/mlir/LowerToAffineLoops.cpp
    M mlir/examples/toy/Ch6/mlir/LowerToAffineLoops.cpp
    M mlir/examples/toy/Ch7/mlir/LowerToAffineLoops.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list