llvm-project/mlir/examples/toy
Mogball 4957518ef5 [mlir][ods] Simplify useDefaultType/AttributePrinterParser
The current behaviour of `useDefaultTypePrinterParser` and `useDefaultAttributePrinterParser` is that they are set by default, but the dialect generator only generates the declarations for the parsing and printing hooks if it sees dialect types and attributes. Same goes for the definitions generated by the AttrOrTypeDef generator.

This can lead to confusing and undesirable behaviour if the dialect generator doesn't see the definitions of the attributes and types, for example, if they are sensibly separated into different files: `Dialect.td`, `Ops.td`, `Attributes.td`, and `Types.td`.

Now, these bits are unset by default. Setting them will always result in the dialect generator emitting the declarations for the parsing hooks. And if the AttrOrTypeDef generator sees it set, it will generate the default implementations.

Reviewed By: rriddle, stellaraccident

Differential Revision: https://reviews.llvm.org/D125809
2022-05-18 17:22:11 +00:00
..
Ch1 [mlir:toy][NFC] Remove unnecessary trailing return type 2022-05-16 13:46:00 -04:00
Ch2 [mlir:toy][NFC] Remove unnecessary trailing return type 2022-05-16 13:46:00 -04:00
Ch3 [mlir:toy][NFC] Remove unnecessary trailing return type 2022-05-16 13:46:00 -04:00
Ch4 [mlir:toy][NFC] Remove unnecessary trailing return type 2022-05-16 13:46:00 -04:00
Ch5 [mlir:toy][NFC] Remove unnecessary trailing return type 2022-05-16 13:46:00 -04:00
Ch6 [mlir:toy][NFC] Remove unnecessary trailing return type 2022-05-16 13:46:00 -04:00
Ch7 [mlir][ods] Simplify useDefaultType/AttributePrinterParser 2022-05-18 17:22:11 +00:00
CMakeLists.txt Revert "[RFC] Factor out repetitive cmake patterns for llvm-style projects" 2020-10-04 15:17:34 -07:00
README.md [MLIR] Fix broken link locations after move to monorepo 2020-01-14 07:15:02 +00:00

README.md

Toy Tutorial

This contains sample code to support the tutorial on using MLIR for building a compiler for a simple Toy language.

See docs/Tutorials/Toy at the root of the project for more informations.