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

Point References to Top-Level Continuations to the first BB-Like Continuation #105

Open
CodaFi opened this issue Mar 5, 2018 · 0 comments

Comments

@CodaFi
Copy link
Member

CodaFi commented Mar 5, 2018

The GIR Parser currently requires the entry block be named the same as the function, but the GIRWriter renumbers it as bb0 anyways. While parsing, references to the function name should just point at the top-level continuation.

@foo : A -> B -> C -> ... -> _ {
bb0(%0 : A ; %1 : B ; %2 : C ; ... ; %return : (Z -> _)):
 -- etc.

bbN:
  %k = function_ref @foo -- points to bb0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant