Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: ComposablePass trait allowing sequencing and validation #1895

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/main' into acl/composable_pass
  • Loading branch information
acl-cqc committed Jan 29, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit f7f34935394ef6f285c373ec07dfca971460ceb7
10 changes: 8 additions & 2 deletions hugr-passes/src/dead_funcs.rs
Original file line number Diff line number Diff line change
@@ -21,8 +21,14 @@ use super::call_graph::{CallGraph, CallGraphNode};
#[non_exhaustive]
/// Errors produced by [RemoveDeadFuncsPass].
pub enum RemoveDeadFuncsError {
#[error("Node {0} was not a FuncDefn child of the Module root")]
InvalidEntryPoint(Node),
/// The specified entry point is not a FuncDefn node or is not a child of the root.
#[error(
"Entrypoint for RemoveDeadFuncsPass {node} was not a function definition in the root module"
)]
InvalidEntryPoint {
/// The invalid node.
node: Node,
}
}

fn reachable_funcs<'a>(
You are viewing a condensed version of this merge commit. You can view the full changes here.