mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Refactor Optimiser Steps Interface.
This commit is contained in:
@@ -26,13 +26,21 @@
|
||||
namespace yul
|
||||
{
|
||||
|
||||
struct OptimiserStepContext;
|
||||
|
||||
/**
|
||||
* Prerequisites: Function Grouper
|
||||
*/
|
||||
class MainFunction
|
||||
{
|
||||
public:
|
||||
static constexpr char const* name{"MainFunction"};
|
||||
static void run(OptimiserStepContext&, Block& _ast) { MainFunction{}(_ast); }
|
||||
|
||||
void operator()(Block& _block);
|
||||
|
||||
private:
|
||||
MainFunction() = default;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user