aboutsummaryrefslogtreecommitdiff
path: root/mlir/test/Examples/Toy/Ch7/shape_inference.mlir
AgeCommit message (Collapse)AuthorFilesLines
2022-03-15[mlir][toy] Define a FuncOp operation in toy and drop the dependence on FuncOpRiver Riddle1-2/+2
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
2020-11-09[MLIR] Change FuncOp assembly syntax to print visibility inline instead of ↵Rahul Joshi1-2/+1
in attrib dict. - Change syntax for FuncOp to be `func <visibility>? @name` instead of printing the visibility in the attribute dictionary. - Since printFunctionLikeOp() and parseFunctionLikeOp() are also used by other operations, make the "inline visibility" an opt-in feature. - Updated unit test to use and check the new syntax. Differential Revision: https://reviews.llvm.org/D90859
2020-02-21[mlir][Tutorial] Add a section to Toy Ch.2 detailing the custom assembly format.River Riddle1-17/+17
Summary: This details the C++ format as well as the new declarative format. This has been one of the major missing pieces from the toy tutorial. Differential Revision: https://reviews.llvm.org/D74938
2020-01-27[mlir] Replace toy::DeadFunctionEliminationPass with symbolDCEPass.River Riddle1-1/+2
Summary: The dead function elimination pass in toy was a temporary stopgap until we had proper dead function elimination support in MLIR. Now that this functionality is available, this pass is no longer necessary. Differential Revision: https://reviews.llvm.org/D72483
2019-11-07Add Ch-7 of the toy tutorial detailing how to define new types.River Riddle1-0/+30
This chapter adds a new composite type to Toy, and shows the process of adding a new type to the IR, adding and updating operations to use it, and constant folding operations producing it. PiperOrigin-RevId: 279107885