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

Add PrimValue::Graph #374

Closed
Tracked by #416
acl-cqc opened this issue Aug 8, 2023 · 0 comments · Fixed by #431
Closed
Tracked by #416

Add PrimValue::Graph #374

acl-cqc opened this issue Aug 8, 2023 · 0 comments · Fixed by #431
Assignees

Comments

@acl-cqc
Copy link
Contributor

acl-cqc commented Aug 8, 2023

Possibly unless we drop "Graph" types from core, which we might do according to outcome of #285.

Again according to #285, this might be as simple as

struct Graph(Hugr);

impl Graph {

    fn new(h: Hugr) -> Self {
        assert!(h.is_dfg());
        Self(h)
    }
}

(if monomorphic) whereas if polymorphic it might be a bit more complex

@ss2165 ss2165 changed the title Add ConstValue::Graph Add PrimValue::Graph Aug 16, 2023
@ss2165 ss2165 self-assigned this Aug 21, 2023
github-merge-queue bot pushed a commit that referenced this issue Aug 22, 2023
add `get_function_type` method to HugrView to report the function type
of the root if valid.

Closes #374
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants