Add technical documentation for EVM bytecode to LLVM basic blocks lowering#64
Merged
Merged
Conversation
…ocks lowering Co-authored-by: tcrypt25519 <212655132+tcrypt25519@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add technical documentation for Jet compiler EVM lowering
Add technical documentation for EVM bytecode to LLVM basic blocks lowering
Feb 14, 2026
There was a problem hiding this comment.
Pull request overview
Adds a new compiler-focused technical reference documenting how Jet lowers EVM bytecode into LLVM basic blocks and wires control flow (including jump table dispatch).
Changes:
- Introduces
docs/bytecode-to-llvm-blocks.mddescribingCodeBlock/CodeBlocks, bytecode chunking, CFG construction, and terminator semantics. - Includes pseudo-code and illustrative IR snippets for JUMP/JUMPI/JUMPDEST handling.
- Adds guidance for diagramming the lowering pipeline.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Address feedback that "empty rom == open" doesn't hold for consecutive JUMPDESTs, which create closed blocks with zero-length rom slices. Update Block Lifecycle section to accurately describe the implementation's use of is_empty() as a reassignment guard rather than state indicator. Co-authored-by: tcrypt25519 <212655132+tcrypt25519@users.noreply.github.com>
tcrypt25519
added a commit
that referenced
this pull request
Feb 16, 2026
…ering (#64) * Initial plan * Add comprehensive technical documentation for EVM bytecode to LLVM blocks lowering Co-authored-by: tcrypt25519 <212655132+tcrypt25519@users.noreply.github.com> * Update docs/bytecode-to-llvm-blocks.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update docs/bytecode-to-llvm-blocks.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update docs/bytecode-to-llvm-blocks.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Clarify block lifecycle documentation for zero-length blocks Address feedback that "empty rom == open" doesn't hold for consecutive JUMPDESTs, which create closed blocks with zero-length rom slices. Update Block Lifecycle section to accurately describe the implementation's use of is_empty() as a reassignment guard rather than state indicator. Co-authored-by: tcrypt25519 <212655132+tcrypt25519@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tcrypt25519 <212655132+tcrypt25519@users.noreply.github.com> Co-authored-by: Tyler Smith <mail@tcry.pt> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.