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

Adding info to gfunc record type #1016

Closed
MrDaiki opened this issue Jan 22, 2025 · 2 comments
Closed

Adding info to gfunc record type #1016

MrDaiki opened this issue Jan 22, 2025 · 2 comments

Comments

@MrDaiki
Copy link
Collaborator

MrDaiki commented Jan 22, 2025

Issue

Some iterative algorithms on program produce an output state that is lost for the moment (for example in liveness analysis, function live_fd throw the output variable set at the end of the analysis). This information could be useful for some algorithm (for example sign analysis).

Proposition

Change the gfunc record type to include a 'info field :

type 'len,'info,'asm gfunc = {
  ...
  f_info : 'info;
}

Consequences

Little modifications are needed but only in the caml part of the compiler.

@vbgl
Copy link
Member

vbgl commented Jan 23, 2025

Sounds useful and simple to implement. Do you want to give it a try?

@vbgl
Copy link
Member

vbgl commented Jan 27, 2025

Implemented in #1021.

@vbgl vbgl closed this as completed Jan 27, 2025
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