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

infer for a proc whether it is OK to pass an argument as borrowed #6585

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

folkertdev
Copy link
Contributor

NOTE: this is not actually hooked up

there are also these limits

  • only considers List * and Str layouts, or lambda sets containing just those layouts
  • only looks at calls to lowlevels (so not other function calls)

the next step is to walk the topological sort of procs and for each SCC run this inference until fixpoint. At that point we can call other (user) functions and pass arguments as borrowed. I'm not sure yet if we need to change something about functions themselves when one of the arguments is passed to it as borrowed. I suspect we do which means more thinking is required

this only looks at calls to lowlevels right now, not calls to other functions
Base automatically changed from lowleve-borrow-signature-static to main March 18, 2024 17:37
Copy link
Sponsor Contributor

@rtfeldman rtfeldman left a comment

Choose a reason for hiding this comment

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

Sweet, looking great so far! 😍

@rtfeldman rtfeldman merged commit ad78e04 into main Mar 19, 2024
17 checks passed
@rtfeldman rtfeldman deleted the infer-lowlevel-caller-borrow-signature branch March 19, 2024 02:24
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