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

Fix DCA for generic functions #3878

Merged
merged 9 commits into from
Feb 7, 2023
Merged

Fix DCA for generic functions #3878

merged 9 commits into from
Feb 7, 2023

Conversation

tritao
Copy link
Contributor

@tritao tritao commented Jan 24, 2023

Closes #3671.

There were a bunch of different fixes necessary to fix this one, which are separated into individual commits to make it easier to review. The main gist is that the DCA now keeps track of functions by their signature instead of just their name and when encountering monomorphized functions in the DCA engine, we now look for their counterpart fully generic version and link the two together.

Previously:

bug

Now:

bug3

@tritao tritao added the bug Something isn't working label Jan 24, 2023
@tritao tritao self-assigned this Jan 24, 2023
esdrubal added a commit that referenced this pull request Jan 27, 2023
Replaces `IdentUnique` usage with `(Ident, TyFunctionSig)`.
Borrowed TyFunctionSig from #3878
@tritao tritao force-pushed the dca-generics branch 4 times, most recently from f93b455 to 3fddf4a Compare February 1, 2023 10:42
@tritao tritao marked this pull request as ready for review February 6, 2023 12:13
@tritao tritao requested a review from a team February 6, 2023 12:14
@tritao tritao added compiler General compiler. Should eventually become more specific as the issue is triaged compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen labels Feb 6, 2023
@tritao tritao requested review from IGI-111 and a team February 6, 2023 15:12
Copy link
Contributor

@IGI-111 IGI-111 left a comment

Choose a reason for hiding this comment

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

LGTM

@tritao tritao enabled auto-merge (squash) February 7, 2023 13:00
@tritao tritao merged commit 69d4dbb into FuelLabs:master Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen compiler General compiler. Should eventually become more specific as the issue is triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DCA issue when traits are define in library and used in generic function
3 participants