Files
clang-p2996/mlir/test/Examples/Toy/Ch4/invalid.mlir
River Riddle ee2c6cd906 [mlir][toy] Define a FuncOp operation in toy and drop the dependence on FuncOp
FuncOp is being moved out of the builtin dialect, and defining a custom
toy operation showcases various aspects of defining function-like operation
(e.g. inlining, passes, etc.).

Differential Revision: https://reviews.llvm.org/D121264
2022-03-15 14:55:51 -07:00

10 lines
267 B
MLIR

// RUN: not toyc-ch4 %s -emit=mlir 2>&1
// The following IR is not "valid":
// - toy.print should not return a value.
// - toy.print should take an argument.
// - There should be a block terminator.
toy.func @main() {
%0 = "toy.print"() : () -> tensor<2x3xf64>
}