CSSA verifier.

During register allocation, the code must be kept in conventional SSA
form. Add a verifier that checks this property.
This commit is contained in:
Jakob Stoklund Olesen
2017-07-13 13:18:18 -07:00
parent 3bcfb103b9
commit 52dae7c2e2
5 changed files with 137 additions and 3 deletions

View File

@@ -65,6 +65,7 @@ use std::result;
use std::collections::BTreeSet;
pub use self::liveness::verify_liveness;
pub use self::cssa::verify_cssa;
// Create an `Err` variant of `Result<X>` from a location and `format!` arguments.
macro_rules! err {
@@ -83,6 +84,7 @@ macro_rules! err {
};
}
mod cssa;
mod liveness;
/// A verifier error.