| /llvm-project-15.0.7/mlir/docs/Tutorials/Toy/ |
| H A D | Ch-1.md | 1 # Chapter 1: Toy Language and AST 81 BinOp: * @test/Examples/Toy/Ch1/ast.toy:5:25 90 Proto 'main' @test/Examples/Toy/Ch1/ast.toy:8:1' 93 VarDecl a<> @test/Examples/Toy/Ch1/ast.toy:11:3 97 VarDecl c<> @test/Examples/Toy/Ch1/ast.toy:19:3 99 var: a @test/Examples/Toy/Ch1/ast.toy:19:30 100 var: b @test/Examples/Toy/Ch1/ast.toy:19:33 102 VarDecl d<> @test/Examples/Toy/Ch1/ast.toy:22:3 104 var: b @test/Examples/Toy/Ch1/ast.toy:22:30 105 var: a @test/Examples/Toy/Ch1/ast.toy:22:33 [all …]
|
| H A D | Ch-2.md | 6 help to compile Toy. 41 Here is the MLIR assembly for the Toy `transpose` operations: 157 ## Defining a Toy Dialect 164 /// This is the definition of the Toy dialect. A dialect inherits from 199 "Toy language"; 232 ## Defining Toy Operations 563 …(%arg0: tensor<*xf64> loc("test/Examples/Toy/Ch2/codegen.toy":4:1), %arg1: tensor<*xf64> loc("test… 696 } loc("test/Examples/Toy/Ch2/codegen.toy":4:1) 705 toy.return loc("test/Examples/Toy/Ch2/codegen.toy":8:1) 706 } loc("test/Examples/Toy/Ch2/codegen.toy":8:1) [all …]
|
| H A D | Ch-4.md | 8 abstraction; the Toy dialect that we have previously defined is one such 15 like Toy to get the information they need. 43 Here we could write an inlining algorithm specifically designed for the Toy 52 operations in the Toy dialect. This information is provided through a 65 /// into the given call. For Toy this hook can simply return true, as the Toy 73 /// given region. For Toy this hook can simply return true, as all Toy 82 /// Toy, any function can be inlined, so we simply return true. 89 /// terminator that we have in the Toy dialect is the return 186 inliner pass to the pass manager for Toy: 457 test/Examples/Toy/Ch4/codegen.toy -emit=mlir -opt`. [all …]
|
| H A D | _index.md | 1 # Toy Tutorial 20 - [Chapter #1](Ch-1.md): Introduction to the Toy language and the definition 36 - [Chapter #7](Ch-7.md): Extending Toy: Adding support for a composite type. 40 The [first chapter](Ch-1.md) will introduce the Toy language and AST.
|
| H A D | Ch-7.md | 1 # Chapter 7: Adding a Composite Type to Toy 6 flow from our Toy front-end to LLVM IR. In this chapter, we will extend the Toy 9 ## Defining a `struct` in Toy 12 source language. The general syntax of a `struct` type in Toy is as follows: 87 /// This class represents the internal storage of the Toy `StructType`. 146 /// This class defines the Toy struct type. It represents a collection of 204 // to demarcate the StructType as belonging to the Toy dialect. 207 "Toy struct type">; 209 // Provide a definition of the types that are used within the Toy dialect. 354 #### Adding New `Toy` Operations [all …]
|
| H A D | Ch-5.md | 5 At this point, we are eager to generate actual code and see our Toy language 15 `Affine` for the computation heavy part of Toy, and in the 18 [TensorType](../../Dialects/Builtin.md/#rankedtensortype) that `Toy` operates on 53 For our purposes, we want to convert the compute-intensive `Toy` operations into 70 // We also define the Toy dialect as Illegal so that the conversion will fail 72 // a partial lowering, we explicitly mark the Toy operations that don't want 154 // the set of patterns that will lower the Toy operations. 213 requires mixing abstraction levels in the `Toy` dialect. 229 ## Complete Toy Example 345 and try yourself: `toyc-ch5 test/Examples/Toy/Ch5/affine-lowering.mlir
|
| H A D | Ch-3.md | 13 this chapter, we focus on how to leverage the Toy Dialect and its high-level 29 corresponding Toy example: 47 This is a good example of a transformation that is trivial to match on the Toy 131 Finally, we can run `toyc-ch3 test/Examples/Toy/Ch3/transpose_transpose.toy 242 We can try to run `toyc-ch3 test/Examples/Toy/Ch3/trivial_reshape.toy -emit=mlir
|
| /llvm-project-15.0.7/mlir/examples/toy/ |
| H A D | README.md | 1 # Toy Tutorial 4 building a compiler for a simple Toy language. 6 See [docs/Tutorials/Toy](../../docs/Tutorials/Toy) at the root of
|
| H A D | CMakeLists.txt | 1 add_custom_target(Toy) target 2 set_target_properties(Toy PROPERTIES FOLDER Examples) 5 add_dependencies(Toy ${name})
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch2/ |
| H A D | toyc.cpp | 40 enum InputType { Toy, MLIR }; enumerator 43 "x", cl::init(Toy), cl::desc("Decided the kind of output desired"), 44 cl::values(clEnumValN(Toy, "toy", "load the input file as a Toy source.")),
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch3/ |
| H A D | toyc.cpp | 42 enum InputType { Toy, MLIR }; enumerator 45 "x", cl::init(Toy), cl::desc("Decided the kind of output desired"), 46 cl::values(clEnumValN(Toy, "toy", "load the input file as a Toy source.")),
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch4/ |
| H A D | toyc.cpp | 43 enum InputType { Toy, MLIR }; enumerator 46 "x", cl::init(Toy), cl::desc("Decided the kind of output desired"), 47 cl::values(clEnumValN(Toy, "toy", "load the input file as a Toy source.")),
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch5/ |
| H A D | toyc.cpp | 45 enum InputType { Toy, MLIR }; enumerator 48 "x", cl::init(Toy), cl::desc("Decided the kind of output desired"), 49 cl::values(clEnumValN(Toy, "toy", "load the input file as a Toy source.")),
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch6/ |
| H A D | toyc.cpp | 51 enum InputType { Toy, MLIR }; enumerator 54 "x", cl::init(Toy), cl::desc("Decided the kind of output desired"), 55 cl::values(clEnumValN(Toy, "toy", "load the input file as a Toy source.")),
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch3/mlir/ |
| H A D | ToyCombine.td | 1 //===- ToyCombine.td - Pattern Match Optimizations for Toy -*- tablegen -*-===// 9 // Defines language-specific pattern match optimizations for Toy using
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/ |
| H A D | ToyCombine.td | 1 //===- ToyCombine.td - Pattern Match Optimizations for Toy -*- tablegen -*-===// 9 // Defines language-specific pattern match optimizations for Toy using
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/ |
| H A D | ToyCombine.td | 1 //===- ToyCombine.td - Pattern Match Optimizations for Toy -*- tablegen -*-===// 9 // Defines language-specific pattern match optimizations for Toy using
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch4/mlir/ |
| H A D | ToyCombine.td | 1 //===- ToyCombine.td - Pattern Match Optimizations for Toy -*- tablegen -*-===// 9 // Defines language-specific pattern match optimizations for Toy using
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch5/mlir/ |
| H A D | ToyCombine.td | 1 //===- ToyCombine.td - Pattern Match Optimizations for Toy -*- tablegen -*-===// 9 // Defines language-specific pattern match optimizations for Toy using
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch7/ |
| H A D | toyc.cpp | 51 enum InputType { Toy, MLIR }; enumerator 54 "x", cl::init(Toy), cl::desc("Decided the kind of output desired"), 55 cl::values(clEnumValN(Toy, "toy", "load the input file as a Toy source.")),
|
| /llvm-project-15.0.7/mlir/docs/Tutorials/ |
| H A D | _index.md | 4 See [Toy tutorial](toy) for an introduction to using MLIR infrastructure.
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch7/include/toy/ |
| H A D | Ops.td | 1 //===- Ops.td - Toy dialect operation definitions ----------*- tablegen -*-===// 9 // Defines the operations of the Toy dialect. 47 // Provide a definition for the Toy StructType for use in ODS. This allows for 49 // to demarcate the StructType as belonging to the Toy dialect. 52 "Toy struct type">; 54 // Provide a definition of the types that are used within the Toy dialect. 58 // Toy Operations
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch3/include/toy/ |
| H A D | Ops.td | 1 //===- Ops.td - Toy dialect operation definitions ----------*- tablegen -*-===// 9 // Defines the operations of the Toy dialect. 37 // Toy Operations
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch2/include/toy/ |
| H A D | Ops.td | 1 //===- Ops.td - Toy dialect operation definitions ----------*- tablegen -*-===// 9 // Defines the operations of the Toy dialect. 38 // Toy Operations
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch4/include/toy/ |
| H A D | Ops.td | 1 //===- Ops.td - Toy dialect operation definitions ----------*- tablegen -*-===// 9 // Defines the operations of the Toy dialect. 40 // Toy Operations
|