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

[Do Not Merge] Begin standing up Inner Core #117

Merged
merged 6 commits into from
Apr 17, 2018
Merged

Conversation

harlanhaskins
Copy link
Contributor

What's in this pull request?

Begins standing up the Inner Core and starts the process of prototyping a GraphIR mangler. This will be necessary as we emit LLVM IR.

Resolves: Issue #104

Why merge this pull request?

Don't, so far.

What's worth discussing about this pull request?

We need to flesh out the mangling scheme. What I have is woefully incomplete.

What downsides are there to merging this pull request?

Right now? A lot of them. It don't work.

@@ -73,4 +73,26 @@ final class Scope {
}
}
}

public static func == (lhs: Scope, rhs: Scope) -> Bool {
return ObjectIdentifier(lhs) == ObjectIdentifier(rhs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can delegate the equality test to the entry continuation instead of going through ObjectIdentifier. That should always be unique (an invariant for the verifier as well, I suppose).

for cont in self.continuations {
guard visited.insert(cont).inserted else { continue }
let scope = Scope(cont)
for scope in topLevelScopes {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rely on the Set to form a whitelist now, sorry about that.

@harlanhaskins harlanhaskins force-pushed the xxx-inner-core branch 2 times, most recently from ce53a4e to a16d968 Compare April 17, 2018 11:27
@harlanhaskins
Copy link
Contributor Author

Build passed on Linux 🎉 (passes locally on macOS)

@harlanhaskins harlanhaskins merged commit 6922a93 into master Apr 17, 2018
@harlanhaskins harlanhaskins deleted the xxx-inner-core branch April 17, 2018 11:39
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 this pull request may close these issues.

2 participants