diff --git a/src/cfg/structured.rs b/src/cfg/structured.rs index f222187..0812775 100644 --- a/src/cfg/structured.rs +++ b/src/cfg/structured.rs @@ -238,3 +238,29 @@ impl WasmRegion { } } } + +#[derive(Clone, Debug)] +pub struct BlockOrder { + pub blocks: Vec, +} + +#[derive(Clone, Debug)] +pub enum BlockOrderEntry { + StartBlock, + EndBlock, + StartLoop, + EndLoop, + Block(BlockId, Vec), +} + +#[derive(Clone, Debug)] +pub struct BlockOrderTarget { + pub target: BlockId, + pub relative_branch: usize, +} + +impl BlockOrder { + pub fn compute(cfg: &CFGInfo, wasm_region: &WasmRegion) -> BlockOrder { + todo!() + } +}