diff options
author | Lucy Fox <lucy.r.fox@gmail.com> | 2020-04-17 17:41:51 -0700 |
---|---|---|
committer | Lucy Fox <lucy.r.fox@gmail.com> | 2020-04-17 20:15:16 -0700 |
commit | a0d5e5496621700b26d234a948f9c99b08a8a319 (patch) | |
tree | f74c5f6a0b9912718c0dfa3e9607d9e4985566bf /mlir/test/Examples | |
parent | a6b427167e0560202529563cf94a210694038185 (diff) | |
download | llvm-a0d5e5496621700b26d234a948f9c99b08a8a319.zip llvm-a0d5e5496621700b26d234a948f9c99b08a8a319.tar.gz llvm-a0d5e5496621700b26d234a948f9c99b08a8a319.tar.bz2 |
[MLIR] Update tutorial to add missing tests and bring directory paths and code snippets up to date.
Summary:
The tests referred to in Chapter 3 of the tutorial were missing from the tutorial test
directory; this adds those missing tests. This also cleans up some stale directory paths and code
snippets used throughout the tutorial.
Differential Revision: https://reviews.llvm.org/D76809
Diffstat (limited to 'mlir/test/Examples')
-rw-r--r-- | mlir/test/Examples/Toy/Ch5/trivial_reshape.toy | 4 | ||||
-rw-r--r-- | mlir/test/Examples/Toy/Ch6/trivial_reshape.toy | 4 | ||||
-rw-r--r-- | mlir/test/Examples/Toy/Ch7/trivial_reshape.toy | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/mlir/test/Examples/Toy/Ch5/trivial_reshape.toy b/mlir/test/Examples/Toy/Ch5/trivial_reshape.toy index 453efa3..1addb06 100644 --- a/mlir/test/Examples/Toy/Ch5/trivial_reshape.toy +++ b/mlir/test/Examples/Toy/Ch5/trivial_reshape.toy @@ -1,4 +1,4 @@ -# RUN: toyc-ch4 %s -emit=mlir -opt 2>&1 | FileCheck %s +# RUN: toyc-ch5 %s -emit=mlir -opt 2>&1 | FileCheck %s def main() { var a<2,1> = [1, 2]; @@ -13,4 +13,4 @@ def main() { # CHECK-SAME: [1.000000e+00], [2.000000e+00] # CHECK-SAME: ]> : tensor<2x1xf64> # CHECK-NEXT: toy.print [[VAL_0]] : tensor<2x1xf64> -# CHECK-NEXT: toy.return
\ No newline at end of file +# CHECK-NEXT: toy.return diff --git a/mlir/test/Examples/Toy/Ch6/trivial_reshape.toy b/mlir/test/Examples/Toy/Ch6/trivial_reshape.toy index 453efa3..17832ac 100644 --- a/mlir/test/Examples/Toy/Ch6/trivial_reshape.toy +++ b/mlir/test/Examples/Toy/Ch6/trivial_reshape.toy @@ -1,4 +1,4 @@ -# RUN: toyc-ch4 %s -emit=mlir -opt 2>&1 | FileCheck %s +# RUN: toyc-ch6 %s -emit=mlir -opt 2>&1 | FileCheck %s def main() { var a<2,1> = [1, 2]; @@ -13,4 +13,4 @@ def main() { # CHECK-SAME: [1.000000e+00], [2.000000e+00] # CHECK-SAME: ]> : tensor<2x1xf64> # CHECK-NEXT: toy.print [[VAL_0]] : tensor<2x1xf64> -# CHECK-NEXT: toy.return
\ No newline at end of file +# CHECK-NEXT: toy.return diff --git a/mlir/test/Examples/Toy/Ch7/trivial_reshape.toy b/mlir/test/Examples/Toy/Ch7/trivial_reshape.toy index 453efa3..5ca8c4b 100644 --- a/mlir/test/Examples/Toy/Ch7/trivial_reshape.toy +++ b/mlir/test/Examples/Toy/Ch7/trivial_reshape.toy @@ -1,4 +1,4 @@ -# RUN: toyc-ch4 %s -emit=mlir -opt 2>&1 | FileCheck %s +# RUN: toyc-ch7 %s -emit=mlir -opt 2>&1 | FileCheck %s def main() { var a<2,1> = [1, 2]; @@ -13,4 +13,4 @@ def main() { # CHECK-SAME: [1.000000e+00], [2.000000e+00] # CHECK-SAME: ]> : tensor<2x1xf64> # CHECK-NEXT: toy.print [[VAL_0]] : tensor<2x1xf64> -# CHECK-NEXT: toy.return
\ No newline at end of file +# CHECK-NEXT: toy.return |