solidity/libsolidity/codegen/ir
Rodrigo Q. Saramago ef6ff2f055
Adds support for the EVM version "Paris".
Deprecates `block.difficulty` and disallow `difficulty()` in inline assembly for EVM versions >= paris.
The change is due to the renaming introduced by EIP-4399 (see: https://eips.ethereum.org/EIPS/eip-4399).
Introduces `block.prevrandao` in Solidity and `prevrandao()` in inline assembly for EVM versions >= paris.

Co-authored-by: Alex Beregszaszi <alex@rtfs.hu>
Co-authored-by: Daniel <daniel@ekpyron.org>
Co-authored-by: matheusaaguiar <95899911+matheusaaguiar@users.noreply.github.com>
Co-authored-by: Nikola Matić <nikola.matic@ethereum.org>
2023-01-23 18:50:36 +00:00
..
Common.cpp Extract external function part into its own function. 2022-02-21 14:32:52 +01:00
Common.h Extract external function part into its own function. 2022-02-21 14:32:52 +01:00
IRGenerationContext.cpp Add std:: qualifier to move() calls 2022-08-30 11:12:15 +02:00
IRGenerationContext.h Allow annotating inline assembly as memory-safe. 2022-03-02 16:42:28 +01:00
IRGenerator.cpp Add experimental EOF options for CLI and Standard JSON. 2022-11-23 19:53:44 +01:00
IRGenerator.h Add experimental EOF options for CLI and Standard JSON. 2022-11-23 19:53:44 +01:00
IRGeneratorForStatements.cpp Adds support for the EVM version "Paris". 2023-01-23 18:50:36 +00:00
IRGeneratorForStatements.h Corresponding code in the .cpp file has been commented instead of begin removed pending preliminary reviews 2022-02-01 16:07:55 +05:30
IRLValue.h Add SPDX license identifier if not present already in source file 2020-07-17 20:24:12 +05:30
IRVariable.cpp Replaced boost::adaptors::transformed 2021-04-08 17:38:14 +05:30
IRVariable.h [Sol->Yul] Enabling storage pointers to local vars in inline assembly. 2020-08-26 10:25:42 +02:00
README.md docs: Fix badly indented lists 2021-07-15 10:13:30 +02:00

The Solidity to Yul Code Generator

This directory contains the new experimental code generator that compiles Solidity to an intermediate representation in Yul with EVM dialect.

The main semantic differences to the legacy code generator are the following:

  • Arithmetic operations cause a failing assertion if the result is not in range.
  • Resizing a storage array to a length larger than 2**64 causes a failing assertion.