[PATCH] D76809: [MLIR] Update tutorial to add missing tests and bring directory paths and code snippets up to date.

Lucy Fox via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 17 18:03:44 PDT 2020


lucyrfox updated this revision to Diff 258458.
lucyrfox added a comment.
Herald added a subscriber: frgossen.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76809/new/

https://reviews.llvm.org/D76809

Files:
  mlir/test/Examples/Toy/Ch5/trivial_reshape.toy
  mlir/test/Examples/Toy/Ch6/trivial_reshape.toy
  mlir/test/Examples/Toy/Ch7/trivial_reshape.toy


Index: mlir/test/Examples/Toy/Ch7/trivial_reshape.toy
===================================================================
--- mlir/test/Examples/Toy/Ch7/trivial_reshape.toy
+++ 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 @@
 # 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
Index: mlir/test/Examples/Toy/Ch6/trivial_reshape.toy
===================================================================
--- mlir/test/Examples/Toy/Ch6/trivial_reshape.toy
+++ 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 @@
 # 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
Index: mlir/test/Examples/Toy/Ch5/trivial_reshape.toy
===================================================================
--- mlir/test/Examples/Toy/Ch5/trivial_reshape.toy
+++ 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 @@
 # 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76809.258458.patch
Type: text/x-patch
Size: 1917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200418/ab8dee04/attachment.bin>


More information about the llvm-commits mailing list