From 4cdd726275ca07b39471cb2a25c08490c2fa67d1 Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Sat, 20 Nov 2021 23:42:42 -0800 Subject: [PATCH] Moved things around a bit. --- src/backend/mod.rs | 5 +++++ src/{backend.rs => backend/stackify.rs} | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/backend/mod.rs rename src/{backend.rs => backend/stackify.rs} (98%) diff --git a/src/backend/mod.rs b/src/backend/mod.rs new file mode 100644 index 0000000..d751816 --- /dev/null +++ b/src/backend/mod.rs @@ -0,0 +1,5 @@ +//! Backend: IR to Wasm. + +mod stackify; +pub(crate) use stackify::*; + diff --git a/src/backend.rs b/src/backend/stackify.rs similarity index 98% rename from src/backend.rs rename to src/backend/stackify.rs index 398f7b2..16814b8 100644 --- a/src/backend.rs +++ b/src/backend/stackify.rs @@ -1,4 +1,5 @@ -//! IR-to-Wasm transform. +//! Stackifier-like algorithm to recover (or create) structured +//! control flow out of a CFG. use crate::{cfg::CFGInfo, ir::*}; use log::debug; @@ -210,3 +211,5 @@ impl Shape { Shape::None } } + +