We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df0c093 commit 0f6387fCopy full SHA for 0f6387f
autoprecompiles/src/blocks/mod.rs
@@ -18,6 +18,7 @@ use crate::{
18
};
19
20
#[derive(Debug, Serialize, Deserialize, Clone)]
21
+/// A sequence of instructions starting at a given PC.
22
pub struct BasicBlock<I> {
23
/// The program counter of the first instruction in this block.
24
pub start_pc: u64,
@@ -32,6 +33,8 @@ impl<I: PcStep> BasicBlock<I> {
32
33
}
34
35
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.
38
pub struct SuperBlock<I> {
39
blocks: Vec<BasicBlock<I>>,
40
0 commit comments