mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Mark viaIR code generation as non-experimental.
This commit is contained in:
@@ -140,8 +140,7 @@ by checking if the lowest bit is set: short (not set) and long (set).
|
||||
|
||||
.. note::
|
||||
Handling invalidly encoded slots is currently not supported but may be added in the future.
|
||||
If you are compiling via the experimental IR-based compiler pipeline, reading an invalidly encoded
|
||||
slot results in a ``Panic(0x22)`` error.
|
||||
If you are compiling via IR, reading an invalidly encoded slot results in a ``Panic(0x22)`` error.
|
||||
|
||||
JSON Output
|
||||
===========
|
||||
|
||||
@@ -23,7 +23,7 @@ call completely.
|
||||
Currently, the parameter ``--optimize`` activates the opcode-based optimizer for the
|
||||
generated bytecode and the Yul optimizer for the Yul code generated internally, for example for ABI coder v2.
|
||||
One can use ``solc --ir-optimized --optimize`` to produce an
|
||||
optimized experimental Yul IR for a Solidity source. Similarly, one can use ``solc --strict-assembly --optimize``
|
||||
optimized Yul IR for a Solidity source. Similarly, one can use ``solc --strict-assembly --optimize``
|
||||
for a stand-alone Yul mode.
|
||||
|
||||
You can find more details on both optimizer modules and their optimization steps below.
|
||||
|
||||
@@ -15,11 +15,7 @@ The IR-based code generator was introduced with an aim to not only allow
|
||||
code generation to be more transparent and auditable but also
|
||||
to enable more powerful optimization passes that span across functions.
|
||||
|
||||
Currently, the IR-based code generator is still marked experimental,
|
||||
but it supports all language features and has received a lot of testing,
|
||||
so we consider it almost ready for production use.
|
||||
|
||||
You can enable it on the command line using ``--experimental-via-ir``
|
||||
You can enable it on the command line using ``--via-ir``
|
||||
or with the option ``{"viaIR": true}`` in standard-json and we
|
||||
encourage everyone to try it out!
|
||||
|
||||
|
||||
@@ -298,7 +298,7 @@ Input Description
|
||||
// tangerineWhistle, spuriousDragon, byzantium, constantinople, petersburg, istanbul or berlin
|
||||
"evmVersion": "byzantium",
|
||||
// Optional: Change compilation pipeline to go through the Yul intermediate representation.
|
||||
// This is a highly EXPERIMENTAL feature, not to be used for production. This is false by default.
|
||||
// This is false by default.
|
||||
"viaIR": true,
|
||||
// Optional: Debugging settings
|
||||
"debug": {
|
||||
|
||||
Reference in New Issue
Block a user