00bdc8e070
This cl enforces that the conversion of the type signatures for regions, and thus their entry blocks, is handled via ConversionPatterns. A new hook 'applySignatureConversion' is added to the ConversionPatternRewriter to perform the desired conversion on a region. This also means that the handling of rewriting the signature of a FuncOp is moved to a pattern. A default implementation is provided via 'mlir::populateFuncOpTypeConversionPattern'. This removes the hacky implicit 'dynamically legal' status of FuncOp that was present previously, and leaves it up to the user to decide when/how to convert the signature of a function. PiperOrigin-RevId: 259161999 |
||
---|---|---|
.. | ||
Ch1 | ||
Ch2 | ||
Ch3 | ||
Ch4 | ||
Ch5 | ||
CMakeLists.txt | ||
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 g3doc/Tutorials/Toy at the root of the repository for more informations.