Skip to content

Commit 0f6387f

Browse files
committed
comments
1 parent df0c093 commit 0f6387f

File tree

1 file changed

+3
-0
lines changed
  • autoprecompiles/src/blocks

1 file changed

+3
-0
lines changed

autoprecompiles/src/blocks/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use crate::{
1818
};
1919

2020
#[derive(Debug, Serialize, Deserialize, Clone)]
21+
/// A sequence of instructions starting at a given PC.
2122
pub struct BasicBlock<I> {
2223
/// The program counter of the first instruction in this block.
2324
pub start_pc: u64,
@@ -32,6 +33,8 @@ impl<I: PcStep> BasicBlock<I> {
3233
}
3334

3435
#[derive(Debug, Serialize, Deserialize, Clone)]
36+
/// A sequence of basic blocks that can be made into an autoprecompile.
37+
/// A single basic block is represented as a SuperBlock with one element.
3538
pub struct SuperBlock<I> {
3639
blocks: Vec<BasicBlock<I>>,
3740
}

0 commit comments

Comments
 (0)