Implement the binary search dispatch for the IR codegen
- Dominant language
- C++
- Stars
- 25.7k
- Forks
- 6.2k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 29
Description
The binary search for the function dispatch seems to be only implemented in the legacy codegen.
Context:
https://github.com/ethereum/solidity/blob/da50176b1ffec4444996cb4551e6a78f99bd2990/libsolidity/codegen/ContractCompiler.cpp#L325
Implement the same for the IR based codegen.
Contributor guide
Research direction
Start with the referenced dispatch logic in libsolidity/codegen/ContractCompiler.cpp around line 325, then locate the corresponding entry point in the IR-based codegen. Compare the two dispatch paths and determine how the existing binary-search behavior should carry over. Done means IR-generated contracts use binary search for function dispatch as the legacy codegen does.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100