paritytech / paritytech/revive
Custom instructions
Open
@kvpanch is already working on this.
Since Aug 13, 2026.
- Dominant language
- Rust
- Stars
- 102
- Forks
- 26
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 6
Description
Meta issue: Solidity tailored PVM instructions
We should look into introducing:
- Vector extensions (gets us more registers)
- Custom instructions, like the ones discussed in the document, using the vector registers
- A custom ABI profiting from our custom instructions and vector registers
These 3 combined should:
- Significantly improve code size and runtime performance of arithmetic heavy contracts
- Significantly remove register pressure and stack traffic
- Make function calls much cheaper code-size wise, which can compound further gains
Done right, this shouldn't have adversarial effects on the PVM re-compiler. We implement this in experimental branches in this repository, paritytech/polkavm and paritytech/llvm-project
Depending on the outcome of this experiment, we can then think about how to spec everything into the gray paper.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.