Lines Matching refs:Toy
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
192 With this we can now use our `StructType` when generating MLIR from Toy. See
202 // Provide a definition for the Toy StructType for use in ODS. This allows for
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.
240 form available under certain circumstances. The responsibility of our `Toy`
354 #### Adding New `Toy` Operations
480 `Toy` operations, i.e. `ConstantOp` for `TensorType` and `StructConstant` for
483 constants for the `Toy` dialect when necessary.
514 test/Examples/Toy/Ch7/struct-codegen.toy -emit=mlir`. More details on defining