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

Implement Mangling of GraphIR Terms #104

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

Implement Mangling of GraphIR Terms #104

CodaFi opened this issue Mar 5, 2018 · 4 comments

Comments

@CodaFi
Copy link
Member

CodaFi commented Mar 5, 2018

Part of #99: We must mangle the full module name into the name of a term as well as normalize Arbitrary Unicode Garbage in symbol names. The GIRWriter can then be updated to account for this.

@CodaFi
Copy link
Member Author

CodaFi commented Mar 5, 2018

We should never need to mangle the type of a declaration into the symbol (I suspect we can figure this out at runtime from the type metadata)

@harlanhaskins
Copy link
Contributor

What about specialized functions?

@CodaFi
Copy link
Member Author

CodaFi commented Mar 5, 2018

We can mangle the fact that we specialized parameters, but I think specializations will be internal to the calling module so we can come up with any old naming scheme.

@harlanhaskins
Copy link
Contributor

If we do this, we should implement demangling in the runtime, for debugging and crash tracing purposes.

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

2 participants